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.
27 lines
392 B
27 lines
392 B
4 months ago
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu < %s | llvm-readobj -r | FileCheck %s
|
||
|
|
||
|
// CHECK: Relocations [
|
||
|
// CHECK-NEXT: Section ({{.*}}) .rela.text {
|
||
|
// CHECK-NEXT: 0x1D R_X86_64_PC32 f2 0xFFFFFFFFFFFFFFFC
|
||
|
// CHECK-NEXT: }
|
||
|
// CHECK-NEXT: ]
|
||
|
|
||
|
.weak f
|
||
|
.weak g
|
||
|
f:
|
||
|
nop
|
||
|
g:
|
||
|
nop
|
||
|
|
||
|
.quad g - f
|
||
|
|
||
|
|
||
|
.weak f2
|
||
|
f2:
|
||
|
nop
|
||
|
g2:
|
||
|
nop
|
||
|
.quad g2 - f2
|
||
|
.quad f2 - g2
|
||
|
call f2
|