use non-LTO IPO cflags, adjust ldflags for Identical Code Folding and… #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
use non-LTO IPO cflags, adjust ldflags for Identical Code Folding and function Garbage Collector
Here is the long story short:
--icf=safe
--gc-sections
-ffunction-sections -fdata-sections
makes only half of the successI did compile llvm without above hardcodes:
OpenMandrivaAssociation/llvm#12
then i build kernel-release for x86_64 and aarch64. Both kernels clang flovours uses lld as default linker.
x86_64: https://abf.openmandriva.org/build_lists/40029
aarch64: https://abf.openmandriva.org/build_lists/40016