43 lines · plain
1# RUN: yaml2obj %s -o %t.elf-x86-642# RUN: llvm-objdump -h %t.elf-x86-64 | FileCheck %s3 4# To verify this, use readelf -S, not objdump -h. Binutils objdump filters the5# results in a way that we don't emulate.6 7# CHECK: Sections:8# CHECK: Idx Name Size VMA Type9# CHECK: 0 00000000 000000000000000010# CHECK: 1 .text 00000026 0000000000000000 TEXT11# CHECK: 2 .rodata.str1.1 0000000d 0000000000000026 DATA12# CHECK: 3 .note.GNU-stack 00000000 000000000000003313# CHECK: 4 .rela.text 00000000 000000000000003814# CHECK: 5 .symtab 00000018 000000000000000015# CHECK: 6 .strtab 00000001 000000000000000016# CHECK: 7 .shstrtab 00000045 000000000000000017 18--- !ELF19FileHeader:20 Class: ELFCLASS6421 Data: ELFDATA2LSB22 Type: ET_REL23 Machine: EM_X86_6424Sections:25 - Name: .text26 Type: SHT_PROGBITS27 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]28 Size: 0x2629 - Name: .rodata.str1.130 Type: SHT_PROGBITS31 Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]32 Address: 0x000000000000002633 Size: 0xd34 - Name: .note.GNU-stack35 Type: SHT_PROGBITS36 Address: 0x000000000000003337 - Name: .rela.text38 Type: SHT_RELA39 Address: 0x000000000000003840 Info: .text41 Relocations:42Symbols: []43