Heya! I was wondering whether DWARF support for Wasm allows separating the debuginfo from the main binary?
I know it's possible with ELF binaries, but I wasn't sure whether we can do it for Wasm too? I assume the answer is: "theoretically yes." - but does e.g. Wasmtime support that too?
not asking we implement this - just trying to understand the current state of things
There's some support for *.dwp
in Wasmtime, although I don't actually know how one produces a binary with a *.dwp
file or if you extract it from it afterwards
oh neat! ty!
that's more than I expected ^^
what I'm wondering is whether it would be possible, or even beneficial to split the debuginfo from the main Wasm binary in the OCI representation on registries
currently looking into that for e.g. SBOM data - and it seemed like package provenance data is kind of similar to debuginfo in its purpose
e.g. allows us to recover information that was present in the source info, but is lost after compilation
anyway, context for why I was wondering about this ^^
I suspect it'd definitely make sense yeah, although the exact specifics would probably require someone with more knowledge of what a *.dwp
is than I, but I could imagine that the wasm could be one layer and the debuginfo another layer and packaging could automatically split the two if it were merged together
@Yoshua Wuyts there are a couple of prs about .dwp file support that may have more information
Last updated: Nov 22 2024 at 16:03 UTC