2021-04-01 21:41:16

by Kees Cook

[permalink] [raw]
Subject: [GIT PULL] LTO fix for v5.12-rc6

Hi Linus,

Please pull this LTO fix for v5.12-rc6. It seems that there is a bug in
ld.bfd when doing module section merging. As explicit merging is only
needed for LTO, the work-around is to only do it under LTO, leaving the
original section layout choices alone under normal builds.

Thanks!

-Kees

The following changes since commit a5e13c6df0e41702d2b2c77c8ad41677ebb065b3:

Linux 5.12-rc5 (2021-03-28 15:48:16 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/lto-v5.12-rc6

for you to fetch changes up to 6a3193cdd5e5b96ac65f04ee42555c216da332af:

kbuild: lto: Merge module sections if and only if CONFIG_LTO_CLANG is enabled (2021-04-01 14:15:59 -0700)

----------------------------------------------------------------
LTO fix for v5.12-rc6

- Only perform explicit module section merges under LTO (Sean Christopherson)

----------------------------------------------------------------
Sean Christopherson (1):
kbuild: lto: Merge module sections if and only if CONFIG_LTO_CLANG is enabled

scripts/module.lds.S | 2 ++
1 file changed, 2 insertions(+)

--
Kees Cook


2021-04-02 01:04:08

by pr-tracker-bot

[permalink] [raw]
Subject: Re: [GIT PULL] LTO fix for v5.12-rc6

The pull request you sent on Thu, 1 Apr 2021 14:39:19 -0700:

> https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/lto-v5.12-rc6

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/1678e493d530e7977cce34e59a86bb86f3c5631e

Thank you!

--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html