Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix meaning of generated .debug_loc sections #8753

Merged

Commits on Jun 7, 2024

  1. Fix meaning of generated .debug_loc sections

    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 bytecodealliance#8752
    alexcrichton committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    8d547d0 View commit details
    Browse the repository at this point in the history