[PATCH] D132489: [MachO] Fix dead-stripping __eh_frame
Vincent Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 24 01:17:55 PDT 2022
thevinster added a comment.
> we would actually produce an invalid __eh_frame section in that case because the CIE associated with the unnecessary FDE would still get dead-stripped and we'd end up with a dangling FDE
Thinking out loud here... instead of disabling `S_ATTR_LIVE_SUPPORT`, would it be better to prevent an invalid __eh_frame section by making sure the CIE is not dead-stripped even if an unnecessary FDE still references a live symbol? If we wanted to it to be "dead stripped", then enabling ICF should deduplicate the exceptions. My worry is that disabling it may cause unknown behaviors if a potential valid FDE gets dead stripped, even though it was not intended to. Is that something that can happen?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132489/new/
https://reviews.llvm.org/D132489
More information about the llvm-commits
mailing list