Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / yaml2obj / symbol-type.yaml
blob5b3bb73c43b5fedadac6cbce5b1a696e727c748d
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-readobj --symbols %t | FileCheck %s
4 # CHECK: Name: notype
5 # CHECK: Type: None
6 # CHECK: Name: normal_type
7 # CHECK: Type: Object
8 # CHECK: Name: .text
9 # CHECK: Type: Section
10 # CHECK: Name: known_hex
11 # CHECK: Type: Object
12 # CHECK: Name: unknown_hex
13 # CHECK: Type: 0xB
14 # CHECK: Name: known_int
15 # CHECK: Type: Object
16 # CHECK: Name: unknown_int
17 # CHECK: Type: 0xB
19 !ELF
20 FileHeader:
21   Class:           ELFCLASS64
22   Data:            ELFDATA2LSB
23   Type:            ET_REL
24   Machine:         EM_X86_64
25 Sections:
26   - Name: .text
27     Type: SHT_PROGBITS
28 Symbols:
29   - Name:    notype
30     Type:    STT_NOTYPE
31     Binding: STB_GLOBAL 
32   - Name:    normal_type
33     Type:    STT_OBJECT
34     Binding: STB_GLOBAL
35   - Name:    .text
36     Type:    STT_SECTION
37     Binding: STB_GLOBAL
38   - Name:    known_hex
39     Type:    0x1
40     Binding: STB_GLOBAL
41   - Name:    unknown_hex
42     Type:    0xb
43     Binding: STB_GLOBAL
44   - Name:    known_int
45     Type:    1
46     Binding: STB_GLOBAL
47   - Name:    unknown_int
48     Type:    11
49     Binding: STB_GLOBAL