• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o %t.o
2// RUN: llvm-readobj -t %t.o | FileCheck %s
3
4// test that b and .weak.b have the correct values.
5
6        .data
7.long 42
8        .weak b
9b:
10        .long   42
11
12// CHECK:      Symbol {
13// CHECK:        Name: b
14// CHECK-NEXT:   Value: 0
15// CHECK-NEXT:   Section: IMAGE_SYM_UNDEFINED (0)
16// CHECK-NEXT:   BaseType: Null (0x0)
17// CHECK-NEXT:   ComplexType: Null (0x0)
18// CHECK-NEXT:   StorageClass: WeakExternal (0x69)
19// CHECK-NEXT:   AuxSymbolCount: 1
20// CHECK-NEXT:   AuxWeakExternal {
21// CHECK-NEXT:     Linked: .weak.b.default (8)
22// CHECK-NEXT:     Search: Library (0x2)
23// CHECK-NEXT:   }
24// CHECK-NEXT: }
25// CHECK-NEXT: Symbol {
26// CHECK-NEXT:   Name: .weak.b.default
27// CHECK-NEXT:   Value: 4
28// CHECK-NEXT:   Section: .data (2)
29// CHECK-NEXT:   BaseType: Null (0x0)
30// CHECK-NEXT:   ComplexType: Null (0x0)
31// CHECK-NEXT:   StorageClass: External (0x2)
32// CHECK-NEXT:   AuxSymbolCount: 0
33// CHECK-NEXT: }
34