-
-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mold Crash caused by "-Wl,--icf=all" #398
Comments
Thank you for reporting the issue! Did it fail all the time, or did it fail only when building some specific program? What program did you try to build using mold? |
I thought it happens only to my case only, but it didn't. As to the programs, it is a bit complex. It happened to my personal project which relied on several projects, namely abseil-cpp, boringssl, libc++, protobuf, quiche and etc. I didn't take a look on all these projects yet but at least I can confirm this crash happens on boringssl project at least (tested on
Then you should get a core dump at the linking step. I think icf is a great feature to reduce output binary (binariess reduced from 3M to 400KB for various cases for my porject). It would be worth to take some time on it. |
And tested without |
the upstream issue is fixed. rui314/mold#398
I tested mold linker released last week with clang-13 (at apt.llvm.org) with libstdc++ 11 in ubuntu test toolchain under ubuntu bionic. mold crashed with
-Wl,--icf=all
(tested both of--no-threads
andflto=thin
, both of them crashed as well, it seems irrelevant). Here is the backtrace of mold.The text was updated successfully, but these errors were encountered: