diff options
Diffstat (limited to 'lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | lib/Object/MachOObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp index b89ff4beb7..21fd4b6915 100644 --- a/lib/Object/MachOObjectFile.cpp +++ b/lib/Object/MachOObjectFile.cpp @@ -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; |