[lld] [lld][ELF] Add option to prevent debuginfo tombstoning (PR #214631)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 22:26:55 PDT 2026


MaskRay wrote:

 "Preserve debug information for folded symbols" invites users to expect it to help with `--gc-sections`/COMDAT-discarded symbols (`!ds`), which this option doesn't touch. If this is for `llvm-gsymutil --merged-functions`, clarify the PR description.

This change is generic. It changes non-SHF_ALLOC sections other than debug sections. The description is inaccurate.

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


More information about the llvm-commits mailing list