mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
ece382b0af
We were producing R_X86_64_GOTPCRELX for invalid instructions and sometimes producing R_X86_64_GOTPCRELX instead of R_X86_64_REX_GOTPCRELX. llvm-svn: 271118
16 lines
485 B
ArmAsm
16 lines
485 B
ArmAsm
// RUN: llvm-mc -filetype=obj -relax-relocations -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck %s
|
|
|
|
// these should not produce relaxable relocations
|
|
|
|
movq foo@GOT, %rax
|
|
mulq foo@GOTPCREL(%rip)
|
|
.long foo@GOTPCREL
|
|
|
|
// CHECK: Relocations [
|
|
// CHECK: Section ({{.*}}) .rela.text {
|
|
// CHECK-NEXT: R_X86_64_GOT32 foo
|
|
// CHECK-NEXT: R_X86_64_GOTPCREL foo
|
|
// CHECK-NEXT: R_X86_64_GOTPCREL foo
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: ]
|