summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ObjectFile/ELF/section-types.yaml
blob: fecb5cacc5b1d13075db578b727e39fc721ccabe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# RUN: yaml2obj %s -o %t
# RUN: lldb-test object-file %t | FileCheck %s

# CHECK-LABEL: Name: .text
# CHECK-NEXT: Type: code

# CHECK-LABEL: Name: .debug_info
# CHECK-NEXT: Type: dwarf-info

# CHECK-LABEL: Name: .debug_types
# CHECK-NEXT: Type: dwarf-types

# CHECK-LABEL: Name: .debug_types.dwo
# CHECK-NEXT: Type: dwarf-types-dwo

# CHECK-LABEL: Name: .debug_loc
# CHECK-NEXT: Type: dwarf-loc

# CHECK-LABEL: Name: .debug_loc.dwo
# CHECK-NEXT: Type: dwarf-loc-dwo

# CHECK-LABEL: Name: .debug_loclists
# CHECK-NEXT: Type: dwarf-loclists

# CHECK-LABEL: Name: .debug_loclists.dwo
# CHECK-NEXT: Type: dwarf-loclists-dwo

# CHECK-LABEL: Name: .debug_rnglists
# CHECK-NEXT: Type: dwarf-rnglists

# CHECK-LABEL: Name: .debug_rnglists.dwo
# CHECK-NEXT: Type: dwarf-rnglists-dwo

# CHECK-LABEL: Name: .debug_names
# CHECK-NEXT: Type: dwarf-names

# CHECK-LABEL: Name: .debug_cu_index
# CHECK-NEXT: Type: dwarf-cu-index

# CHECK-LABEL: Name: .debug_tu_index
# CHECK-NEXT: Type: dwarf-tu-index

# CHECK-LABEL: Name: .gnu_debugaltlink
# CHECK-NEXT: Type: dwarf-gnu-debugaltlink

# CHECK-LABEL: Name: __codesection
# CHECK-NEXT: Type: code

# CHECK-LABEL: Name: .data
# CHECK-NEXT: Type: data
# CHECK: Thread specific: no

# CHECK-LABEL: Name: .tdata
# CHECK-NEXT: Type: data
# CHECK: Thread specific: yes

# CHECK-LABEL: Name: .tbss
# CHECK-NEXT: Type: zero-fill
# CHECK: Thread specific: yes

--- !ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_X86_64
  Entry:           0x00000000000007A0
Sections:
  - Name:            .text
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_info
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_types
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_types.dwo
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_loc
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_loc.dwo
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_loclists
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_loclists.dwo
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_rnglists
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_rnglists.dwo
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_names
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_cu_index
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_tu_index
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .gnu_debugaltlink
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            __codesection
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    Content:         DEADBEEFBAADF00D
  - Name:            .data
    Type:            SHT_PROGBITS
    Flags:           [ SHF_WRITE, SHF_ALLOC ]
    AddressAlign:    0x0000000000000004
    Content:         2F000000
  - Name:            .tdata
    Type:            SHT_PROGBITS
    Flags:           [ SHF_WRITE, SHF_ALLOC, SHF_TLS ]
    AddressAlign:    0x0000000000000004
    Content:         2F000000
  - Name:            .tbss
    Type:            SHT_NOBITS
    Flags:           [ SHF_WRITE, SHF_ALLOC, SHF_TLS ]
    AddressAlign:    0x0000000000000004
    Size:            0x0000000000000004
...