## Test --special-syms flag. # RUN: yaml2obj %s -o %t # RUN: llvm-nm %t | count 0 # RUN: llvm-nm %t --special-syms | FileCheck %s \ # RUN: --implicit-check-not=file_sym --implicit-check-not=.text ## --special-syms should show mapping symbols but not STT_FILE or STT_SECTION. # CHECK: 2000 d $d.1 # CHECK-NEXT: 1000 t $x.1 !ELF FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB Type: ET_REL Machine: EM_RISCV Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] Address: 0x1000 - Name: .data Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_WRITE ] Address: 0x2000 Symbols: - Name: "" Type: STT_SECTION Section: .text - Name: file_sym Type: STT_FILE Index: SHN_ABS - Name: $x.1 Section: .text - Name: $d.1 Section: .data