[PATCH] D130206: CodeGen: use address form for DW_AT_high_pc on RISCV
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 15:46:26 PDT 2022
MaskRay added a comment.
This does not fix the incompatibility with RISC-V linker relaxation. This changes DW_AT_high_pc from a length to (pre-DWARF-v4) an address.
The address needs to be relocated as well. The correct approach is to use .debug_addr indirection via DW_FORM_addrx.
This is useful with linker relaxation, though, as it can decrease the number of relocations.
https://maskray.me/blog/2021-03-14-the-dark-side-of-riscv-linker-relaxation#code-addresses I am going to revise some paragraphs about DWARF.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130206/new/
https://reviews.llvm.org/D130206
More information about the llvm-commits
mailing list