1# RUN: yaml2obj %s -o %t.o 2# RUN: llvm-nm %t.o --debug-syms --format=sysv | FileCheck %s -DFILE=%t.o --strict-whitespace 3# RUN: llvm-nm %t.o --debug-syms -f=sysv | FileCheck %s -DFILE=%t.o --strict-whitespace 4 5!ELF 6FileHeader: 7 Class: ELFCLASS64 8 Data: ELFDATA2LSB 9 Type: ET_REL 10 Machine: EM_X86_64 11Sections: 12 - Name: .text 13 Type: SHT_PROGBITS 14 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 15Symbols: 16 - Name: symbol_with_a_significantly_longer_name 17 Section: .text 18 - Name: symbol 19 Section: .text 20 - Name: symbol_2 21 Type: STT_FUNC 22 23# CHECK: Symbols from [[FILE]]: 24# CHECK-EMPTY: 25# CHECK-NEXT: Name Value Class Type Size Line Section 26# CHECK-NEXT: symbol |0000000000000000| t | NOTYPE|0000000000000000| |.text 27# CHECK-NEXT: symbol_2 | | U | FUNC| | |*UND* 28# CHECK-NEXT: symbol_with_a_significantly_longer_name|0000000000000000| t | NOTYPE|0000000000000000| |.text 29