[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-objcopy / COFF / strip-all.test
blob5e3ed9c409180f7c63e8cfd150dcded3e72021e0
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
24 # SYMBOLS-EMPTY:
26 # RELOCS:      Relocations [
27 # RELOCS-NEXT: ]
29 --- !COFF
30 header:          
31   Machine:         IMAGE_FILE_MACHINE_AMD64
32   Characteristics: [  ]
33 sections:        
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
42 symbols:         
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 ...