diff options
-rw-r--r-- | lld/test/ELF/gotpcrelx.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/test/ELF/gotpcrelx.s b/lld/test/ELF/gotpcrelx.s index c85d484bb05..b8e8c890dd6 100644 --- a/lld/test/ELF/gotpcrelx.s +++ b/lld/test/ELF/gotpcrelx.s @@ -1,6 +1,12 @@ // RUN: ld.lld %p/Inputs/gotpcrelx.o -o %t.so -shared // RUN: llvm-readobj -s -r %t.so | FileCheck %s +// The gotpcrelx.o is just this file assembled with gas. We should switch to +// llvm-mc once it starts producing R_X86_64_GOTPCRELX and +// R_X86_64_REX_GOTPCRELX. +movq foo@GOTPCREL(%rip), %rax +movl bar@GOTPCREL(%rip), %eax + // CHECK: Name: .got // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ |