[PATCH] D37626: [ELF] Scan .eh_frame sections precisely in order to eliminate unused LSDAs and personality routines.

Kristina Bessonova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 5 23:53:28 PST 2023


krisb added a comment.

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.


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