[llvm-objcopy] [COFF] Implmement --strip-unneeded and -x/--discard-all for symbols
[llvm-complete.git] / test / tools / llvm-objcopy / COFF / Inputs / discard-locals.yaml
blob6a80935d670f47a61b293c3a8e1ab7d3a907f1cc
1 --- !COFF
2 header:          
3   Machine:         IMAGE_FILE_MACHINE_AMD64
4   Characteristics: [  ]
5 sections:        
6   - Name:            .text
7     Characteristics: [  ]
8     Alignment:       4
9     SectionData:     E800000000C3C3C3
10     Relocations:     
11       - VirtualAddress:  1
12         SymbolName:      local_referenced
13         Type:            IMAGE_REL_AMD64_REL32
14 symbols:         
15   - Name:            external
16     Value:           0
17     SectionNumber:   1
18     SimpleType:      IMAGE_SYM_TYPE_NULL
19     ComplexType:     IMAGE_SYM_DTYPE_NULL
20     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
21   - Name:            external_undefined
22     Value:           0
23     SectionNumber:   0
24     SimpleType:      IMAGE_SYM_TYPE_NULL
25     ComplexType:     IMAGE_SYM_DTYPE_NULL
26     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
27   - Name:            local_unreferenced
28     Value:           6
29     SectionNumber:   1
30     SimpleType:      IMAGE_SYM_TYPE_NULL
31     ComplexType:     IMAGE_SYM_DTYPE_NULL
32     StorageClass:    IMAGE_SYM_CLASS_STATIC
33   - Name:            local_referenced
34     Value:           7
35     SectionNumber:   1
36     SimpleType:      IMAGE_SYM_TYPE_NULL
37     ComplexType:     IMAGE_SYM_DTYPE_NULL
38     StorageClass:    IMAGE_SYM_CLASS_STATIC
39   - Name:            local_undefined_unreferenced
40     Value:           0
41     SectionNumber:   0
42     SimpleType:      IMAGE_SYM_TYPE_NULL
43     ComplexType:     IMAGE_SYM_DTYPE_NULL
44     StorageClass:    IMAGE_SYM_CLASS_STATIC
45 ...