File: stabs-sorted.yaml

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (233 lines) | stat: -rw-r--r-- 6,834 bytes parent folder | download | duplicates (13)
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
## Verify that llvm-readobj can dump files with stabs symbols in a sorted order.

# RUN: yaml2obj --docnum=1 %s -o %t

# RUN: not llvm-readobj --syms --sort-symbols=foo %t 2>&1 | FileCheck %s --check-prefix ERR-KEY
# RUN: not llvm-readobj --syms --sort-symbols=,, %t 2>&1 | FileCheck %s --check-prefix ERR-KEY-EMPT

# RUN: llvm-readobj --syms --sort-symbols=type,name %t | FileCheck %s --check-prefix TYPE-NAME
# RUN: llvm-readobj --syms --sort-symbols=name,type %t | FileCheck %s --check-prefix NAME-TYPE
# RUN: llvm-readobj --syms --sort-symbols=type %t | FileCheck %s --check-prefix TYPE-ONLY

# ERR-KEY: error: --sort-symbols value should be 'name' or 'type', but was 'foo'
# ERR-KEY-EMPT: error: --sort-symbols value should be 'name' or 'type', but was ''

# TYPE-NAME:      Name: _a (19)
# TYPE-NAME-NEXT: Type: Section (0xE)
# TYPE-NAME:      Name: _d (10)
# TYPE-NAME-NEXT: Type: Section (0xE)
# TYPE-NAME:      Name: _f (7)
# TYPE-NAME-NEXT: Type: SymDebugTable (0x2E)
# TYPE-NAME:      Name: _z (1)
# TYPE-NAME-NEXT: Type: SymDebugTable (0x2E)
# TYPE-NAME:      Name: _c (13)
# TYPE-NAME-NEXT: Type: SymDebugTable (0x64)
# TYPE-NAME:      Name: _g (4)
# TYPE-NAME-NEXT: Type: SymDebugTable (0x64)
# TYPE-NAME:      Name: _b (16)
# TYPE-NAME-NEXT: Type: SymDebugTable (0x66)
# TYPE-NAME:      Name: _d2 (22)
# TYPE-NAME-NEXT: Type: SymDebugTable (0x66)

# NAME-TYPE:         Name: _a (19)
# NAME-TYPE-NEXT:    Type: Section (0xE)
# NAME-TYPE:         Name: _b (16)
# NAME-TYPE-NEXT:    Type: SymDebugTable (0x66)
# NAME-TYPE:         Name: _c (13)
# NAME-TYPE-NEXT:    Type: SymDebugTable (0x64)
# NAME-TYPE:         Name: _d (10)
# NAME-TYPE-NEXT:    Type: Section (0xE)
# NAME-TYPE:         Name: _d2 (22)
# NAME-TYPE-NEXT:    Type: SymDebugTable (0x66)
# NAME-TYPE:         Name: _f (7)
# NAME-TYPE-NEXT:    Type: SymDebugTable (0x2E)
# NAME-TYPE:         Name: _g (4)
# NAME-TYPE-NEXT:    Type: SymDebugTable (0x64)
# NAME-TYPE:         Name: _z (1)
# NAME-TYPE-NEXT:    Type: SymDebugTable (0x2E)

# TYPE-ONLY:        Name: _d (10)
# TYPE-ONLY-NEXT:   Type: Section (0xE)
# TYPE-ONLY:        Name: _a (19)
# TYPE-ONLY-NEXT:   Type: Section (0xE)
# TYPE-ONLY:        Name: _f (7)
# TYPE-ONLY-NEXT:   Type: SymDebugTable (0x2E)
# TYPE-ONLY:        Name: _z (1)
# TYPE-ONLY-NEXT:   Type: SymDebugTable (0x2E)
# TYPE-ONLY:        Name: _g (4)
# TYPE-ONLY-NEXT:   Type: SymDebugTable (0x64)
# TYPE-ONLY:        Name: _c (13)
# TYPE-ONLY-NEXT:   Type: SymDebugTable (0x64)
# TYPE-ONLY:        Name: _d2 (22)
# TYPE-ONLY-NEXT:   Type: SymDebugTable (0x66)
# TYPE-ONLY:        Name: _b (16)
# TYPE-ONLY-NEXT:   Type: SymDebugTable (0x66)

