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/trivial-object-test.elf-avr | FileCheck %s --check-prefix ELF-AVR
7 RUN: obj2yaml %p/Inputs/unwind-section.elf-x86-64 \
8 RUN: | FileCheck %s --check-prefix ELF-X86-64-UNWIND
192 ELF-MIPSEL: FileHeader:
193 ELF-MIPSEL-NEXT: Class: ELFCLASS32
194 ELF-MIPSEL-NEXT: Data: ELFDATA2LSB
195 ELF-MIPSEL-NEXT: OSABI: ELFOSABI_GNU
196 ELF-MIPSEL-NEXT: Type: ET_REL
197 ELF-MIPSEL-NEXT: Machine: EM_MIPS
198 ELF-MIPSEL-NEXT: Flags: [ EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI_O32…
199 ELF-MIPSEL-NEXT: Sections:
200 ELF-MIPSEL-NEXT: - Name: .text
201 ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
202 ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
203 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
204 ELF-MIPSEL-NEXT: Content: 0000023C00004224E8FFBD271400BFAF1000B0AF218059000000018E00002…
205 ELF-MIPSEL-NEXT: - Name: .rel.text
206 ELF-MIPSEL-NEXT: Type: SHT_REL
207 ELF-MIPSEL-NEXT: Link: .symtab
208 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
209 ELF-MIPSEL-NEXT: Info: .text
210 ELF-MIPSEL-NEXT: Relocations:
211 ELF-MIPSEL-NEXT: - Offset: 0x0000000000000000
212 ELF-MIPSEL-NEXT: Symbol: _gp_disp
213 ELF-MIPSEL-NEXT: Type: R_MIPS_HI16
214 ELF-MIPSEL-NEXT: - Offset: 0x0000000000000004
215 ELF-MIPSEL-NEXT: Symbol: _gp_disp
216 ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
217 ELF-MIPSEL-NEXT: - Offset: 0x0000000000000018
218 ELF-MIPSEL-NEXT: Symbol: '$.str'
219 ELF-MIPSEL-NEXT: Type: R_MIPS_GOT16
220 ELF-MIPSEL-NEXT: - Offset: 0x000000000000001C
221 ELF-MIPSEL-NEXT: Symbol: '$.str'
222 ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
223 ELF-MIPSEL-NEXT: - Offset: 0x0000000000000020
224 ELF-MIPSEL-NEXT: Symbol: puts
225 ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
226 ELF-MIPSEL-NEXT: - Offset: 0x000000000000002C
227 ELF-MIPSEL-NEXT: Symbol: SomeOtherFunction
228 ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
229 ELF-MIPSEL-NEXT: - Name: .data
230 ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
231 ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
232 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
233 ELF-MIPSEL-NEXT: Content: ''
234 ELF-MIPSEL-NEXT: - Name: .bss
235 ELF-MIPSEL-NEXT: Type: SHT_NOBITS
236 ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
237 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
238 ELF-MIPSEL-NEXT: Size: 0x0000000000000004
239 ELF-MIPSEL-NEXT: - Name: .mdebug.abi32
240 ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
241 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
242 ELF-MIPSEL-NEXT: Content: ''
243 ELF-MIPSEL-NEXT: - Name: .rodata.str1.1
244 ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
245 ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
246 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
247 ELF-MIPSEL-NEXT: Content: 48656C6C6F20576F726C640A00
248 ELF-MIPSEL-NEXT: - Name: .reginfo
249 ELF-MIPSEL-NEXT: Type: SHT_MIPS_REGINFO
250 ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC ]
251 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
252 ELF-MIPSEL-NEXT: Content: '000000000000000000000000000000000000000000000000'
253 ELF-MIPSEL-NEXT: - Name: .MIPS.abiflags
254 ELF-MIPSEL-NEXT: Type: SHT_MIPS_ABIFLAGS
255 ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC ]
256 ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000008
257 ELF-MIPSEL-NEXT: ISA: MIPS32
258 ELF-MIPSEL-NEXT: ISARevision: 0x01
259 ELF-MIPSEL-NEXT: FpABI: FP_DOUBLE
260 ELF-MIPSEL-NEXT: GPRSize: REG_32
261 ELF-MIPSEL-NEXT: CPR1Size: REG_32
262 ELF-MIPSEL-NEXT: Flags1: [ ODDSPREG ]
263 ELF-MIPSEL-NEXT: Symbols:
264 ELF-MIPSEL-NEXT: Local:
265 ELF-MIPSEL-NEXT: - Name: trivial.ll
266 ELF-MIPSEL-NEXT: Type: STT_FILE
267 ELF-MIPSEL-NEXT: - Name: '$.str'
268 ELF-MIPSEL-NEXT: Type: STT_OBJECT
269 ELF-MIPSEL-NEXT: Section: .rodata.str1.1
270 ELF-MIPSEL-NEXT: Size: 0x000000000000000D
271 ELF-MIPSEL-NEXT: - Type: STT_SECTION
272 ELF-MIPSEL-NEXT: Section: .text
273 ELF-MIPSEL-NEXT: - Type: STT_SECTION
274 ELF-MIPSEL-NEXT: Section: .data
275 ELF-MIPSEL-NEXT: - Type: STT_SECTION
276 ELF-MIPSEL-NEXT: Section: .bss
277 ELF-MIPSEL-NEXT: - Type: STT_SECTION
278 ELF-MIPSEL-NEXT: Section: .mdebug.abi32
279 ELF-MIPSEL-NEXT: - Type: STT_SECTION
280 ELF-MIPSEL-NEXT: Section: .rodata.str1.1
281 ELF-MIPSEL-NEXT: - Type: STT_SECTION
282 ELF-MIPSEL-NEXT: Section: .reginfo
283 ELF-MIPSEL-NEXT: - Type: STT_SECTION
284 ELF-MIPSEL-NEXT: Section: .MIPS.abiflags
285 ELF-MIPSEL-NEXT: Global:
286 ELF-MIPSEL-NEXT: - Name: main
287 ELF-MIPSEL-NEXT: Type: STT_FUNC
288 ELF-MIPSEL-NEXT: Section: .text
289 ELF-MIPSEL-NEXT: Size: 0x000000000000004C
290 ELF-MIPSEL-NEXT: - Name: var
291 ELF-MIPSEL-NEXT: Type: STT_OBJECT
292 ELF-MIPSEL-NEXT: Section: .bss
293 ELF-MIPSEL-NEXT: Size: 0x0000000000000004
294 ELF-MIPSEL-NEXT: - Name: SomeOtherFunction
295 ELF-MIPSEL-NEXT: - Name: _gp_disp
296 ELF-MIPSEL-NEXT: - Name: puts
298 ELF-MIPS64EL: FileHeader:
299 ELF-MIPS64EL-NEXT: Class: ELFCLASS64
300 ELF-MIPS64EL-NEXT: Data: ELFDATA2LSB
301 ELF-MIPS64EL-NEXT: Type: ET_REL
302 ELF-MIPS64EL-NEXT: Machine: EM_MIPS
303 ELF-MIPS64EL-NEXT: Flags: [ EF_MIPS_ARCH_3 ]
304 ELF-MIPS64EL-NEXT: Sections:
305 ELF-MIPS64EL-NEXT: - Name: .text
306 ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
307 ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
308 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
309 ELF-MIPS64EL-NEXT: Content: ''
310 ELF-MIPS64EL-NEXT: - Name: .data
311 ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
312 ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
313 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
314 ELF-MIPS64EL-NEXT: Content: '00000000000000000000000000000000'
315 ELF-MIPS64EL-NEXT: - Name: .rela.data
316 ELF-MIPS64EL-NEXT: Type: SHT_RELA
317 ELF-MIPS64EL-NEXT: Link: .symtab
318 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008
319 ELF-MIPS64EL-NEXT: Info: .data
320 ELF-MIPS64EL-NEXT: Relocations:
321 ELF-MIPS64EL-NEXT: - Offset: 0
322 ELF-MIPS64EL-NEXT: Symbol: zed
323 ELF-MIPS64EL-NEXT: Type: R_MIPS_64
324 ELF-MIPS64EL-NEXT: - Name: .bss
325 ELF-MIPS64EL-NEXT: Type: SHT_NOBITS
326 ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
327 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
328 ELF-MIPS64EL-NEXT: - Name: .MIPS.options
329 ELF-MIPS64EL-NEXT: Type: SHT_MIPS_OPTIONS
330 ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC, SHF_MIPS_NOSTRIP ]
331 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008
332 ELF-MIPS64EL-NEXT: Content: '0128000000000000000000000000000000000000000000000000000000…
333 ELF-MIPS64EL-NEXT: - Name: .pdr
334 ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
335 ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000004
336 ELF-MIPS64EL-NEXT: Content: ''
337 ELF-MIPS64EL-NEXT: Symbols:
338 ELF-MIPS64EL-NEXT: Local:
339 ELF-MIPS64EL-NEXT: - Type: STT_SECTION
340 ELF-MIPS64EL-NEXT: Section: .text
341 ELF-MIPS64EL-NEXT: - Type: STT_SECTION
342 ELF-MIPS64EL-NEXT: Section: .data
343 ELF-MIPS64EL-NEXT: - Type: STT_SECTION
344 ELF-MIPS64EL-NEXT: Section: .bss
345 ELF-MIPS64EL-NEXT: - Name: bar
346 ELF-MIPS64EL-NEXT: Section: .data
347 ELF-MIPS64EL-NEXT: - Type: STT_SECTION
348 ELF-MIPS64EL-NEXT: Section: .MIPS.options
349 ELF-MIPS64EL-NEXT: - Type: STT_SECTION
350 ELF-MIPS64EL-NEXT: Section: .pdr
351 ELF-MIPS64EL-NEXT: Global:
352 ELF-MIPS64EL-NEXT: - Name: zed
354 ELF-X86-64: FileHeader:
355 ELF-X86-64-NEXT: Class: ELFCLASS64
356 ELF-X86-64-NEXT: Data: ELFDATA2LSB
357 ELF-X86-64-NEXT: OSABI: ELFOSABI_GNU
358 ELF-X86-64-NEXT: Type: ET_REL
359 ELF-X86-64-NEXT: Machine: EM_X86_64
360 ELF-X86-64-NEXT: Sections:
361 ELF-X86-64-NEXT: - Name: .text
362 ELF-X86-64-NEXT: Type: SHT_PROGBITS
363 ELF-X86-64-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
364 ELF-X86-64-NEXT: AddressAlign: 0x0000000000000010
365 ELF-X86-64-NEXT: Content: 4883EC08C744240400000000BF00000000E80000000030C0E8000000008B4…
366 ELF-X86-64-NEXT: - Name: .rodata.str1.1
367 ELF-X86-64-NEXT: Type: SHT_PROGBITS
368 ELF-X86-64-NEXT: Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
369 ELF-X86-64-NEXT: Address: 0x0000000000000026
370 ELF-X86-64-NEXT: AddressAlign: 0x0000000000000001
371 ELF-X86-64-NEXT: Content: 48656C6C6F20576F726C642100
372 ELF-X86-64-NEXT: - Name: .note.GNU-stack
373 ELF-X86-64-NEXT: Type: SHT_PROGBITS
374 ELF-X86-64-NEXT: Address: 0x0000000000000033
375 ELF-X86-64-NEXT: AddressAlign: 0x0000000000000001
376 ELF-X86-64-NEXT: Content: ''
377 ELF-X86-64-NEXT: - Name: .rela.text
378 ELF-X86-64-NEXT: Type: SHT_RELA
379 ELF-X86-64-NEXT: Address: 0x0000000000000038
380 ELF-X86-64-NEXT: Link: .symtab
381 ELF-X86-64-NEXT: AddressAlign: 0x0000000000000008
382 ELF-X86-64-NEXT: Info: .text
383 ELF-X86-64-NEXT: Relocations:
384 ELF-X86-64-NEXT: - Offset: 0x000000000000000D
385 ELF-X86-64-NEXT: Symbol: ''
386 ELF-X86-64-NEXT: Type: R_X86_64_32S
387 ELF-X86-64-NEXT: - Offset: 0x0000000000000012
388 ELF-X86-64-NEXT: Symbol: puts
389 ELF-X86-64-NEXT: Type: R_X86_64_PC32
390 ELF-X86-64-NEXT: Addend: -4
391 ELF-X86-64-NEXT: - Offset: 0x0000000000000019
392 ELF-X86-64-NEXT: Symbol: SomeOtherFunction
393 ELF-X86-64-NEXT: Type: R_X86_64_PC32
394 ELF-X86-64-NEXT: Addend: -4
395 ELF-X86-64-NEXT: Symbols:
396 ELF-X86-64-NEXT: Local:
397 ELF-X86-64-NEXT: - Name: trivial-object-test.s
398 ELF-X86-64-NEXT: Type: STT_FILE
399 ELF-X86-64-NEXT: - Type: STT_SECTION
400 ELF-X86-64-NEXT: Section: .text
401 ELF-X86-64-NEXT: - Type: STT_SECTION
402 ELF-X86-64-NEXT: Section: .rodata.str1.1
403 ELF-X86-64-NEXT: - Type: STT_SECTION
404 ELF-X86-64-NEXT: Section: .note.GNU-stack
405 ELF-X86-64-NEXT: Global:
406 ELF-X86-64-NEXT: - Name: main
407 ELF-X86-64-NEXT: Type: STT_FUNC
408 ELF-X86-64-NEXT: Section: .text
409 ELF-X86-64-NEXT: Size: 0x0000000000000026
410 ELF-X86-64-NEXT: - Name: SomeOtherFunction
411 ELF-X86-64-NEXT: - Name: puts
414 ELF-AVR: FileHeader:
415 ELF-AVR-NEXT: Class: ELFCLASS32
416 ELF-AVR-NEXT: Data: ELFDATA2LSB
417 ELF-AVR-NEXT: Type: ET_EXEC
418 ELF-AVR-NEXT: Machine: EM_AVR
419 ELF-AVR-NEXT: Flags: [ EF_AVR_ARCH_AVR2 ]
420 ELF-AVR-NEXT: Sections:
421 ELF-AVR-NEXT: - Name: .text
422 ELF-AVR-NEXT: Type: SHT_PROGBITS
423 ELF-AVR-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
424 ELF-AVR-NEXT: AddressAlign: 0x0000000000000002
425 ELF-AVR-NEXT: Content: C20E0895
426 ELF-AVR-NEXT: - Name: .data
427 ELF-AVR-NEXT: Type: SHT_PROGBITS
428 ELF-AVR-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
429 ELF-AVR-NEXT: Address: 0x0000000000800060
430 ELF-AVR-NEXT: AddressAlign: 0x0000000000000001
431 ELF-AVR-NEXT: Content: ''
432 ELF-AVR-NEXT: Symbols:
433 ELF-AVR-NEXT: Local:
434 ELF-AVR-NEXT: - Type: STT_SECTION
435 ELF-AVR-NEXT: Section: .text
436 ELF-AVR-NEXT: - Type: STT_SECTION
437 ELF-AVR-NEXT: Section: .data
438 ELF-AVR-NEXT: Value: 0x0000000000800060
439 ELF-AVR-NEXT: - Name: a.o
440 ELF-AVR-NEXT: Type: STT_FILE
441 ELF-AVR-NEXT: - Name: main
442 ELF-AVR-NEXT: Section: .text
443 ELF-AVR-NEXT: Global:
444 ELF-AVR-NEXT: - Name: __trampolines_start
445 ELF-AVR-NEXT: Section: .text
446 ELF-AVR-NEXT: - Name: _etext
447 ELF-AVR-NEXT: Section: .text
448 ELF-AVR-NEXT: Value: 0x0000000000000004
449 ELF-AVR-NEXT: - Name: __data_load_end
450 ELF-AVR-NEXT: Value: 0x0000000000000004
451 ELF-AVR-NEXT: - Name: __trampolines_end
452 ELF-AVR-NEXT: Section: .text
453 ELF-AVR-NEXT: - Name: __data_load_start
454 ELF-AVR-NEXT: Value: 0x0000000000000004
455 ELF-AVR-NEXT: - Name: __dtors_end
456 ELF-AVR-NEXT: Section: .text
457 ELF-AVR-NEXT: - Name: __eeprom_end
458 ELF-AVR-NEXT: Section: .data
459 ELF-AVR-NEXT: Value: 0x0000000000810000
460 ELF-AVR-NEXT: - Name: __ctors_start
461 ELF-AVR-NEXT: Section: .text
462 ELF-AVR-NEXT: - Name: __dtors_start
463 ELF-AVR-NEXT: Section: .text
464 ELF-AVR-NEXT: - Name: __ctors_end
465 ELF-AVR-NEXT: Section: .text
466 ELF-AVR-NEXT: - Name: _edata
467 ELF-AVR-NEXT: Section: .data
468 ELF-AVR-NEXT: Value: 0x0000000000800060
469 ELF-AVR-NEXT: - Name: _end
470 ELF-AVR-NEXT: Section: .data
471 ELF-AVR-NEXT: Value: 0x0000000000800060
474 ELF-X86-64-UNWIND: - Name: .eh_frame
475 ELF-X86-64-UNWIND-NEXT: Type: SHT_X86_64_UNWIND
476 ELF-X86-64-UNWIND-NEXT: Flags: [ SHF_ALLOC ]
477 ELF-X86-64-UNWIND-NEXT: AddressAlign: 0x0000000000000001
478 ELF-X86-64-UNWIND-NEXT: Content: ''