1 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-objcopy --strip-all --keep-symbol foo %t %t2
4 # RUN: llvm-readobj --sections --symbols %t2 | FileCheck %s
6 # Verify that the first run of llvm-objcopy
7 # has not modified the input binary.
10 # RUN: llvm-strip --keep-symbol=foo %t1
14 # RUN: llvm-strip --keep-symbol foo %t3
26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
28 AddressAlign: 0x0000000000000010
30 - Name: .gnu.warning.foo
52 # CHECK: Name: .gnu.warning.foo
53 # CHECK: Name: .symtab
54 # CHECK: Name: .strtab
55 # CHECK: Name: .shstrtab
56 # CHECK-NOT: Name: .debug_bar
61 #CHECK-NEXT: Value: 0x0
63 #CHECK-NEXT: Binding: Local
64 #CHECK-NEXT: Type: None
66 #CHECK-NEXT: Section: Undefined
69 #CHECK-NEXT: Name: foo
70 #CHECK-NEXT: Value: 0x1000
72 #CHECK-NEXT: Binding: Local
73 #CHECK-NEXT: Type: Function
75 #CHECK-NEXT: Section: .text