1 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-strip --strip-debug --remove-section=.text.bar %t
5 # RUN: llvm-readobj --file-headers --sections --symbols %t | FileCheck %s
7 # RUN: llvm-objcopy --strip-debug --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: 5
44 # CHECK: Name: .symtab
45 # CHECK: Name: .strtab
46 # CHECK: Name: .shstrtab
47 # CHECK-NOT: Name: .text.bar
48 # CHECK-NOT: Name: .debug_foo
50 # Check that *only* foo is copied and no debugfoo or textbar
52 # CHECK-NEXT: Symbol {
56 # CHECK-NEXT: Binding:
59 # CHECK-NEXT: Section: Undefined
61 # CHECK-NEXT: Symbol {
62 # CHECK-NEXT: Name: foo
65 # CHECK-NEXT: Binding: Global
68 # CHECK-NEXT: Section: .text