blob: b1f08fe58795f666821f63038a0037f57b4efab3 [file] [log] [blame]
Jake Ehrlichef3b80c2017-11-30 20:14:53 +00001# RUN: yaml2obj %s > %t
2# RUN: llvm-objcopy -keep=.test2 -only-keep=.test %t %t2
3# RUN: llvm-objcopy -j=.test -keep=.test2 %t %t3
4# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
5# 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 - Name: .test2
17 Type: SHT_PROGBITS
18 - Name: .test3
19 Type: SHT_PROGBITS
20
21# CHECK: SectionHeaderCount: 6
22
23# CHECK: Name: .test
24# CHECK: Name: .test2
25# CHECK: Name: .symtab
26# CHECK: Name: .strtab
27# CHECK: Name: .shstrtab