[all-commits] [llvm/llvm-project] 04dc68: [DebugInfo][ARM] Fix incorrect debug information f...

Alexandros Lamprineas via All-commits all-commits at lists.llvm.org
Mon Oct 18 13:30:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04dc68710ad2b30a1d3b4a2ca33005af2c9460eb
      https://github.com/llvm/llvm-project/commit/04dc68710ad2b30a1d3b4a2ca33005af2c9460eb
  Author: Alexandros Lamprineas <alexandroslamprineas at Alexandross-MacBook-Air.local>
  Date:   2021-10-18 (Mon, 18 Oct 2021)

  Changed paths:
    M llvm/include/llvm/Target/TargetLoweringObjectFile.h
    M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
    M llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
    M llvm/lib/Target/ARM/ARMTargetObjectFile.h
    A llvm/test/DebugInfo/ARM/rwpi.ll

  Log Message:
  -----------
  [DebugInfo][ARM] Fix incorrect debug information for RWPI accessed globals

When compiling for the RWPI relocation model the debug information is wrong:

* the debug location is described as { DW_OP_addr Var }
  instead of { DW_OP_constNu Var DW_OP_bregX 0 DW_OP_plus }
* the relocation type is R_ARM_ABS32 instead of R_ARM_SBREL32

Differential Revision: https://reviews.llvm.org/D111404




More information about the All-commits mailing list