[llvm-commits] [llvm] r141815 - /llvm/trunk/lib/Object/MachOObjectFile.cpp
Owen Anderson
resistor at mac.com
Wed Oct 12 14:43:24 PDT 2011
Author: resistor
Date: Wed Oct 12 16:43:24 2011
New Revision: 141815
URL: http://llvm.org/viewvc/llvm-project?rev=141815&view=rev
Log:
Section indices in MachO symbol tables begin at 1, not 0.
Modified:
llvm/trunk/lib/Object/MachOObjectFile.cpp
Modified: llvm/trunk/lib/Object/MachOObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObjectFile.cpp?rev=141815&r1=141814&r2=141815&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Wed Oct 12 16:43:24 2011
@@ -153,7 +153,7 @@
SymbolOffset = Entry->Value;
SectionIndex = Entry->SectionIndex;
}
- getSectionAddress(Sections[SectionIndex], Result);
+ getSectionAddress(Sections[SectionIndex-1], Result);
Result += SymbolOffset;
return object_error::success;
More information about the llvm-commits
mailing list