summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-04-24 01:36:37 +0000
committerDavide Italiano <davide@freebsd.org>2016-04-24 01:36:37 +0000
commitcefdf238e9ca9df240c2dbc3df3ced3fa9338686 (patch)
treea707b81d79d9423678d218acc960f8ed5b0d02a9 /llvm/test
parent327b88c36dfce8cb8acf54a01e5a9b41a44872eb (diff)
downloadbcm5719-llvm-cefdf238e9ca9df240c2dbc3df3ced3fa9338686.tar.gz
bcm5719-llvm-cefdf238e9ca9df240c2dbc3df3ced3fa9338686.zip
[RuntimeDyldELF] Handle GOTPCRELX/REX_GOTPCRELX.
llvm-svn: 267309
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF-relaxed.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF-relaxed.s b/llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF-relaxed.s
new file mode 100644
index 00000000000..c5a87946f32
--- /dev/null
+++ b/llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF-relaxed.s
@@ -0,0 +1,8 @@
+# RUN: llvm-mc -triple=x86_64-pc-linux -relocation-model=pic -filetype=obj -o %T/file.o %p/Inputs/ELF_STT_FILE_GLOBAL.s
+# RUN: llvm-mc -triple=x86_64-pc-linux -relax-relocations -relocation-model=pic -filetype=obj -o %T/relaxed.o %s
+# RUN: llvm-rtdyld -triple=x86_64-pc-linux -verify %T/file.o %T/relaxed.o
+
+# Test that RTDyldELF does not crash with 'unimplemented relocation'
+
+_main:
+ movq foo.c@GOTPCREL(%rip), %rax
OpenPOWER on IntegriCloud