Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'clang-features-v5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull clang LTO fix from Kees Cook:
"Clang 13 fixed some IR behavior for LTO, but this broke work-arounds
used in the kernel.

Handle changes to needed LTO flags in Clang 13 (Tor Vic)"

* tag 'clang-features-v5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
x86, lto: Pass -stack-alignment only on LLD < 13.0.0

+3 -2
+3 -2
arch/x86/Makefile
··· 200 200 KBUILD_LDFLAGS += -m elf_$(UTS_MACHINE) 201 201 202 202 ifdef CONFIG_LTO_CLANG 203 - KBUILD_LDFLAGS += -plugin-opt=-code-model=kernel \ 204 - -plugin-opt=-stack-alignment=$(if $(CONFIG_X86_32),4,8) 203 + ifeq ($(shell test $(CONFIG_LLD_VERSION) -lt 130000; echo $$?),0) 204 + KBUILD_LDFLAGS += -plugin-opt=-stack-alignment=$(if $(CONFIG_X86_32),4,8) 205 + endif 205 206 endif 206 207 207 208 ifdef CONFIG_X86_NEED_RELOCS