1# RUN: yaml2obj %s -o %t.in.o 2 3# RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE 4 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 8 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 13 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 17 18# RUN: llvm-objcopy --strip-all-gnu %t.in.o %t.out-gnu.o 19# RUN: cmp %t.out.o %t.out-gnu.o 20 21# SYMBOLS: SYMBOL TABLE: 22# SYMBOLS-PRE-NEXT: external 23# SYMBOLS-PRE-NEXT: external_undefined 24# SYMBOLS-EMPTY: 25 26# RELOCS: Relocations [ 27# RELOCS-NEXT: ] 28 29--- !COFF 30header: 31 Machine: IMAGE_FILE_MACHINE_AMD64 32 Characteristics: [ ] 33sections: 34 - Name: .text 35 Characteristics: [ ] 36 Alignment: 4 37 SectionData: 488B0500000000C3 38 Relocations: 39 - VirtualAddress: 3 40 SymbolName: external_undefined 41 Type: IMAGE_REL_AMD64_REL32 42symbols: 43 - Name: external 44 Value: 0 45 SectionNumber: 1 46 SimpleType: IMAGE_SYM_TYPE_NULL 47 ComplexType: IMAGE_SYM_DTYPE_NULL 48 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 49 - Name: external_undefined 50 Value: 0 51 SectionNumber: 0 52 SimpleType: IMAGE_SYM_TYPE_NULL 53 ComplexType: IMAGE_SYM_DTYPE_NULL 54 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 55... 56