@@ -2297,7 +2297,7 @@ size_t ObjectFileMachO::ParseSymtab() {
2297
2297
2298
2298
#if defined(__APPLE__) && \
2299
2299
(defined (__arm__) || defined (__arm64__) || defined (__aarch64__))
2300
- if (m_header.flags & 0x80000000u &&
2300
+ if (m_header.flags & MH_DYLIB_IN_CACHE &&
2301
2301
process->GetAddressByteSize () == sizeof (void *)) {
2302
2302
// This mach-o memory file is in the dyld shared cache. If this
2303
2303
// program is not remote and this is iOS, then this process will
@@ -2379,7 +2379,7 @@ size_t ObjectFileMachO::ParseSymtab() {
2379
2379
// problem. For binaries outside the shared cache, it's faster to
2380
2380
// read the entire strtab at once instead of piece-by-piece as we
2381
2381
// process the nlist records.
2382
- if ((m_header.flags & 0x80000000u ) == 0 ) {
2382
+ if ((m_header.flags & MH_DYLIB_IN_CACHE ) == 0 ) {
2383
2383
DataBufferSP strtab_data_sp (
2384
2384
ReadMemory (process_sp, strtab_addr, strtab_data_byte_size));
2385
2385
if (strtab_data_sp) {
@@ -2608,7 +2608,7 @@ size_t ObjectFileMachO::ParseSymtab() {
2608
2608
// to parse any DSC unmapped symbol information. If we find any, we set a
2609
2609
// flag that tells the normal nlist parser to ignore all LOCAL symbols.
2610
2610
2611
- if (m_header.flags & 0x80000000u ) {
2611
+ if (m_header.flags & MH_DYLIB_IN_CACHE ) {
2612
2612
// Before we can start mapping the DSC, we need to make certain the
2613
2613
// target process is actually using the cache we can find.
2614
2614
0 commit comments