summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2012-11-02 19:45:23 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2012-11-02 19:45:23 +0000
commitfb05a50f6bf860dd051853e1c822fcbebe75fb47 (patch)
treeccd333195bd7ebf68b6dc371ef3b60f378826830 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h
parent84dcccd14bc5daf4a1ae356d1acbfc81528ea460 (diff)
downloadbcm5719-llvm-fb05a50f6bf860dd051853e1c822fcbebe75fb47.tar.gz
bcm5719-llvm-fb05a50f6bf860dd051853e1c822fcbebe75fb47.zip
Change resolveRelocation parameters so the relocations can find placeholder values in the original object buffer.
Some ELF relocations require adding the a value to the original contents of the object buffer at the specified location. In order to properly handle multiple applications of a relocation, the RuntimeDyld code should be grabbing the original value from the object buffer and writing a new value into the loaded section buffer. This patch changes the parameters passed to resolveRelocations to accommodate this need. llvm-svn: 167304
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h
index ef56f551fc8..fe3539dff6f 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h
@@ -55,8 +55,8 @@ protected:
StubMap &Stubs);
public:
- virtual void resolveRelocation(uint8_t *LocalAddress,
- uint64_t FinalAddress,
+ virtual void resolveRelocation(const SectionEntry &Section,
+ uint64_t Offset,
uint64_t Value,
uint32_t Type,
int64_t Addend);
OpenPOWER on IntegriCloud