[lld] [lld][ICF] Don't merge symbols with different addends (PR #139493)
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 09:42:57 PDT 2025
jyknight wrote:
As per previous discussion, the symbol folding needs to be done in all circumstances where section folding considers the symbols as equivalent -- at least for the special relocation types.
So (at least for those kinds of relocs) I think we must forbid the fold of sections with relocations having different offsets in the first place. (Rather than just avoid folding the symbols, as this patch does).
https://github.com/llvm/llvm-project/pull/139493
More information about the llvm-commits
mailing list