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

via libc-commits libc-commits at lists.llvm.org
Mon Sep 11 09:32:58 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 libc-commits mailing list