Is there any support for comdat in Cranelift?
No. If you want to add support, you will need to implement it in object first.
so https://github.com/gimli-rs/object/pull/243 supports COMDAT now.
so to get back to this
should I create an issue for this first, wait for the oke, then a PR?
https://github.com/bytecodealliance/wasmtime/issues/2048
@Carlo Kok I think that mainly depends on if it's an easy fix or not, and whether you anticipate any disagreement on the approach
ah, I misread, and now see that you did open the issue. I don't know how much work the implementation is here, but if it's not too much, I'd suggest starting on that now, given that what you describe as the approach does seem reasonable (to me, lacking domain expertise!)
anyone able to help me with the design for comdat within cranelift? Comdat itself is essentially 1 symbol, with a mode (comdat mode), tied to other symbols. Where a symbol can be either a global var or a global function.
I'm having a bit of trouble with the right design for this
Anyone feel like commenting on this https://github.com/bytecodealliance/wasmtime/issues/2048#issuecomment-669041583 ? I'm having a bit of trouble with the design for this feature.
Last updated: Dec 23 2024 at 12:05 UTC