1 ## Test llvm-nm for XCOFF object files.
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: llvm-nm %t.o | FileCheck --match-full-lines %s
20 Flags: [ STYP_EXCEPT ]
48 SymbolAlignmentAndType: 0x02
49 StorageMappingClass: XMC_PR
52 StorageClass: C_WEAKEXT
56 SymbolAlignmentAndType: 0x02
57 StorageMappingClass: XMC_PR
64 SymbolAlignmentAndType: 0x01
65 StorageMappingClass: XMC_RW
73 SymbolAlignmentAndType: 0x01
74 StorageMappingClass: XMC_UA
83 SymbolAlignmentAndType: 0x03
84 StorageMappingClass: XMC_RW
93 ## Global weak symbol.
94 # CHECK: 00000000 W ._Z3fwpv
95 ## Global symbol in .text section.
96 # CHECK-NEXT: 00000000 T ._ZL5func0v
97 ## Symbol in .bss section.
98 # CHECK-NEXT: 00000310 b .bss
99 ## Local symbol in .data section.
100 # CHECK-NEXT: 00000080 d .data
101 ## Symbol in .debug section.
102 # CHECK-NEXT: 00000000 N .debug
103 ## Symbol in .except section.
104 # CHECK-NEXT: 00000000 ? .except
106 # CHECK-NEXT: 00000000 f .file
107 ## Local symbol in .text section.
108 # CHECK-NEXT: 00000010 t .text
110 # CHECK-NEXT: 00000000 a abs
112 # CHECK-NEXT: 0000013c C comval
114 # CHECK-NEXT: U extval
115 ## Symbol in N_DEBUG section.
116 # CHECK-NEXT: 00000000 ? symIn_N_debug
117 ## Global symbol in .data section.
118 # CHECK-NEXT: 00000000 D val