1 # RUN: yaml2obj %s > %t.elf-x86-64
2 # RUN: llvm-objdump -h %t.elf-x86-64 | FileCheck %s
4 # To verify this, use readelf -S, not objdump -h. Binutils objdump filters the
5 # results in a way that we don't emulate.
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
27 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
29 - Name: .rodata.str1.1
31 Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
32 Address: 0x0000000000000026
34 - Name: .note.GNU-stack
36 Address: 0x0000000000000033
39 Address: 0x0000000000000038