diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-08-29 20:13:55 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-09-07 18:53:12 +0200 |
| commit | 9a92f3d290694bfefbc7d71b5ba1823edb6c547f (patch) | |
| tree | a2b6759748a3c0d561d0bccdcbe43f14e7d20c4b /src/link/Wasm.zig | |
| parent | 924679abc46deeaae9284ab6ce928aaddb0fae95 (diff) | |
| download | zig-9a92f3d290694bfefbc7d71b5ba1823edb6c547f.tar.gz zig-9a92f3d290694bfefbc7d71b5ba1823edb6c547f.zip | |
wasm/Object: parse debug sections into reloc data
Rather than storing the name of a debug section into the structure
`RelocatableData`, we use the `index` field as an offset into the
debug names table. This means we do not have to store an extra 16 bytes
for non-debug sections which can be massive for object files where each
data symbol has its own data section. The name of a debug section
can then be retrieved again when needed by using the offset and
then reading until the 0-delimiter.
Diffstat (limited to 'src/link/Wasm.zig')
| -rw-r--r-- | src/link/Wasm.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig index 050d9287a5..a62a11a389 100644 --- a/src/link/Wasm.zig +++ b/src/link/Wasm.zig @@ -1782,7 +1782,7 @@ pub fn getMatchingSegment(self: *Wasm, object_index: u16, relocatable_index: u32 }); break :blk index; }, - .custom => return error.@"TODO: Custom section relocations for wasm", + .debug => return error.@"TODO: Custom section relocations for wasm", } } |
