2016-06-18 01:04:56 +08:00
|
|
|
// 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
|
2016-04-24 09:03:57 +08:00
|
|
|
|
2016-05-28 23:51:38 +08:00
|
|
|
// these should produce R_X86_64_GOTPCRELX
|
2016-04-24 09:03:57 +08:00
|
|
|
|
2016-05-28 23:51:38 +08:00
|
|
|
call *call@GOTPCREL(%rip)
|
|
|
|
jmp *jmp@GOTPCREL(%rip)
|
2016-04-24 09:03:57 +08:00
|
|
|
|
|
|
|
// CHECK: Relocations [
|
2016-05-28 23:51:38 +08:00
|
|
|
// CHECK-NEXT: Section ({{.*}}) .rela.text {
|
|
|
|
// CHECK-NEXT: R_X86_64_GOTPCRELX call
|
|
|
|
// CHECK-NEXT: R_X86_64_GOTPCRELX jmp
|
2016-04-24 09:03:57 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
2016-06-18 01:04:56 +08:00
|
|
|
|
|
|
|
// 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: ]
|