1# RUN: yaml2obj %s -o %t.o
2# RUN: llvm-nm --special-syms --debug-syms %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix SYMBOL
3# RUN: llvm-nm --special-syms -a %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix SYMBOL
4
5# SYMBOL:      0000000000000000 n $a
6# SYMBOL-NEXT: 0000000000000000 n $d
7# SYMBOL-NEXT: 0000000000000000 n $t
8# SYMBOL-NEXT: 0000000000000000 a file_sym
9# SYMBOL-NEXT: 0000000000000000 n section
10
11# RUN: llvm-nm --debug-syms --dynamic %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix DYNSYM
12
13# DYNSYM:      0000000000000000 N dynglobal
14# DYNSYM-NEXT: 0000000000000000 n dynlocal
15
16!ELF
17FileHeader:
18  Class:   ELFCLASS64
19  Data:    ELFDATA2LSB
20  Type:    ET_REL
21  Machine: EM_ARM
22Sections:
23  - Name: section
24    Type: SHT_PROGBITS
25Symbols:
26  - Name:    ""
27    Type:    STT_SECTION
28    Section: section
29  - Name:    file_sym
30    Type:    STT_FILE
31    Index:   SHN_ABS
32  - Name:    $d
33    Section: section
34  - Name:    $t
35    Section: section
36  - Name:    $a
37    Section: section
38DynamicSymbols:
39  - Name:    dynlocal
40    Type:    STT_OBJECT
41    Section: section
42  - Name:    dynglobal
43    Type:    STT_OBJECT
44    Binding: STB_GLOBAL
45    Section: section
46