Stream: git-wasmtime

Topic: wasmtime / PR #8753 Fix meaning of generated `.debug_loc`...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2024 at 00:38):

alexcrichton opened PR #8753 from alexcrichton:fix-dwarf-debug-loc to bytecodealliance:main:

This commit is a fix to Wasmtime's DWARF processing transform to correct the meaning of the .debug_loc section. This section's addresses are relative to the DW_AT_low_pc entry located in the DW_TAG_compile_unit container, but Wasmtime's construction of this section didn't take this into account. Instead all addresses in .debug_loc are relative to the start of the compiled object, not to the start of the compile unit itself. This commit fixes this by unconditionally describing DW_TAG_compile_unit locations with DW_AT_ranges instead of DW_AT_low_pc. This ends up fixing debug information for debug information using .debug_loc with multiple codegen units.

Closes #8752

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2024 at 00:38):

alexcrichton requested wasmtime-core-reviewers for a review on PR #8753.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2024 at 00:38):

alexcrichton requested elliottt for a review on PR #8753.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 10 2024 at 22:06):

elliottt submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 10 2024 at 22:22):

alexcrichton merged PR #8753.


Last updated: Dec 23 2024 at 12:05 UTC