1*55c81d42SFangrui Song# RUN: yaml2obj %s -o %t.elf-x86-64 26afc666eSGeorge Rimar# RUN: llvm-objdump -h %t.elf-x86-64 | FileCheck %s 3fcf84625SNick Lewycky 46afc666eSGeorge Rimar# To verify this, use readelf -S, not objdump -h. Binutils objdump filters the 56afc666eSGeorge Rimar# results in a way that we don't emulate. 6fcf84625SNick Lewycky 76afc666eSGeorge Rimar# CHECK: Sections: 86afc666eSGeorge Rimar# CHECK: Idx Name Size VMA Type 96afc666eSGeorge Rimar# CHECK: 0 00000000 0000000000000000 106afc666eSGeorge Rimar# CHECK: 1 .text 00000026 0000000000000000 TEXT 116afc666eSGeorge Rimar# CHECK: 2 .rodata.str1.1 0000000d 0000000000000026 DATA 126afc666eSGeorge Rimar# CHECK: 3 .note.GNU-stack 00000000 0000000000000033 136afc666eSGeorge Rimar# CHECK: 4 .rela.text 00000000 0000000000000038 146afc666eSGeorge Rimar# CHECK: 5 .symtab 00000018 0000000000000000 156afc666eSGeorge Rimar# CHECK: 6 .strtab 00000001 0000000000000000 166afc666eSGeorge Rimar# CHECK: 7 .shstrtab 00000045 0000000000000000 176afc666eSGeorge Rimar 186afc666eSGeorge Rimar--- !ELF 196afc666eSGeorge RimarFileHeader: 206afc666eSGeorge Rimar Class: ELFCLASS64 216afc666eSGeorge Rimar Data: ELFDATA2LSB 226afc666eSGeorge Rimar Type: ET_REL 236afc666eSGeorge Rimar Machine: EM_X86_64 246afc666eSGeorge RimarSections: 256afc666eSGeorge Rimar - Name: .text 266afc666eSGeorge Rimar Type: SHT_PROGBITS 276afc666eSGeorge Rimar Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 286afc666eSGeorge Rimar Size: 0x26 296afc666eSGeorge Rimar - Name: .rodata.str1.1 306afc666eSGeorge Rimar Type: SHT_PROGBITS 316afc666eSGeorge Rimar Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ] 326afc666eSGeorge Rimar Address: 0x0000000000000026 336afc666eSGeorge Rimar Size: 0xd 346afc666eSGeorge Rimar - Name: .note.GNU-stack 356afc666eSGeorge Rimar Type: SHT_PROGBITS 366afc666eSGeorge Rimar Address: 0x0000000000000033 376afc666eSGeorge Rimar - Name: .rela.text 386afc666eSGeorge Rimar Type: SHT_RELA 396afc666eSGeorge Rimar Address: 0x0000000000000038 406afc666eSGeorge Rimar Info: .text 416afc666eSGeorge Rimar Relocations: 423fe7f1dcSGeorgii RymarSymbols: [] 43