Section indices in MachO symbol tables begin at 1, not 0.

llvm-svn: 141815
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index b89ff4b..21fd4b6 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -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;