mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Teach MachO which sections contain code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -559,11 +559,11 @@ error_code MachOObjectFile::isSectionText(DataRefImpl DRI,
|
||||
if (is64BitLoadCommand(MachOObj.get(), DRI)) {
|
||||
InMemoryStruct<macho::Section64> Sect;
|
||||
getSection64(DRI, Sect);
|
||||
Result = !strcmp(Sect->Name, "__text");
|
||||
Result = Sect->Flags & macho::SF_PureInstructions;
|
||||
} else {
|
||||
InMemoryStruct<macho::Section> Sect;
|
||||
getSection(DRI, Sect);
|
||||
Result = !strcmp(Sect->Name, "__text");
|
||||
Result = Sect->Flags & macho::SF_PureInstructions;
|
||||
}
|
||||
return object_error::success;
|
||||
}
|
||||
|
Reference in New Issue
Block a user