1 # RUN: yaml2obj %s > %t.in.o
3 # RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE
5 # RUN: llvm-objcopy --strip-all %t.in.o %t.out.o
6 # RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefix=SYMBOLS
7 # RUN: llvm-readobj -r %t.out.o | FileCheck %s --check-prefix=RELOCS
9 # Test that -S, llvm-strip without arguments and --strip-all-gnu produces
10 # output identical to --strip-all above.
11 # RUN: llvm-objcopy -S %t.in.o %t.out-short.o
12 # RUN: cmp %t.out.o %t.out-short.o
14 # RUN: cp %t.in.o %t.out-strip.o
15 # RUN: llvm-strip %t.out-strip.o
16 # RUN: cmp %t.out.o %t.out-strip.o
18 # RUN: llvm-objcopy --strip-all-gnu %t.in.o %t.out-gnu.o
19 # RUN: cmp %t.out.o %t.out-gnu.o
21 # SYMBOLS: SYMBOL TABLE:
22 # SYMBOLS-PRE-NEXT: external
23 # SYMBOLS-PRE-NEXT: external_undefined
26 # RELOCS: Relocations [
31 Machine: IMAGE_FILE_MACHINE_AMD64
37 SectionData: 488B0500000000C3
40 SymbolName: external_undefined
41 Type: IMAGE_REL_AMD64_REL32
46 SimpleType: IMAGE_SYM_TYPE_NULL
47 ComplexType: IMAGE_SYM_DTYPE_NULL
48 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
49 - Name: external_undefined
52 SimpleType: IMAGE_SYM_TYPE_NULL
53 ComplexType: IMAGE_SYM_DTYPE_NULL
54 StorageClass: IMAGE_SYM_CLASS_EXTERNAL