Conversation
|
Something along those lines makes sense. |
Few of these defaults were moved to this PR so rpm macros may catch them.
Some Makefies does not pass any LDFLAGS, see KBUILD in couple of places, so without patching Makefiles you are not able to pass --icf=none or --no-gc-sections. Please see ClangBuiltLinux bugs. |
… function Garbage Collector
0dcd547 to
4583d63
Compare
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-sectionsmakes 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