mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-09 20:13:35 +00:00
![Rafael Espindola](/assets/img/avatar_default.png)
llvm-mc is a developer tool, as such it make sense for it to use new features by default. This doesn't change the user facing clang, which still defaults to non relaxable relocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273014 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
727 B
ArmAsm
22 lines
727 B
ArmAsm
// 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: ]
|