brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · e85aee8 Raw
56 lines · plain
1# RUN: yaml2obj %s -o %t.in.o2 3# RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE4 5# RUN: llvm-objcopy --strip-all %t.in.o %t.out.o6# RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefix=SYMBOLS7# RUN: llvm-readobj -r %t.out.o | FileCheck %s --check-prefix=RELOCS8 9# Test that -S, llvm-strip without arguments and --strip-all-gnu produces10# output identical to --strip-all above.11# RUN: llvm-objcopy -S %t.in.o %t.out-short.o12# RUN: cmp %t.out.o %t.out-short.o13 14# RUN: cp %t.in.o %t.out-strip.o15# RUN: llvm-strip %t.out-strip.o16# RUN: cmp %t.out.o %t.out-strip.o17 18# RUN: llvm-objcopy --strip-all-gnu %t.in.o %t.out-gnu.o19# RUN: cmp %t.out.o %t.out-gnu.o20 21# SYMBOLS: SYMBOL TABLE:22# SYMBOLS-PRE-NEXT: external23# SYMBOLS-PRE-NEXT: external_undefined24# SYMBOLS-EMPTY:25 26# RELOCS:      Relocations [27# RELOCS-NEXT: ]28 29--- !COFF30header:          31  Machine:         IMAGE_FILE_MACHINE_AMD6432  Characteristics: [  ]33sections:        34  - Name:            .text35    Characteristics: [  ]36    Alignment:       437    SectionData:     488B0500000000C338    Relocations:     39      - VirtualAddress:  340        SymbolName:      external_undefined41        Type:            IMAGE_REL_AMD64_REL3242symbols:         43  - Name:            external44    Value:           045    SectionNumber:   146    SimpleType:      IMAGE_SYM_TYPE_NULL47    ComplexType:     IMAGE_SYM_DTYPE_NULL48    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL49  - Name:            external_undefined50    Value:           051    SectionNumber:   052    SimpleType:      IMAGE_SYM_TYPE_NULL53    ComplexType:     IMAGE_SYM_DTYPE_NULL54    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL55...56