summaryrefslogtreecommitdiff
path: root/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-11 02:21:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-11 02:21:31 +0000
commit8bf80061ba44af16b4597627ca7d6d7fc1bed64e (patch)
treefb8ecf30dd70e1d29f6a02346356100888d2e6a9 /lib/Object/MachOObjectFile.cpp
parent4b040294816e49413c739825d801042bc76171a7 (diff)
downloadllvm-8bf80061ba44af16b4597627ca7d6d7fc1bed64e.tar.gz
llvm-8bf80061ba44af16b4597627ca7d6d7fc1bed64e.tar.bz2
llvm-8bf80061ba44af16b4597627ca7d6d7fc1bed64e.tar.xz
Fix MachO's getRelocationAdditionalInfo.
It was returning the loaded address of the section containing the relocation, which really doesn't seem to be the intent of this function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/MachOObjectFile.cpp')
-rw-r--r--lib/Object/MachOObjectFile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp
index f4df8e012c..c846206e6e 100644
--- a/lib/Object/MachOObjectFile.cpp
+++ b/lib/Object/MachOObjectFile.cpp
@@ -512,6 +512,12 @@ error_code MachOObjectFileBase::getLibraryPath(DataRefImpl LibData,
report_fatal_error("Needed libraries unimplemented in MachOObjectFileBase");
}
+error_code MachOObjectFileBase::getRelocationAdditionalInfo(DataRefImpl Rel,
+ int64_t &Res) const {
+ Res = 0;
+ return object_error::success;
+}
+
/*===-- Miscellaneous -----------------------------------------------------===*/