[llvm-branch-commits] ELF: Use preprocessed relocations for EhInputSection scanning (PR #161091)
Peter Smith via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Sep 29 05:40:00 PDT 2025
================
@@ -1574,6 +1569,13 @@ void RelocationScanner::scanOne(typename Relocs<RelTy>::const_iterator &i) {
}
}
+ scanOneAux<ELFT>(i, expr, type, offset, sym, addend);
+}
+
+template <class ELFT, class RelIt>
+void RelocationScanner::scanOneAux(RelIt &i, RelExpr expr, RelType type,
----------------
smithp35 wrote:
IIUC this is the common tail between scanEhSection and scanSection.
As .ehframe sections describe code sections, I wouldn't expect to see any GOT generating or TLS relocations. Could we call processAux directly from scanEhSection instead of calling scanOneAux. Then we could fold this part back into scanOne.
https://github.com/llvm/llvm-project/pull/161091
More information about the llvm-branch-commits
mailing list