[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-nm / format-sysv-type.test
blob68b376aecab19b6d8652a82fb785f934dd9307fb
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: unknown_7
24     Type: 7
25   - Name: unknown_8
26     Type: 8
27   - Name: unknown_9
28     Type: 9
29   - Name: symbol_ifunc
30     Type: STT_GNU_IFUNC
31   - Name: os_specific_10
32     Type: 10
33   - Name: os_specific_11
34     Type: 11
35   - Name: os_specific_12
36     Type: 12
37   - Name: proc_specific_13
38     Type: 13
39   - Name: proc_specific_14
40     Type: 14
41   - Name: proc_specific_15
42     Type: 15
44 # CHECK:      os_specific_10      |                |   U  |             IFUNC|                |     |*UND*
45 # CHECK-NEXT: os_specific_11      |                |   U  | <OS specific>: 11|                |     |*UND*
46 # CHECK-NEXT: os_specific_12      |                |   U  | <OS specific>: 12|                |     |*UND*
47 # CHECK-NEXT: proc_specific_13    |                |   U  |<processor specific>: 13|                |     |*UND*
48 # CHECK-NEXT: proc_specific_14    |                |   U  |<processor specific>: 14|                |     |*UND*
49 # CHECK-NEXT: proc_specific_15    |                |   U  |<processor specific>: 15|                |     |*UND*
50 # CHECK-NEXT: symbol_common       |                |   U  |            COMMON|                |     |*COM*
51 # CHECK-NEXT: symbol_file         |                |   U  |              FILE|                |     |*UND*
52 # CHECK-NEXT: symbol_func         |                |   U  |              FUNC|                |     |*UND*
53 # CHECK-NEXT: symbol_ifunc        |                |   U  |             IFUNC|                |     |*UND*
54 # CHECK-NEXT: symbol_notype       |                |   U  |            NOTYPE|                |     |*UND*
55 # CHECK-NEXT: symbol_obj          |                |   U  |            OBJECT|                |     |*UND*
56 # CHECK-NEXT: symbol_tls          |                |   U  |               TLS|                |     |*UND*
57 # CHECK-NEXT: unknown_7           |                |   U  |      <unknown>: 7|                |     |*UND*
58 # CHECK-NEXT: unknown_8           |                |   U  |      <unknown>: 8|                |     |*UND*
59 # CHECK-NEXT: unknown_9           |                |   U  |      <unknown>: 9|                |     |*UND*