Skip to content

LTO: hacks to build LTO-enabled randconfig kernels

Arnd Bergmann linux-kbuild lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7lto: make config.gz symbol visiblekernel/Makefile+1 -10 replies
2/7x86: lto: always link in library filesarch/x86/lib/Makefile+20 -190 replies
3/7x86: crypto: fix link error with LTOarch/x86/crypto/aes_glue.c+5 -02 replies
4/7lto: shut up some warningsscripts/kallsyms.c scripts/mod/modpost.c+5 -10 replies
5/7avoid gcc-8 ICE on LTOnet/sctp/sm_sideeffect.c+1 -11 reply
6/7Kbuild: lto: clean build artifactsscripts/link-vmlinux.sh+3 -10 replies
7/7Kbuild: lto: pass -m32/-m64 to to LDFINALMakefile arch/x86/Makefile scripts/Makefile.lto+4 -25 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] LTO: hacks to build LTO-enabled randconfig kernels

This is a set of patches that I used for build-testing, resulting in a successful build without warnings when combining
https://github.com/andikleen/linux-misc#lto-415-2 with the latest linux-next.

I sent out all bug fixes that I had a good feeling about, this series is basically crap, but it does the job for me. I'm posting it for documentation purposes mainly, so we know what some of the remaining issues are, and so people can google for the error messages when they run into the same issues.

Arnd Bergmann (7):
[HACK] lto: make config.gz symbol visible
[HACK] x86: lto: always link in library files
[HACK] x86: crypto: fix link error with LTO
[HACK] lto: shut up some warnings
[HACK] avoid gcc-8 ICE on LTO
Kbuild: lto: clean build artifacts
Kbuild: lto: pass -m32/-m64 to to LDFINAL

 Makefile                   |  2 +-
 arch/x86/Makefile          |  2 ++
 arch/x86/crypto/aes_glue.c |  5 +++++
 arch/x86/lib/Makefile      | 39 ++++++++++++++++++++-------------------
 kernel/Makefile            |  2 +-
 net/sctp/sm_sideeffect.c   |  2 +-
 scripts/Makefile.lto       |  2 +-
 scripts/kallsyms.c         |  2 +-
 scripts/link-vmlinux.sh    |  4 +++-
 scripts/mod/modpost.c      |  4 ++++
 10 files changed, 39 insertions(+), 25 deletions(-)
Signature · 1 line
2.9.0