walrus icon indicating copy to clipboard operation
walrus copied to clipboard

transform DWARF code address

Open nokotan opened this issue 3 years ago • 0 comments

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

nokotan avatar Jun 29 '22 06:06 nokotan