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
21 lines
493 B
YAML
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 ]
|
|
...
|