62 lines · yaml
1# RUN: yaml2obj %s -o %t1.o2 3# RUN: wasm-ld --no-entry %t1.o -o - | obj2yaml | FileCheck %s --check-prefix NO-SHARED4 5# RUN: not wasm-ld --no-entry --shared-memory --max-memory=131072 %t1.o -o - 2>&1 | FileCheck %s --check-prefix SHARED6 7--- !WASM8FileHeader:9 Version: 0x0000000110Sections:11 - Type: IMPORT12 Imports:13 - Module: env14 Field: __linear_memory15 Kind: MEMORY16 Memory:17 Minimum: 0x0000000118 - Module: env19 Field: __indirect_function_table20 Kind: TABLE21 Table:22 Index: 023 ElemType: FUNCREF24 Limits:25 Minimum: 0x0000000026 - Type: DATA27 Segments:28 - SectionOffset: 629 InitFlags: 030 Offset:31 Opcode: I32_CONST32 Value: 033 Content: 68656C6C6F0A0034 - Type: CUSTOM35 Name: linking36 Version: 237 SymbolTable:38 - Index: 039 Kind: DATA40 Name: hello_str41 Flags: [ ]42 Segment: 043 Size: 744 SegmentInfo:45 - Index: 046 Name: .rodata.hello_str47 Alignment: 048 Flags: [ ]49 - Type: CUSTOM50 Name: target_features51 Features:52 - Prefix: DISALLOWED53 Name: "shared-mem"54...55 56# NO-SHARED: - Type: MEMORY57# NO-SHARED-NEXT: Memories:58# NO-SHARED-NEXT: - Minimum: 0x159# NO-SHARED-NOT: Maximum:60 61# SHARED: --shared-memory is disallowed by {{.*}}shared-memory-no-atomics.yaml.tmp1.o because it was not compiled with 'atomics' or 'bulk-memory' features.62