Lines Matching full:elf

3 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mipsel | FileCheck %s --check-prefix ELF-MIPSEL
4 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mips64el | FileCheck %s --check-prefix ELF-MIPS64EL
5 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64
6 RUN: obj2yaml %p/Inputs/unwind-section.elf-x86-64 \
7 RUN: | FileCheck %s --check-prefix ELF-X86-64-UNWIND
191 ELF-MIPSEL: FileHeader:
192 ELF-MIPSEL-NEXT: Class: ELFCLASS32
193 ELF-MIPSEL-NEXT: Data: ELFDATA2LSB
194 ELF-MIPSEL-NEXT: OSABI: ELFOSABI_GNU
195 ELF-MIPSEL-NEXT: Type: ET_REL
196 ELF-MIPSEL-NEXT: Machine: EM_MIPS
197 ELF-MIPSEL-NEXT: Flags: [ EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI_O32…
198 ELF-MIPSEL-NEXT: Sections:
199 ELF-MIPSEL-NEXT: - Name: .text
200 ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
201 ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
202 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
203 ELF-MIPSEL-NEXT: Content: 0000023C00004224E8FFBD271400BFAF1000B0AF218059000000018E00002…
204 ELF-MIPSEL-NEXT: - Name: .rel.text
205 ELF-MIPSEL-NEXT: Type: SHT_REL
206 ELF-MIPSEL-NEXT: Link: .symtab
207 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
208 ELF-MIPSEL-NEXT: Info: .text
209 ELF-MIPSEL-NEXT: Relocations:
210 ELF-MIPSEL-NEXT: - Offset: 0x0000000000000000
211 ELF-MIPSEL-NEXT: Symbol: _gp_disp
212 ELF-MIPSEL-NEXT: Type: R_MIPS_HI16
213 ELF-MIPSEL-NEXT: - Offset: 0x0000000000000004
214 ELF-MIPSEL-NEXT: Symbol: _gp_disp
215 ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
216 ELF-MIPSEL-NEXT: - Offset: 0x0000000000000018
217 ELF-MIPSEL-NEXT: Symbol: '$.str'
218 ELF-MIPSEL-NEXT: Type: R_MIPS_GOT16
219 ELF-MIPSEL-NEXT: - Offset: 0x000000000000001C
220 ELF-MIPSEL-NEXT: Symbol: '$.str'
221 ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
222 ELF-MIPSEL-NEXT: - Offset: 0x0000000000000020
223 ELF-MIPSEL-NEXT: Symbol: puts
224 ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
225 ELF-MIPSEL-NEXT: - Offset: 0x000000000000002C
226 ELF-MIPSEL-NEXT: Symbol: SomeOtherFunction
227 ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
228 ELF-MIPSEL-NEXT: - Name: .data
229 ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
230 ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
231 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
232 ELF-MIPSEL-NEXT: Content: ''
233 ELF-MIPSEL-NEXT: - Name: .bss
234 ELF-MIPSEL-NEXT: Type: SHT_NOBITS
235 ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
236 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
237 ELF-MIPSEL-NEXT: Content: 48656C6C
238 ELF-MIPSEL-NEXT: - Name: .mdebug.abi32
239 ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
240 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
241 ELF-MIPSEL-NEXT: Content: ''
242 ELF-MIPSEL-NEXT: - Name: .rodata.str1.1
243 ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
244 ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
245 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
246 ELF-MIPSEL-NEXT: Content: 48656C6C6F20576F726C640A00
247 ELF-MIPSEL-NEXT: - Name: .reginfo
248 ELF-MIPSEL-NEXT: Type: SHT_MIPS_REGINFO
249 ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC ]
250 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
251 ELF-MIPSEL-NEXT: Content: '000000000000000000000000000000000000000000000000'
252 ELF-MIPSEL-NEXT: - Name: .MIPS.abiflags
253 ELF-MIPSEL-NEXT: Type: SHT_MIPS_ABIFLAGS
254 ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC ]
255 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000008
256 ELF-MIPSEL-NEXT: Content: '000020010101000100000000000000000100000000000000'
257 ELF-MIPSEL-NEXT: Symbols:
258 ELF-MIPSEL-NEXT: Local:
259 ELF-MIPSEL-NEXT: - Name: trivial.ll
260 ELF-MIPSEL-NEXT: Type: STT_FILE
261 ELF-MIPSEL-NEXT: - Name: '$.str'
262 ELF-MIPSEL-NEXT: Type: STT_OBJECT
263 ELF-MIPSEL-NEXT: Section: .rodata.str1.1
264 ELF-MIPSEL-NEXT: Size: 0x000000000000000D
265 ELF-MIPSEL-NEXT: - Name: .text
266 ELF-MIPSEL-NEXT: Type: STT_SECTION
267 ELF-MIPSEL-NEXT: Section: .text
268 ELF-MIPSEL-NEXT: - Name: .data
269 ELF-MIPSEL-NEXT: Type: STT_SECTION
270 ELF-MIPSEL-NEXT: Section: .data
271 ELF-MIPSEL-NEXT: - Name: .bss
272 ELF-MIPSEL-NEXT: Type: STT_SECTION
273 ELF-MIPSEL-NEXT: Section: .bss
274 ELF-MIPSEL-NEXT: - Name: .mdebug.abi32
275 ELF-MIPSEL-NEXT: Type: STT_SECTION
276 ELF-MIPSEL-NEXT: Section: .mdebug.abi32
277 ELF-MIPSEL-NEXT: - Name: .rodata.str1.1
278 ELF-MIPSEL-NEXT: Type: STT_SECTION
279 ELF-MIPSEL-NEXT: Section: .rodata.str1.1
280 ELF-MIPSEL-NEXT: - Name: .reginfo
281 ELF-MIPSEL-NEXT: Type: STT_SECTION
282 ELF-MIPSEL-NEXT: Section: .reginfo
283 ELF-MIPSEL-NEXT: - Name: .MIPS.abiflags
284 ELF-MIPSEL-NEXT: Type: STT_SECTION
285 ELF-MIPSEL-NEXT: Section: .MIPS.abiflags
286 ELF-MIPSEL-NEXT: Global:
287 ELF-MIPSEL-NEXT: - Name: main
288 ELF-MIPSEL-NEXT: Type: STT_FUNC
289 ELF-MIPSEL-NEXT: Section: .text
290 ELF-MIPSEL-NEXT: Size: 0x000000000000004C
291 ELF-MIPSEL-NEXT: - Name: var
292 ELF-MIPSEL-NEXT: Type: STT_OBJECT
293 ELF-MIPSEL-NEXT: Section: .bss
294 ELF-MIPSEL-NEXT: Size: 0x0000000000000004
295 ELF-MIPSEL-NEXT: - Name: SomeOtherFunction
296 ELF-MIPSEL-NEXT: - Name: _gp_disp
297 ELF-MIPSEL-NEXT: - Name: puts
299 ELF-MIPS64EL: FileHeader:
300 ELF-MIPS64EL-NEXT: Class: ELFCLASS64
301 ELF-MIPS64EL-NEXT: Data: ELFDATA2LSB
302 ELF-MIPS64EL-NEXT: Type: ET_REL
303 ELF-MIPS64EL-NEXT: Machine: EM_MIPS
304 ELF-MIPS64EL-NEXT: Flags: [ EF_MIPS_ARCH_3 ]
305 ELF-MIPS64EL-NEXT: Sections:
306 ELF-MIPS64EL-NEXT: - Name: .text
307 ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
308 ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
309 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
310 ELF-MIPS64EL-NEXT: Content: ''
311 ELF-MIPS64EL-NEXT: - Name: .data
312 ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
313 ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
314 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
315 ELF-MIPS64EL-NEXT: Content: '00000000000000000000000000000000'
316 ELF-MIPS64EL-NEXT: - Name: .rela.data
317 ELF-MIPS64EL-NEXT: Type: SHT_RELA
318 ELF-MIPS64EL-NEXT: Link: .symtab
319 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008
320 ELF-MIPS64EL-NEXT: Info: .data
321 ELF-MIPS64EL-NEXT: Relocations:
322 ELF-MIPS64EL-NEXT: - Offset: 0
323 ELF-MIPS64EL-NEXT: Symbol: zed
324 ELF-MIPS64EL-NEXT: Type: R_MIPS_64
325 ELF-MIPS64EL-NEXT: - Name: .bss
326 ELF-MIPS64EL-NEXT: Type: SHT_NOBITS
327 ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
328 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
329 ELF-MIPS64EL-NEXT: Content: ''
330 ELF-MIPS64EL-NEXT: - Name: .MIPS.options
331 ELF-MIPS64EL-NEXT: Type: SHT_MIPS_OPTIONS
332 ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC ]
333 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008
334 ELF-MIPS64EL-NEXT: Content: '0128000000000000000000000000000000000000000000000000000000…
335 ELF-MIPS64EL-NEXT: - Name: .pdr
336 ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
337 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000004
338 ELF-MIPS64EL-NEXT: Content: ''
339 ELF-MIPS64EL-NEXT: Symbols:
340 ELF-MIPS64EL-NEXT: Local:
341 ELF-MIPS64EL-NEXT: - Name: .text
342 ELF-MIPS64EL-NEXT: Type: STT_SECTION
343 ELF-MIPS64EL-NEXT: Section: .text
344 ELF-MIPS64EL-NEXT: - Name: .data
345 ELF-MIPS64EL-NEXT: Type: STT_SECTION
346 ELF-MIPS64EL-NEXT: Section: .data
347 ELF-MIPS64EL-NEXT: - Name: .bss
348 ELF-MIPS64EL-NEXT: Type: STT_SECTION
349 ELF-MIPS64EL-NEXT: Section: .bss
350 ELF-MIPS64EL-NEXT: - Name: bar
351 ELF-MIPS64EL-NEXT: Section: .data
352 ELF-MIPS64EL-NEXT: - Name: .MIPS.options
353 ELF-MIPS64EL-NEXT: Type: STT_SECTION
354 ELF-MIPS64EL-NEXT: Section: .MIPS.options
355 ELF-MIPS64EL-NEXT: - Name: .pdr
356 ELF-MIPS64EL-NEXT: Type: STT_SECTION
357 ELF-MIPS64EL-NEXT: Section: .pdr
358 ELF-MIPS64EL-NEXT: Global:
359 ELF-MIPS64EL-NEXT: - Name: zed
361 ELF-X86-64: FileHeader:
362 ELF-X86-64-NEXT: Class: ELFCLASS64
363 ELF-X86-64-NEXT: Data: ELFDATA2LSB
364 ELF-X86-64-NEXT: OSABI: ELFOSABI_GNU
365 ELF-X86-64-NEXT: Type: ET_REL
366 ELF-X86-64-NEXT: Machine: EM_X86_64
367 ELF-X86-64-NEXT: Sections:
368 ELF-X86-64-NEXT: - Name: .text
369 ELF-X86-64-NEXT: Type: SHT_PROGBITS
370 ELF-X86-64-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
371 ELF-X86-64-NEXT: AddressAlign: 0x0000000000000010
372 ELF-X86-64-NEXT: Content: 4883EC08C744240400000000BF00000000E80000000030C0E8000000008B4…
373 ELF-X86-64-NEXT: - Name: .rodata.str1.1
374 ELF-X86-64-NEXT: Type: SHT_PROGBITS
375 ELF-X86-64-NEXT: Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
376 ELF-X86-64-NEXT: Address: 0x0000000000000026
377 ELF-X86-64-NEXT: AddressAlign: 0x0000000000000001
378 ELF-X86-64-NEXT: Content: 48656C6C6F20576F726C642100
379 ELF-X86-64-NEXT: - Name: .note.GNU-stack
380 ELF-X86-64-NEXT: Type: SHT_PROGBITS
381 ELF-X86-64-NEXT: Address: 0x0000000000000033
382 ELF-X86-64-NEXT: AddressAlign: 0x0000000000000001
383 ELF-X86-64-NEXT: Content: ''
384 ELF-X86-64-NEXT: - Name: .rela.text
385 ELF-X86-64-NEXT: Type: SHT_RELA
386 ELF-X86-64-NEXT: Address: 0x0000000000000038
387 ELF-X86-64-NEXT: Link: .symtab
388 ELF-X86-64-NEXT: AddressAlign: 0x0000000000000008
389 ELF-X86-64-NEXT: Info: .text
390 ELF-X86-64-NEXT: Relocations:
391 ELF-X86-64-NEXT: - Offset: 0x000000000000000D
392 ELF-X86-64-NEXT: Symbol: .rodata.str1.1
393 ELF-X86-64-NEXT: Type: R_X86_64_32S
394 ELF-X86-64-NEXT: - Offset: 0x0000000000000012
395 ELF-X86-64-NEXT: Symbol: puts
396 ELF-X86-64-NEXT: Type: R_X86_64_PC32
397 ELF-X86-64-NEXT: Addend: -4
398 ELF-X86-64-NEXT: - Offset: 0x0000000000000019
399 ELF-X86-64-NEXT: Symbol: SomeOtherFunction
400 ELF-X86-64-NEXT: Type: R_X86_64_PC32
401 ELF-X86-64-NEXT: Addend: -4
402 ELF-X86-64-NEXT: Symbols:
403 ELF-X86-64-NEXT: Local:
404 ELF-X86-64-NEXT: - Name: trivial-object-test.s
405 ELF-X86-64-NEXT: Type: STT_FILE
406 ELF-X86-64-NEXT: - Name: .text
407 ELF-X86-64-NEXT: Type: STT_SECTION
408 ELF-X86-64-NEXT: Section: .text
409 ELF-X86-64-NEXT: - Name: .rodata.str1.1
410 ELF-X86-64-NEXT: Type: STT_SECTION
411 ELF-X86-64-NEXT: Section: .rodata.str1.1
412 ELF-X86-64-NEXT: - Name: .note.GNU-stack
413 ELF-X86-64-NEXT: Type: STT_SECTION
414 ELF-X86-64-NEXT: Section: .note.GNU-stack
415 ELF-X86-64-NEXT: Global:
416 ELF-X86-64-NEXT: - Name: main
417 ELF-X86-64-NEXT: Type: STT_FUNC
418 ELF-X86-64-NEXT: Section: .text
419 ELF-X86-64-NEXT: Size: 0x0000000000000026
420 ELF-X86-64-NEXT: - Name: SomeOtherFunction
421 ELF-X86-64-NEXT: - Name: puts
423 ELF-X86-64-UNWIND: - Name: .eh_frame
424 ELF-X86-64-UNWIND-NEXT: Type: SHT_X86_64_UNWIND
425 ELF-X86-64-UNWIND-NEXT: Flags: [ SHF_ALLOC ]
426 ELF-X86-64-UNWIND-NEXT: AddressAlign: 0x0000000000000001
427 ELF-X86-64-UNWIND-NEXT: Content: ''