Files
clang-p2996/llvm/test/ObjectYAML/wasm/invalid_section_order.yaml
Sam Clegg 2a6136e552 [llvm-objcopy][WebAssembly] Allow --strip-debug to operate on relocatable files. (#102978)
This change is enough to allow `--strip-debug` to work on object files,
without breaking the relocation information or symbol table.

A more complete version of this change would instead reconstruct the
symbol table and relocation sections, but that is much larger change.

Bug: #102002
2024-08-19 21:52:17 -07:00

21 lines
493 B
YAML

# RUN: not yaml2obj %s -o /dev/null 2>&1 | FileCheck %s
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
- Type: TYPE
Signatures:
- Index: 0
ParamTypes: []
ReturnTypes: []
- Type: CODE
Functions:
- Index: 0
Locals: []
Body: 0B
# CHECK: yaml2obj: error: out of order section type: FUNCTION
- Type: FUNCTION
FunctionTypes: [ 0 ]
...