1 # RUN: yaml2obj %s > %t.o
3 # Run llvm-strip normally. This will create a stripped object file for later
4 # tests so we only have to run FileCheck on it once.
6 # RUN: llvm-strip --keep-symbol=foo %t.1.o -o %t.stripped.o
7 # RUN: llvm-readobj --symbols %t.stripped.o | FileCheck %s
9 # llvm-strip on two files:
12 # RUN: llvm-strip --keep-symbol=foo %t.1.o %t.2.o
13 # RUN: cmp %t.1.o %t.stripped.o
14 # RUN: cmp %t.2.o %t.stripped.o
16 # llvm-strip on three files:
20 # RUN: llvm-strip --keep-symbol=foo %t.1.o %t.2.o %t.3.o
21 # RUN: cmp %t.1.o %t.stripped.o
22 # RUN: cmp %t.2.o %t.stripped.o
23 # RUN: cmp %t.3.o %t.stripped.o
25 # -o cannot be used with multiple input files
28 # RUN: not llvm-strip --keep-symbol=foo -o %t.stripped.o %t.1.o %t.2.o 2>&1 \
29 # RUN: | FileCheck %s --check-prefix=BAD-O-FLAG
40 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
54 # CHECK-NEXT: Symbol {
56 # CHECK-NEXT: Value: 0x0
58 # CHECK-NEXT: Binding: Local
59 # CHECK-NEXT: Type: None
60 # CHECK-NEXT: Other: 0
61 # CHECK-NEXT: Section: Undefined
63 # CHECK-NEXT: Symbol {
64 # CHECK-NEXT: Name: foo
65 # CHECK-NEXT: Value: 0x1234
67 # CHECK-NEXT: Binding: Local
68 # CHECK-NEXT: Type: Function
69 # CHECK-NEXT: Other: 0
70 # CHECK-NEXT: Section: .text
74 # BAD-O-FLAG: multiple input files cannot be used in combination with -o