[PATCH] D37626: [ELF] Scan .eh_frame sections precisely in order to eliminate unused LSDAs and personality routines.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 14:26:35 PST 2023
MaskRay added a comment.
In D37626#4170599 <https://reviews.llvm.org/D37626#4170599>, @krisb wrote:
> Hello @MaskRay, thanks for the review! And sorry for the delay with response.
> The patch is useful in a probably rare case, indeed. It reproduces with a statically linked application that does not use exceptions itself, but hooks the personality routine because of some indirect dependencies that are removed by GC. Unfortunately, we cannot share our sample, but we will try to find something meaningful in the public domain.
> Note that GNU ld produces smaller binaries because it analyzes the liveness of sections/pieces more thoroughly.
Can you try `-fbinutils-version=2.36` or `latest`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D37626/new/
https://reviews.llvm.org/D37626
More information about the llvm-commits
mailing list