walrus
walrus copied to clipboard
transform DWARF code address
This is experiment implementation of transforming DWARF debug entries in WebAssembly binaries.
It seems to require more difficult implementation that using intermediate DWARF expression with gimli.rs, does not have direct access DWARF entries to be written. This PR contains simpler way to transform code address:
- Instruction mapped address conversion
- Function code range based address conversion
Milestones
- [x] Function code range based address conversion
- [x] Implement instruction mapped address conversion
- [x] Better expression of code address that does not exactly match to instruction
- beginning or end of function
- [ ] Implement test cases