aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-08-29 20:13:55 +0200
committerLuuk de Gram <luuk@degram.dev>2022-09-07 18:53:12 +0200
commit9a92f3d290694bfefbc7d71b5ba1823edb6c547f (patch)
treea2b6759748a3c0d561d0bccdcbe43f14e7d20c4b /src/Compilation.zig
parent924679abc46deeaae9284ab6ce928aaddb0fae95 (diff)
downloadzig-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/Compilation.zig')
0 files changed, 0 insertions, 0 deletions