119 lines · plain
1## Test llvm-nm for XCOFF object files.2 3# RUN: yaml2obj %s -o %t.o4# RUN: llvm-nm %t.o | FileCheck --match-full-lines %s5 6--- !XCOFF7FileHeader:8 MagicNumber: 0x1DF9Sections:10 - Name: .text11 Address: 0x012 Flags: [ STYP_TEXT ]13 - Name: .data14 Flags: [ STYP_DATA ]15 - Name: .bss16 Flags: [ STYP_BSS ]17 - Name: .debug18 Flags: [ STYP_DEBUG ]19 - Name: .except20 Flags: [ STYP_EXCEPT ]21Symbols:22 - Name: .file23 Section: N_DEBUG24 StorageClass: C_FILE25 - Name: .text26 Value: 0x1027 Section: .text28 StorageClass: C_STAT29 NumberOfAuxEntries: 130 - Name: .data31 Value: 0x8032 Section: .data33 StorageClass: C_STAT34 NumberOfAuxEntries: 135 - Name: .bss36 Value: 0x31037 Section: .bss38 StorageClass: C_STAT39 - Name: .debug40 Section: .debug41 StorageClass: C_STAT42 - Name: ._ZL5func0v43 Section: .text44 StorageClass: C_EXT45 Type: 0x2046 AuxEntries:47 - Type: AUX_CSECT48 SymbolAlignmentAndType: 0x0249 StorageMappingClass: XMC_PR50 - Name: ._Z3fwpv51 Section: .text52 StorageClass: C_WEAKEXT53 Type: 0x2054 AuxEntries:55 - Type: AUX_CSECT56 SymbolAlignmentAndType: 0x0257 StorageMappingClass: XMC_PR58 - Name: val59 Section: .data60 StorageClass: C_EXT61 Type: 0x2062 AuxEntries:63 - Type: AUX_CSECT64 SymbolAlignmentAndType: 0x0165 StorageMappingClass: XMC_RW66 SectionOrLength: 0x467 - Name: extval68 Section: N_UNDEF69 StorageClass: C_EXT70 Type: 0x0071 AuxEntries:72 - Type: AUX_CSECT73 SymbolAlignmentAndType: 0x0174 StorageMappingClass: XMC_UA75 SectionOrLength: 0x076 - Name: comval77 Section: .bss78 Value: 0x13C79 StorageClass: C_EXT80 Type: 0x0081 AuxEntries:82 - Type: AUX_CSECT83 SymbolAlignmentAndType: 0x0384 StorageMappingClass: XMC_RW85 SectionOrLength: 0x086 - Name: abs87 Section: N_ABS88 - Name: symIn_N_debug89 Section: N_DEBUG90 - Name: .except91 Section: .except92 93## Global weak symbol.94# CHECK: 00000000 W ._Z3fwpv95## Global symbol in .text section.96# CHECK-NEXT: 00000000 T ._ZL5func0v97## Symbol in .bss section.98# CHECK-NEXT: 00000310 b .bss99## Local symbol in .data section.100# CHECK-NEXT: 00000080 d .data101## Symbol in .debug section.102# CHECK-NEXT: 00000000 N .debug103## Symbol in .except section.104# CHECK-NEXT: 00000000 ? .except105## Symbol .file.106# CHECK-NEXT: 00000000 f .file107## Local symbol in .text section.108# CHECK-NEXT: 00000010 t .text109## Absolute symbol.110# CHECK-NEXT: 00000000 a abs111## Common symbol.112# CHECK-NEXT: 0000013c C comval113## Undefined symbol.114# CHECK-NEXT: U extval115## Symbol in N_DEBUG section.116# CHECK-NEXT: 00000000 ? symIn_N_debug117## Global symbol in .data section.118# CHECK-NEXT: 00000000 D val119