22 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy --strip-non-alloc --keep-section=.test %t %t23# RUN: llvm-strip --strip-all --keep-section=.test %t -o %t34# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s5# RUN: cmp %t2 %t36 7!ELF8FileHeader:9 Class: ELFCLASS6410 Data: ELFDATA2LSB11 Type: ET_REL12 Machine: EM_X86_6413Sections:14 - Name: .test15 Type: SHT_PROGBITS16 Flags: [ ]17 18# CHECK: SectionHeaderCount: 319 20# CHECK: Name: .test21# CHECK: Name: .shstrtab22