[lld] [lld][ELF] Fold LSDA-bearing sections with equivalent LSDA and CIE (PR #224929)

via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 20 09:10:08 PDT 2026


artemkulyk wrote:

Updated the branch:
- An FDE whose augmentation data has more than one relocation after the PC-begin relocation is now conservatively kept unique instead of being treated as having no LSDA. Previously such a section could fold with a section that has no LSDA at all; RISC-V linker relaxation produces this FDE shape. Regression test: icf-lsda-extra-fde-reloc.s.
- New test icf-lsda-landing-pad.s: exception tables that relocate to their own function's landing pad fold only when the pads are equivalent.
- New tests icf-lsda-personality-indirect-cross.s (DW.ref thunks across object files) and icf-lsda-safe.s (--icf=safe with addrsig/exported symbols).
- Fixed the "LSBAs" typo in icf-eh-frame.s and applied the structured-binding suggestion in ICF.cpp.


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


More information about the llvm-commits mailing list