diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp
index b89ff4beb7a..21fd4b6915c 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;