[llvm] [BOLT] Skip _init; avoiding GOT breakage for static binaries (PR #117751)
Peter Waller via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 27 14:37:42 PST 2024
================
@@ -3061,7 +3079,9 @@ void RewriteInstance::selectFunctionsToProcess() {
if (Function.isFragment())
continue;
- if (!shouldProcess(Function)) {
+ if (isStaticInitFunction(*BC, Function)) {
+ Function.setIgnored();
----------------
peterwaller-arm wrote:
Done in [80b41c2](https://github.com/llvm/llvm-project/pull/117751/commits/80b41c268c5cbc3feb8b143299140b121d5bad19).
https://github.com/llvm/llvm-project/pull/117751
More information about the llvm-commits
mailing list