diff options
author | Lang Hames <lhames@gmail.com> | 2014-05-19 19:21:25 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2014-05-19 19:21:25 +0000 |
commit | 1fcbc0850068faa55c6712dee4eb2d581cb452d4 (patch) | |
tree | 7b386a3f83d94c2753b1cc98e53e100cca8f0860 /llvm/test/ExecutionEngine | |
parent | c2ec8c5281d1feb7dd447d413a35bbd4d87cc4b6 (diff) | |
download | bcm5719-llvm-1fcbc0850068faa55c6712dee4eb2d581cb452d4.tar.gz bcm5719-llvm-1fcbc0850068faa55c6712dee4eb2d581cb452d4.zip |
[RuntimeDyld] Fix x86-64 MachO GOT relocation handling.
For GOT relocations the addend should modify the offset to the
GOT entry, not the value of the entry itself. Teach RuntimeDyldMachO
to do The Right Thing here.
Fixes <rdar://problem/16961886>.
llvm-svn: 209154
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r-- | llvm/test/ExecutionEngine/RuntimeDyld/Inputs/x86_64_macho_pic_globals_GOT.o | bin | 0 -> 704 bytes | |||
-rw-r--r-- | llvm/test/ExecutionEngine/RuntimeDyld/macho_relocations.test (renamed from llvm/test/ExecutionEngine/RuntimeDyld/arm_secdiff_reloc.test) | 1 |
2 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/Inputs/x86_64_macho_pic_globals_GOT.o b/llvm/test/ExecutionEngine/RuntimeDyld/Inputs/x86_64_macho_pic_globals_GOT.o Binary files differnew file mode 100644 index 00000000000..2013a0e81de --- /dev/null +++ b/llvm/test/ExecutionEngine/RuntimeDyld/Inputs/x86_64_macho_pic_globals_GOT.o diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/arm_secdiff_reloc.test b/llvm/test/ExecutionEngine/RuntimeDyld/macho_relocations.test index 92e4dd793cc..d3407352ce7 100644 --- a/llvm/test/ExecutionEngine/RuntimeDyld/arm_secdiff_reloc.test +++ b/llvm/test/ExecutionEngine/RuntimeDyld/macho_relocations.test @@ -1 +1,2 @@ RUN: llvm-rtdyld -printline %p/Inputs/arm_secdiff_reloc.o +RUN: llvm-rtdyld %p/Inputs/x86_64_macho_pic_globals_GOT.o |