42 lines · plain
1## Test that objcopy generates section headers that are identical to those from2## the input binary, including the encoded size of the LEB that represents the3## section size.4 5# RUN: yaml2obj %s -o %t.wasm6# RUN: llvm-objcopy %t.wasm %t.wasm.copy7# RUN: diff %t.wasm %t.wasm.copy8 9--- !WASM10FileHeader:11 Version: 0x112Sections:13 - Type: TYPE14 HeaderSecSizeEncodingLen: 315 Signatures:16 - Index: 017 ParamTypes:18 - I3219 - I3220 ReturnTypes:21 - I3222 - Type: FUNCTION23 HeaderSecSizeEncodingLen: 424 FunctionTypes: [ 0 ]25 - Type: MEMORY26 HeaderSecSizeEncodingLen: 127 Memories:28 - Flags: [ HAS_MAX ]29 Minimum: 0x10030 Maximum: 0x10031 - Type: EXPORT32 HeaderSecSizeEncodingLen: 533 Exports:34 - Name: add35 Kind: FUNCTION36 Index: 037 - Type: CODE38 Functions:39 - Index: 040 Locals: []41 Body: 200020016A0B42