blob: f95ea38911675b7f4de694f701ebb055205f0d4e [file] [log] [blame]
Jake Ehrlichef3b80c2017-11-30 20:14:53 +00001# RUN: yaml2obj %s > %t
Jordan Rupprecht298ea3f2019-01-11 18:06:31 +00002# RUN: llvm-objcopy --only-section=.test %t %t2
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +00003# RUN: llvm-objcopy -j .test %t %t3
Jordan Rupprecht298ea3f2019-01-11 18:06:31 +00004# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
Jake Ehrlichef3b80c2017-11-30 20:14:53 +00005# RUN: diff %t2 %t3
6
7!ELF
8FileHeader:
9 Class: ELFCLASS64
10 Data: ELFDATA2LSB
11 Type: ET_REL
12 Machine: EM_X86_64
13Sections:
14 - Name: .test
15 Type: SHT_PROGBITS
16 Flags: [ ]
17
George Rimar27799872019-10-20 14:47:17 +000018# CHECK: SectionHeaderCount: 3
Jake Ehrlichef3b80c2017-11-30 20:14:53 +000019
20# CHECK: Name: .test
Jake Ehrlichef3b80c2017-11-30 20:14:53 +000021# CHECK: Name: .shstrtab