Rename R_X86_64_REX2_GOTPCRELX to R_X86_64_CODE_4_GOTPCRELX, to align with GCC/binutils and ABI. GCC/binutils:3d5a60de52and4a54cb0658ABI:357de358ba
15 lines
486 B
ArmAsm
15 lines
486 B
ArmAsm
// REQUIRES: x86-registered-target
|
|
// RUN: %clang -### -c --target=x86_64-pc-linux -integrated-as -Wa,--mrelax-relocations=no %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: "-cc1as"
|
|
// CHECK: "-mrelax-relocations=no"
|
|
|
|
// RUN: %clang -cc1as -triple x86_64-pc-linux %s -o %t -filetype obj
|
|
// RUN: llvm-readobj -r %t | FileCheck --check-prefix=REL %s
|
|
|
|
// REL: R_X86_64_REX_GOTPCRELX foo
|
|
// REL: R_X86_64_CODE_4_GOTPCRELX foo
|
|
|
|
movq foo@GOTPCREL(%rip), %rax
|
|
movq foo@GOTPCREL(%rip), %r16
|