mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-02 09:33:59 +00:00
Section indices in MachO symbol tables begin at 1, not 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acbaecd4c8
commit
41242942fc
@ -153,7 +153,7 @@ error_code MachOObjectFile::getSymbolAddress(DataRefImpl DRI,
|
||||
SymbolOffset = Entry->Value;
|
||||
SectionIndex = Entry->SectionIndex;
|
||||
}
|
||||
getSectionAddress(Sections[SectionIndex], Result);
|
||||
getSectionAddress(Sections[SectionIndex-1], Result);
|
||||
Result += SymbolOffset;
|
||||
|
||||
return object_error::success;
|
||||
|
Loading…
x
Reference in New Issue
Block a user