summaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/plt.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/plt.s')
-rw-r--r--test/MC/ELF/plt.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/MC/ELF/plt.s b/test/MC/ELF/plt.s
new file mode 100644
index 0000000..7d0073c
--- /dev/null
+++ b/test/MC/ELF/plt.s
@@ -0,0 +1,14 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+// Test that this produces a R_X86_64_PLT32.
+
+ jmp foo@PLT
+
+// CHECK: ('_relocations', [
+// CHECK-NEXT: # Relocation 0x00000000
+// CHECK-NEXT: (('r_offset',
+// CHECK-NEXT: ('r_sym',
+// CHECK-NEXT: ('r_type', 0x00000004)
+// CHECK-NEXT: ('r_addend',
+// CHECK-NEXT: ),
+// CHECK-NEXT: ])
OpenPOWER on IntegriCloud