mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
wasm linker: zcu data fixups are already applied
This commit is contained in:
parent
13eef2f8ab
commit
7bf53d236d
@ -734,14 +734,15 @@ pub fn finish(f: *Flush, wasm: *Wasm) !void {
|
||||
if (true) @panic("TODO lower zig error name table");
|
||||
break :append;
|
||||
},
|
||||
.object => |i| i.ptr(wasm).payload,
|
||||
.object => |i| c: {
|
||||
if (true) @panic("TODO apply data segment relocations");
|
||||
break :c i.ptr(wasm).payload;
|
||||
},
|
||||
inline .uav_exe, .uav_obj, .nav_exe, .nav_obj => |i| i.value(wasm).code,
|
||||
};
|
||||
try binary_bytes.appendSlice(gpa, code.slice(wasm));
|
||||
}
|
||||
offset += @intCast(binary_bytes.items.len - code_start);
|
||||
|
||||
if (true) @panic("TODO apply data segment relocations");
|
||||
}
|
||||
assert(group_index == f.data_segment_groups.items.len);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user