Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-nm / format-sysv-type.test
bloba8bf1b5ef419654f3c0aad3e0553d282fcfa0aeb
1 # RUN: yaml2obj %s > %t.o
2 # RUN: llvm-nm %t.o --debug-syms --format=sysv | FileCheck %s
4 !ELF
5 FileHeader:
6   Class:   ELFCLASS64
7   Data:    ELFDATA2LSB
8   Type:    ET_REL
9   Machine: EM_X86_64
10 Symbols:
11   - Name: symbol_notype
12     Type: STT_NOTYPE
13   - Name: symbol_common
14     Type: STT_COMMON
15   - Name: symbol_tls
16     Type: STT_TLS
17   - Name: symbol_file
18     Type: STT_FILE
19   - Name: symbol_obj
20     Type: STT_OBJECT
21   - Name: symbol_func
22     Type: STT_FUNC
23   - Name: symbol_ifunc
24     Type: STT_GNU_IFUNC
25   - Name: os_specific
26     Type: 11
27   - Name: proc_specific
28     Type: 13
29   - Name: unknown
30     Type: 7
32 ## FIXME: Should not print blank types for unknown, OS-specific and processor-
33 ##        specific types. See https://bugs.llvm.org/show_bug.cgi?id=41713.
35 # CHECK:      os_specific   {{.*}}|                  |                |     |*UND*
36 # CHECK-NEXT: proc_specific {{.*}}|                  |                |     |*UND*
37 # CHECK-NEXT: symbol_common {{.*}}|            COMMON|                |     |*COM*
38 # CHECK-NEXT: symbol_file   {{.*}}|              FILE|                |     |*UND*
39 # CHECK-NEXT: symbol_func   {{.*}}|              FUNC|                |     |*UND*
40 # CHECK-NEXT: symbol_ifunc  {{.*}}|             IFUNC|                |     |*UND*
41 # CHECK-NEXT: symbol_notype {{.*}}|            NOTYPE|                |     |*UND*
42 # CHECK-NEXT: symbol_obj    {{.*}}|            OBJECT|                |     |*UND*
43 # CHECK-NEXT: symbol_tls    {{.*}}|               TLS|                |     |*UND*
44 # CHECK-NEXT: unknown       {{.*}}|                  |                |     |*UND*