[lld] [LLD]Discard invalid "DW.ref.__gxx_personality_v0" pieces in rela.eh_frame (PR #158590)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 08:07:00 PDT 2025
https://github.com/smithp35 commented:
Can you confirm that this is something that you've observed in the relocations for `--emit-relocs` and not a problem that you've observed when writing the .eh_frame in an executable or shared-library?
When I worked on .ARM.exidx sections many years ago, we had a discussion about a similar problem with emit-relocs and the outcome was that complete emit-relocs was not that important so just don't emit the relocation section for it https://github.com/llvm/llvm-project/blob/main/lld/ELF/SyntheticSections.cpp#L4092
I mention this as there may be a better way of solving this problem. For example could we choose to not emit the relocations section for .eh_frame or construct it specially rather than trying to post-process it post-hoc.
Whatever the result of the discussion, please can you add a test?
https://github.com/llvm/llvm-project/pull/158590
More information about the llvm-commits
mailing list