1 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux
%s
-o
- | llvm-readobj
-r | FileCheck
%s
2 // RUN
: llvm-mc
-filetype
=obj
-relax-relocations
=false
-triple x86_64-pc-linux
%s
-o
- | llvm-readobj
-r | FileCheck
--check-prefix
=OLD
%s
4 // these should produce R_X86_64_GOTPCRELX
6 call
*call@GOTPCREL
(%rip
)
7 jmp
*jmp@GOTPCREL
(%rip
)
9 // CHECK
: Relocations
[
10 // CHECK-NEXT
: Section
({{.*}}) .rela.text {
11 // CHECK-NEXT
: R_X86_64_GOTPCRELX call
12 // CHECK-NEXT
: R_X86_64_GOTPCRELX jmp
17 // OLD-NEXT
: Section
({{.*}}) .rela.text {
18 // OLD-NEXT
: R_X86_64_GOTPCREL call
19 // OLD-NEXT
: R_X86_64_GOTPCREL jmp