1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu < %s | llvm-readobj -r - | FileCheck %s
2
3// CHECK:      Relocations [
4// CHECK-NEXT:   Section ({{.*}}) .rela.text {
5// CHECK-NEXT:     0x1D R_X86_64_PLT32 f2 0xFFFFFFFFFFFFFFFC
6// CHECK-NEXT:   }
7// CHECK-NEXT: ]
8
9.weak f
10.weak g
11f:
12    nop
13g:
14    nop
15
16.quad g - f
17
18
19.weak f2
20f2:
21    nop
22g2:
23    nop
24.quad g2 - f2
25.quad f2 - g2
26call f2
27