diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/binary-reader.c | 2 | ||||
-rw-r--r-- | src/tools/wasm-link.c | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/binary-reader.c b/src/binary-reader.c index ebb3b69f..896bb366 100644 --- a/src/binary-reader.c +++ b/src/binary-reader.c @@ -1712,10 +1712,10 @@ static void read_custom_section(Context* ctx, uint32_t section_size) { CALLBACK_SECTION(begin_reloc_section, section_size); uint32_t i, num_relocs, section; in_u32_leb128(ctx, §ion, "section"); - in_u32_leb128(ctx, &num_relocs, "relocation count count"); WASM_ZERO_MEMORY(section_name); if (section == WASM_BINARY_SECTION_CUSTOM) in_str(ctx, §ion_name, "section name"); + in_u32_leb128(ctx, &num_relocs, "relocation count"); CALLBACK(on_reloc_count, num_relocs, section, section_name); for (i = 0; i < num_relocs; ++i) { uint32_t reloc_type, offset; diff --git a/src/tools/wasm-link.c b/src/tools/wasm-link.c index 1fdc079f..5f8ced18 100644 --- a/src/tools/wasm-link.c +++ b/src/tools/wasm-link.c @@ -278,13 +278,6 @@ static void write_export_section(Context* ctx) { for (i = 0; i < ctx->inputs.size; i++) { WasmLinkerInputBinary* binary = &ctx->inputs.data[i]; total_exports += binary->exports.size; - /* - for (j = 0; j < binary->exports.size; j++) { - WasmExport* export = &binary->exports.data[j]; - if (exports) { - } - } - */ } WasmStream* stream = &ctx->stream; |