| Index: src/common/mac/macho_reader.cc
|
| diff --git a/src/common/mac/macho_reader.cc b/src/common/mac/macho_reader.cc
|
| index 9fcb58e35c2c1dea05f142702cb0160bf8918869..6d7207ce4bf3d1954e1829cb4a95f48005fddeb4 100644
|
| --- a/src/common/mac/macho_reader.cc
|
| +++ b/src/common/mac/macho_reader.cc
|
| @@ -481,7 +481,9 @@ bool Reader::WalkSegmentSections(const Segment &segment,
|
| reporter_->SectionsMissing(segment.name);
|
| return false;
|
| }
|
| - if ((section.flags & SECTION_TYPE) == S_ZEROFILL) {
|
| + const uint32_t section_type = section.flags & SECTION_TYPE;
|
| + if (section_type == S_ZEROFILL || section_type == S_THREAD_LOCAL_ZEROFILL ||
|
| + section_type == S_GB_ZEROFILL) {
|
| // Zero-fill sections have a size, but no contents.
|
| section.contents.start = section.contents.end = NULL;
|
| } else if (segment.contents.start == NULL &&
|
|
|