1 # RUN: yaml2obj %s > %t
4 # RUN: llvm-strip --remove-section=.text.bar %t
5 # RUN: llvm-readobj --file-headers --sections --symbols %t | FileCheck %s
7 # RUN: llvm-objcopy --strip-all --remove-section=.text.bar %t1 %t1
22 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
23 AddressAlign: 0x0000000000000010
27 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
28 AddressAlign: 0x0000000000000010
41 # CHECK: SectionHeaderCount: 3
44 # CHECK: Name: .shstrtab
45 # CHECK-NOT: Name: .text.bar
46 # CHECK-NOT: Name: .debug_foo
47 # CHECK-NOT: Name: .symtab
49 # Check that *only* foo is copied and no debugfoo or textbar