1## Test llvm-nm for XCOFF object files with --print-size option. 2 3# RUN: yaml2obj %s -o %t.o 4# RUN: llvm-nm --print-size %t.o | FileCheck --match-full-lines %s 5 6--- !XCOFF 7FileHeader: 8 MagicNumber: 0x1DF 9Sections: 10 - Name: .text 11 Flags: [ STYP_TEXT ] 12 - Name: .data 13 Flags: [ STYP_DATA ] 14 - Name: .bss 15 Flags: [ STYP_BSS ] 16Symbols: 17 - Name: ._ZL5func0v 18 Section: .text 19 StorageClass: C_EXT 20 Type: 0x20 21 AuxEntries: 22 - Type: AUX_CSECT 23 SymbolAlignmentAndType: 0x02 24 StorageMappingClass: XMC_PR 25 - Name: val 26 Value: 0x200 27 Section: .data 28 StorageClass: C_EXT 29 Type: 0x20 30 AuxEntries: 31 - Type: AUX_CSECT 32 SymbolAlignmentAndType: 0x01 33 StorageMappingClass: XMC_RW 34 SectionOrLength: 0x8 35 - Name: comval 36 Section: .bss 37 Value: 0x13C 38 StorageClass: C_EXT 39 Type: 0x00 40 AuxEntries: 41 - Type: AUX_CSECT 42 SymbolAlignmentAndType: 0x03 43 StorageMappingClass: XMC_RW 44 SectionOrLength: 0x4 45 46## Label symbol. 47# CHECK: 00000000 00000000 T ._ZL5func0v 48## Common symbol. 49# CHECK-NEXT: 0000013c 00000004 C comval 50## SD symbol. 51# CHECK-NEXT: 00000200 00000008 D val 52