diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-11 02:21:31 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-11 02:21:31 +0000 |
commit | e410099a02b972b855f9354b0c5a4e006ce928d3 (patch) | |
tree | c8371cfeb1d433e5b0452f86f2e84f140e4d7e1e /llvm/lib/Object/MachOObjectFile.cpp | |
parent | bc48989d0dfc5f91ba394648fbdd726a5160f98e (diff) | |
download | llvm-e410099a02b972b855f9354b0c5a4e006ce928d3.zip llvm-e410099a02b972b855f9354b0c5a4e006ce928d3.tar.gz llvm-e410099a02b972b855f9354b0c5a4e006ce928d3.tar.bz2 |
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.
llvm-svn: 179255
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index f4df8e0..c846206e 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/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 -----------------------------------------------------===*/ |