[PATCH] D111404: [DebugInfo][ARM] Fix incorrect debug information for RWPI accessed globals

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 8 05:57:46 PDT 2021


labrinea created this revision.
labrinea added reviewers: llvm-commits, dblaikie.
Herald added subscribers: hiraditya, kristof.beyls.
labrinea requested review of this revision.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111404

Files:
  llvm/include/llvm/Target/TargetLoweringObjectFile.h
  llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
  llvm/lib/Target/ARM/ARMTargetObjectFile.h
  llvm/test/DebugInfo/ARM/rwpi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111404.378185.patch
Type: text/x-patch
Size: 6580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211008/b9a69a95/attachment.bin>


More information about the llvm-commits mailing list