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.
13 lines
407 B
13 lines
407 B
4 months ago
|
// REQUIRES: x86-registered-target
|
||
|
// RUN: %clang -### -c -integrated-as -Wa,--mrelax-relocations=yes %s 2>&1 | FileCheck %s
|
||
|
|
||
|
// CHECK: "-cc1as"
|
||
|
// CHECK: "--mrelax-relocations"
|
||
|
|
||
|
// RUN: %clang -cc1as -triple x86_64-pc-linux --mrelax-relocations %s -o %t -filetype obj
|
||
|
// RUN: llvm-readobj -r %t | FileCheck --check-prefix=REL %s
|
||
|
|
||
|
// REL: R_X86_64_REX_GOTPCRELX foo
|
||
|
|
||
|
movq foo@GOTPCREL(%rip), %rax
|