--- !mach-o
FileHeader:
  magic:           0xFEEDFACF
  cputype:         0x1000007
  cpusubtype:      0x3
  filetype:        0x1
  ncmds:           3
  sizeofcmds:      496
  flags:           0x2000
  reserved:        0x0
LoadCommands:
  - cmd:             LC_SEGMENT_64
    cmdsize:         392
    segname:         ''
    vmaddr:          0
    vmsize:          32
    fileoff:         528
    filesize:        28
    maxprot:         7
    initprot:        7
    nsects:          4
    flags:           0
    Sections:
      - sectname:        __text
        segname:         __TEXT
        addr:            0x0
        size:            9
        offset:          0x210
        align:           0
        reloff:          0x230
        nreloc:          1
        flags:           0x80000000
        reserved1:       0x0
        reserved2:       0x0
        reserved3:       0x0
        content:         '000000000000000000'
        relocations:
          - address:         0x0
            symbolnum:       7
            pcrel:           false
            length:          3
            extern:          true
            type:            0
            scattered:       false
            value:           0
      - sectname:        more_data
        segname:         __DATA
        addr:            0x9
        size:            8
        offset:          0x219
        align:           0
        reloff:          0x0
        nreloc:          0
        flags:           0x0
        reserved1:       0x0
        reserved2:       0x0
        reserved3:       0x0
        content:         7B00000000000000
      - sectname:        __data
        segname:         __DATA
        addr:            0x11
        size:            11
        offset:          0x221
        align:           0
        reloff:          0x0
        nreloc:          0
        flags:           0x0
        reserved1:       0x0
        reserved2:       0x0
        reserved3:       0x0
        content:         7B00000000000000000000
      - sectname:        __common
        segname:         __DATA
        addr:            0x1C
        size:            4
        offset:          0x0
        align:           2
        reloff:          0x0
        nreloc:          0
        flags:           0x1
        reserved1:       0x0
        reserved2:       0x0
        reserved3:       0x0
  - cmd:             LC_SYMTAB
    cmdsize:         24
    symoff:          568
    nsyms:           8
    stroff:          696
    strsize:         32
  - cmd:             LC_DYSYMTAB
    cmdsize:         80
    ilocalsym:       0
    nlocalsym:       7
    iextdefsym:      7
    nextdefsym:      0
    iundefsym:       7
    nundefsym:       1
    tocoff:          0
    ntoc:            0
    modtaboff:       0
    nmodtab:         0
    extrefsymoff:    0
    nextrefsyms:     0
    indirectsymoff:  0
    nindirectsyms:   0
    extreloff:       0
    nextrel:         0
    locreloff:       0
    nlocrel:         0
LinkEditData:
  NameList:
    - n_strx:          4
      n_type:          0x64
      n_sect:          1
      n_desc:          0
      n_value:         0
    - n_strx:          10
      n_type:          0xE
      n_sect:          1
      n_desc:          0
      n_value:         8
    - n_strx:          22
      n_type:          0x66
      n_sect:          1
      n_desc:          0
      n_value:         8
    - n_strx:          16
      n_type:          0x66
      n_sect:          2
      n_desc:          0
      n_value:         9
    - n_strx:          19
      n_type:          0xE
      n_sect:          3
      n_desc:          0
      n_value:         17
    - n_strx:          13
      n_type:          0x64
      n_sect:          4
      n_desc:          0
      n_value:         28
    - n_strx:          7
      n_type:          0x2E
      n_sect:          3
      n_desc:          0
      n_value:         25
    - n_strx:          1
      n_type:          0x2E
      n_sect:          0
      n_desc:          0
      n_value:         0
  StringTable:
    - ''
    - _z
    - _g
    - _f
    - _d
    - _c
    - _b
    - _a
    - _d2
    - ''
    - ''
    - ''
    - ''
    - ''
    - ''
...