[PATCH] D100328: Fixed bug in eh_frame PC offset calculation for DW_EH_PE_pcrel

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 16:37:05 PDT 2021


MaskRay accepted this revision.
MaskRay added a comment.
This revision is now accepted and ready to land.

LG. The stored address is used as `EHFrameAddress` in `llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp`

  1134           // Decode the LSDA if the CIE augmentation string said we should.                                                                                                                                                       
  1135           if (Cie->getLSDAPointerEncoding() != DW_EH_PE_omit) {
  1136             LSDAAddress = Data.getEncodedPointer(                                                                                                                                                                                 
  1137                 &Offset, Cie->getLSDAPointerEncoding(),
  1138                 EHFrameAddress ? Offset + EHFrameAddress : 0);
  1139           }



================
Comment at: llvm/include/llvm/DebugInfo/DWARF/DWARFSection.h:18
   StringRef Data;
+  uint64_t Address = {};
 };
----------------
`= 0`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100328/new/

https://reviews.llvm.org/D100328



More information about the llvm-commits mailing list