summaryrefslogtreecommitdiffstats
path: root/lld/test/elf/x86.objtxt
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/elf/x86.objtxt')
-rw-r--r--lld/test/elf/x86.objtxt42
1 files changed, 42 insertions, 0 deletions
diff --git a/lld/test/elf/x86.objtxt b/lld/test/elf/x86.objtxt
new file mode 100644
index 00000000000..bad6c255aec
--- /dev/null
+++ b/lld/test/elf/x86.objtxt
@@ -0,0 +1,42 @@
+# Source for input file: reloc-xb.x86
+# xb.S:
+# .section .text, "ax", @progbits
+# .align 0x4
+# .globl _start
+# _start:
+# .globl back
+# back:
+# call target
+#
+# Source for input file: reloc-xt.x86
+# xt.S:
+# .section .text, "ax", @progbits
+#
+# .globl target
+# target:
+# call back
+#
+# Assembled with: "as --32"
+
+RUN: lld-core -reader ELF -arch=i386 %p/Inputs/reloc-xb.x86 %p/Inputs/reloc-xt.x86 | FileCheck %s -check-prefix x86-yaml
+
+x86-yaml: - name: back
+x86-yaml: scope: global
+x86-yaml: type: code
+x86-yaml: section-name: .text
+x86-yaml: content: [ E8, FC, FF, FF, FF ]
+x86-yaml: fixups:
+x86-yaml: - offset: 1
+x86-yaml: kind: call32
+x86-yaml: target: target
+
+x86-yaml: - name: target
+x86-yaml: scope: global
+x86-yaml: type: code
+x86-yaml: section-name: .text
+x86-yaml: content: [ E8, FC, FF, FF, FF ]
+x86-yaml: fixups:
+x86-yaml: - offset: 1
+x86-yaml: kind: call32
+x86-yaml: target: back
+
OpenPOWER on IntegriCloud