1 # RUN: yaml2obj %s > %t
3 # RUN: llvm-objcopy --strip-all %t %t2
4 # RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
6 # Verify that the previous llvm-objcopy's run has not modified the input.
13 # RUN: llvm-strip %t4 -o %t5
16 # Verify that the previous llvm-strip's run has not modified the input.
19 # RUN: cp %t %t-should-remain-the-same
20 # RUN: llvm-strip %t4 -o %t-should-remain-the-same -o %t-should-be-stripped
21 # RUN: cmp %t2 %t-should-be-stripped
22 # RUN: cmp %t %t-should-remain-the-same
25 # RUN: llvm-ar crs %t.a %t
26 # RUN: llvm-objcopy --strip-all %t.a %t.a
27 # RUN: llvm-ar p %t.a > %t6
31 # RUN: llvm-strip --strip-all %t7
35 # RUN: llvm-objcopy -S %t8 %t8
39 # RUN: llvm-strip -s %t9
42 # Verify that a non-existent symbol table (after first call to llvm-strip)
43 # can be handled correctly.
45 # RUN: llvm-strip --strip-all --keep-symbol=unavailable_symbol %t10
46 # RUN: llvm-strip --strip-all --keep-symbol=unavailable_symbol %t10
56 - Name: non_alloc_in_segment
65 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
69 - Name: .gnu.warning.foo
72 # Use an arbitrary segment type to show that the segment type is unimportant.
75 - Section: non_alloc_in_segment
77 # CHECK: SectionHeaderCount: 6
79 # CHECK: Name: non_alloc_in_segment
82 # CHECK: Name: .gnu.warning.foo
83 # CHECK: Name: .shstrtab