[flang-commits] [flang] [LLD][AARCH64] lld incorrectly handles .eh_frame when it has a non-zero offset within its output section. (PR #65966)

via flang-commits flang-commits at lists.llvm.org
Mon Sep 11 09:32:50 PDT 2023


================
@@ -770,6 +770,9 @@ void AArch64::relocateAlloc(InputSectionBase &sec, uint8_t *buf) const {
   uint64_t secAddr = sec.getOutputSection()->addr;
   if (auto *s = dyn_cast<InputSection>(&sec))
     secAddr += s->outSecOff;
+  else if (auto *eh = dyn_cast<EhInputSection>(&sec))
----------------
simpal01 wrote:

yeah this affects all other targets (might be X86 and PPC as well). 

https://github.com/llvm/llvm-project/pull/65966


More information about the flang-commits mailing list