yurydelendik created PR Review Comment:
@yurydelendik would cranelift-module be a useful place to share this logic translating FrameLocationChange to CFI instructions for your use in wasmtime?
@iximeow yes, and in fact, I would like to have entire cratelift-module change for other reasons.
yurydelendik submitted PR Review.
iximeow updated PR #902 from framechange_eh_frame_support
to master
:
This teaches
cranelift-faerie
how to write.eh_frame
sections that are appropriate with respect to call frames for functions that produce layout information.This builds quite directly on https://github.com/CraneStation/cranelift/pull/679, which is still open, and whose changes are alongside this as a result. For the time being, my changes on top of @yurydelendik 's PR are best seen as a diff between our branches.
Being dependent on an already-floating PR, I want to mostly call attention to the points that:
- frame change information is useful for handling unwinding as @bjorn3 mentioned here
- consumers of Cranelift (in this case, Lucet) probably want to unwind through Cranelift-generated code
- #679 is good enough to build on to the above ends, and the changes to produce .eh_frame and support unwinding through Cranelift-generated code are fairly small.
I do have some comments in-line in case any readers do take a closer look at the changes here, but I'm not sure it makes sense to sweat the details until #679 is figured out, since it seems like we've bitrotted with respect to today's
master
anyway.
iximeow closed without merge PR #902.
Last updated: Dec 23 2024 at 14:03 UTC