[lld] [PAC][lld] Properly handle `.relr.auth.dyn` -> `.rela.dyn` movement (PR #195649)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 14 22:01:58 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:
Does this not need to be done before/between/after every iteration of finalizeAddressDependentContent in case any references to the symbols care about the layout?
https://github.com/llvm/llvm-project/pull/195649
More information about the llvm-commits
mailing list