You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
727 B
22 lines
727 B
4 months ago
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck %s
|
||
|
// RUN: llvm-mc -filetype=obj -relax-relocations=false -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck --check-prefix=OLD %s
|
||
|
|
||
|
// these should produce R_X86_64_GOTPCRELX
|
||
|
|
||
|
call *call@GOTPCREL(%rip)
|
||
|
jmp *jmp@GOTPCREL(%rip)
|
||
|
|
||
|
// CHECK: Relocations [
|
||
|
// CHECK-NEXT: Section ({{.*}}) .rela.text {
|
||
|
// CHECK-NEXT: R_X86_64_GOTPCRELX call
|
||
|
// CHECK-NEXT: R_X86_64_GOTPCRELX jmp
|
||
|
// CHECK-NEXT: }
|
||
|
// CHECK-NEXT: ]
|
||
|
|
||
|
// OLD: Relocations [
|
||
|
// OLD-NEXT: Section ({{.*}}) .rela.text {
|
||
|
// OLD-NEXT: R_X86_64_GOTPCREL call
|
||
|
// OLD-NEXT: R_X86_64_GOTPCREL jmp
|
||
|
// OLD-NEXT: }
|
||
|
// OLD-NEXT: ]
|