llvm-6502/lib/ExecutionEngine/RuntimeDyld
Lang Hames ae7ac3974c Support X86_64_GOTLoad relocations in RuntimeDyldMachO by treating them the
same way as X86_64_GOT relocations. The 'Load' part of GOTLoad is just an
optimization hint for the linker anyway, and can be safely ignored.

This patch also fixes some minor issues with the relocations introduced while
processing an X86_64_GOT[Load]: the addend for the GOT entry should always be
zero, and the addend for the replacement relocation at the original offset
should be the same as the addend of the relocation being replaced.

I haven't come up with a good way of testing this yet, but I'm working on it.

This fixes <rdar://problem/14651564>.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188499 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-15 22:31:40 +00:00
..
CMakeLists.txt Moving SectionMemoryManager to MCJIT to avoid cross dependency between JIT and RuntimeDyld 2012-11-28 01:02:06 +00:00
GDBRegistrar.cpp Removed "static" from "__jit_debug_descriptor" because "static" adds C++ mangling prefix to this symbol. 2012-12-24 09:42:27 +00:00
JITRegistrar.h Clean-up of memory buffer and object ownership model in MCJIT 2012-10-02 21:18:39 +00:00
LLVMBuild.txt
Makefile
ObjectImageCommon.h Add support for applying in-memory relocations to the .debug_line section and, in the case of ELF files, using symbol addresses when available for relocations to the .debug_info section. Also extending the llvm-rtdyld tool to add the ability to dump line number information for testing purposes. 2013-01-25 22:50:58 +00:00
RuntimeDyld.cpp [PowerPC] Support powerpc64le as a syntax-checking target. 2013-07-26 01:35:43 +00:00
RuntimeDyldELF.cpp [Object] Split the ELF interface into 3 parts. 2013-08-08 22:27:13 +00:00
RuntimeDyldELF.h Add EH support to the MCJIT. 2013-05-05 20:43:10 +00:00
RuntimeDyldImpl.h [PowerPC] Support powerpc64le as a syntax-checking target. 2013-07-26 01:35:43 +00:00
RuntimeDyldMachO.cpp Support X86_64_GOTLoad relocations in RuntimeDyldMachO by treating them the 2013-08-15 22:31:40 +00:00
RuntimeDyldMachO.h Add EH support to the MCJIT. 2013-05-05 20:43:10 +00:00