1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj -r | FileCheck %s
2
3// CHECK:       Section {{.*}} .rela.text {
4// CHECK-NEXT:    0x0 R_X86_64_32 d 0x0
5// CHECK-NEXT:  }
6
7a:
8        b = a
9        c = a
10        d = a
11        .weak d
12        .long d + (b - c)
13
14
15a2:
16        .weak b2
17        b2 = a2
18        c2 = b2 - a2
19