summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-05-19 19:21:25 +0000
committerLang Hames <lhames@gmail.com>2014-05-19 19:21:25 +0000
commit1fcbc0850068faa55c6712dee4eb2d581cb452d4 (patch)
tree7b386a3f83d94c2753b1cc98e53e100cca8f0860 /llvm/test/ExecutionEngine
parentc2ec8c5281d1feb7dd447d413a35bbd4d87cc4b6 (diff)
downloadbcm5719-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.obin0 -> 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
new file mode 100644
index 00000000000..2013a0e81de
--- /dev/null
+++ b/llvm/test/ExecutionEngine/RuntimeDyld/Inputs/x86_64_macho_pic_globals_GOT.o
Binary files differ
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
OpenPOWER on IntegriCloud