• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj -r --symbols - | FileCheck %s
2
3// CHECK:       Section {{.*}} .rela.text {
4// CHECK-NEXT:    0x0 R_X86_64_32 d 0x0
5// CHECK-NEXT:  }
6
7// CHECK:      Symbol {
8// CHECK:        Name:  d2
9// CHECK-NEXT:   Value: 0x2A
10
11a:
12        b = a
13        c = a
14        d = a
15        .weak d
16        .long d + (b - c)
17
18
19a2:
20        .weak b2
21        b2 = a2
22        c2 = b2 - a2
23        d2 = b2 - a2 + 42
24