diff --git a/crates/gc/src/lib.rs b/crates/gc/src/lib.rs index ec4a459cc5a..851380e42a4 100644 --- a/crates/gc/src/lib.rs +++ b/crates/gc/src/lib.rs @@ -99,6 +99,10 @@ fn run(config: &mut Config, module: &mut Module) { info!("skipping reloc section"); continue; } + Section::DataCount(..) => { + info!("skipping data count section"); + continue; + } Section::Type(ref mut s) => cx.remap_type_section(s), Section::Import(ref mut s) => cx.remap_import_section(s), Section::Function(ref mut s) => cx.remap_function_section(s), diff --git a/crates/gc/tests/wat/remove-passive-memory-segment.wat b/crates/gc/tests/wat/remove-passive-memory-segment.wat deleted file mode 100644 index 5c8d92d5e94..00000000000 --- a/crates/gc/tests/wat/remove-passive-memory-segment.wat +++ /dev/null @@ -1,18 +0,0 @@ -(module - (memory 0 10) - - (func $foo - i32.const 0 - i32.const 0 - i32.const 0 - memory.init 0 - ) - - (data passive "wut") - - ) - -;; STDOUT (update this section with `BLESS_TESTS=1` while running tests) -;; (module -;; (memory (;0;) 0 10)) -;; STDOUT diff --git a/crates/gc/tests/wat/renumber-data-segment.wat b/crates/gc/tests/wat/renumber-data-segment.wat deleted file mode 100644 index 199086eaba1..00000000000 --- a/crates/gc/tests/wat/renumber-data-segment.wat +++ /dev/null @@ -1,29 +0,0 @@ -(module - (memory 0 10) - - (func $foo - i32.const 0 - i32.const 0 - i32.const 0 - memory.init 1 - ) - - (data passive "wut") - (data passive "wut2") - (data passive "wut3") - - (start $foo) - ) - -;; STDOUT (update this section with `BLESS_TESTS=1` while running tests) -;; (module -;; (type (;0;) (func)) -;; (func $foo (type 0) -;; i32.const 0 -;; i32.const 0 -;; i32.const 0 -;; memory.init 0) -;; (memory (;0;) 0 10) -;; (start 0) -;; (data (;0;) passive "wut2")) -;; STDOUT diff --git a/crates/gc/tests/wat/renumber-passive-segment.wat b/crates/gc/tests/wat/renumber-passive-segment.wat deleted file mode 100644 index f459ae39c1f..00000000000 --- a/crates/gc/tests/wat/renumber-passive-segment.wat +++ /dev/null @@ -1,32 +0,0 @@ -(module - (import "" "" (table 0 1 anyfunc)) - - (func $foo - i32.const 0 - i32.const 0 - i32.const 0 - table.init 1 - ) - - (func $bar) - (func $bar2) - - (elem passive $bar) - (elem passive $bar2) - - (start $foo) - ) - -;; STDOUT (update this section with `BLESS_TESTS=1` while running tests) -;; (module -;; (type (;0;) (func)) -;; (import "" "" (table (;0;) 0 1 anyfunc)) -;; (func $foo (type 0) -;; i32.const 0 -;; i32.const 0 -;; i32.const 0 -;; table.init 0) -;; (func $bar2 (type 0)) -;; (start 0) -;; (elem (;0;) passive $bar2)) -;; STDOUT