brintos

brintos / llvm-project-archived public Read only

0
0
Text · 988 B · ef7c1a9 Raw
41 lines · plain
1## Test that --strip-all removes debug, linking, and producers sections, but not2## known or unknown-custom sections.3# RUN: yaml2obj %s -o %t4# RUN: llvm-objcopy --strip-all %t %t25# RUN: obj2yaml %t2 | FileCheck --implicit-check-not=Type: %s6 7# CHECK:      Sections:8# CHECK-NEXT:   - Type: TYPE9# CHECK:        - Type: CUSTOM10# CHECK-NEXT:        Name: .objcopy.removed11# CHECK:        - Type: CUSTOM12# CHECK-NEXT:        Name: .objcopy.removed13# CHECK:        - Type: CUSTOM14# CHECK-NEXT:        Name: .objcopy.removed15# CHECK:        - Type: CUSTOM16# CHECK-NEXT:        Name: foo17 18--- !WASM19FileHeader:20  Version: 0x0000000121Sections:22  - Type: TYPE23    Signatures:24      - Index: 025        ParamTypes: []26        ReturnTypes: []27  - Type: CUSTOM28    Name: linking29    Version: 230  - Type: CUSTOM31    Name: producers32    Tools:33      - Name:   clang34        Version: 9.0.035  - Type: CUSTOM36    Name: .debug_info37    Payload: DEADBEEF38  - Type: CUSTOM39    Name: foo40    Payload: CAFE41