[lld] [PAC][lld] Properly handle `.relr.auth.dyn` -> `.rela.dyn` movement (PR #195649)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 10 05:30:52 PDT 2026


================
@@ -2090,6 +2085,19 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
   //    values. They also might change after adding the thunks.
   finalizeAddressDependentContent();
 
+  // .rela_iplt_{start,end} mark the start and the end of the section containing
+  // IRELATIVE relocations. This must be called after
+  // finalizeAddressDependentContent() because it might move relocations from
+  // .relr.auth.dyn to .rela.dyn.
+  if (ctx.sym.relaIpltStart) {
----------------
jrtc27 wrote:

You're still not assigning before the first iteration though?

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


More information about the llvm-commits mailing list