1# RUN: yaml2obj %s -o %t.elf-x86-64 2# RUN: llvm-objdump -h %t.elf-x86-64 | FileCheck %s 3 4# To verify this, use readelf -S, not objdump -h. Binutils objdump filters the 5# results in a way that we don't emulate. 6 7# CHECK: Sections: 8# CHECK: Idx Name Size VMA Type 9# CHECK: 0 00000000 0000000000000000 10# CHECK: 1 .text 00000026 0000000000000000 TEXT 11# CHECK: 2 .rodata.str1.1 0000000d 0000000000000026 DATA 12# CHECK: 3 .note.GNU-stack 00000000 0000000000000033 13# CHECK: 4 .rela.text 00000000 0000000000000038 14# CHECK: 5 .symtab 00000018 0000000000000000 15# CHECK: 6 .strtab 00000001 0000000000000000 16# CHECK: 7 .shstrtab 00000045 0000000000000000 17 18--- !ELF 19FileHeader: 20 Class: ELFCLASS64 21 Data: ELFDATA2LSB 22 Type: ET_REL 23 Machine: EM_X86_64 24Sections: 25 - Name: .text 26 Type: SHT_PROGBITS 27 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 28 Size: 0x26 29 - Name: .rodata.str1.1 30 Type: SHT_PROGBITS 31 Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ] 32 Address: 0x0000000000000026 33 Size: 0xd 34 - Name: .note.GNU-stack 35 Type: SHT_PROGBITS 36 Address: 0x0000000000000033 37 - Name: .rela.text 38 Type: SHT_RELA 39 Address: 0x0000000000000038 40 Info: .text 41 Relocations: 42Symbols: [] 43