xref: /llvm-project/llvm/test/tools/llvm-objcopy/ELF/Inputs/compress-debug-sections.yaml (revision 122d368b2b120ff233e66658862b90f185f65c6e)
1--- !ELF
2FileHeader:
3  Class:           ELFCLASS[[BITS=64]]
4  Data:            ELFDATA2LSB
5  Type:            ET_REL
6  Machine:         EM_X86_64
7Sections:
8  - Name:            .debug_foo
9    Type:            SHT_PROGBITS
10    Content:         0000000000000000
11  - Name:            .notdebug_foo
12    Type:            SHT_PROGBITS
13    Content:         0000000000000000
14  - Name:            .rela.debug_foo
15    Type:            SHT_RELA
16    Info:            .debug_foo
17    Relocations:
18      - Offset:          0x1
19        Symbol:          1
20        Type:            R_X86_64_32
21      - Offset:          0x2
22        Symbol:          2
23        Type:            R_X86_64_32
24## This section should not be involved in relocations.
25  - Name:            .debug_bar
26    Type:            SHT_PROGBITS
27    Content:         0000000000000000
28  - Name:            .group
29    Type:            SHT_GROUP
30    Link:            .symtab
31    AddressAlign:    4
32    EntSize:         0x0000000000000004
33    Info:            groupname
34    Members:
35      - SectionOrType:   GRP_COMDAT
36      - SectionOrType:   .text.in.group
37      - SectionOrType:   .debug_in_group
38  - Name:            .text.in.group
39    Type:            SHT_PROGBITS
40    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
41    Content:         '00'
42  - Name:            .debug_in_group
43    Type:            SHT_PROGBITS
44    Flags:           [ SHF_GROUP ]
45    Content:         '00'
46  - Name:            .debug_alloc
47    Type:            SHT_PROGBITS
48    Flags:           [ SHF_ALLOC ]
49    Content:         000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f
50Symbols:
51  - Type:    STT_SECTION
52    Section: .debug_foo
53    Binding:  STB_GLOBAL
54  - Type:    STT_SECTION
55    Section: .notdebug_foo
56    Binding:  STB_GLOBAL
57  - Name:    .Linfo_string0
58    Section: .debug_bar
59    Binding:  STB_GLOBAL
60  - Name:    groupname
61    Section: .group
62    Binding:  STB_GLOBAL
63...
64