Re: [tip: objtool/urgent] objtool: Fix seg fault with Clang non-section symbols

From: Greg Kroah-Hartman
Date: Sat Feb 13 2021 - 08:01:03 EST


On Thu, Feb 11, 2021 at 09:32:03PM +0800, Xi Ruoyao wrote:
> Hi all,
>
> The latest GNU assembler (binutils-2.36.1) is removing unused section symbols
> like Clang [1]. So linux-5.10.15 can't be built with binutils-2.36.1 now. It
> has been reported as https://bugzilla.kernel.org/show_bug.cgi?id=211693.
>
> I can confirm this commit fixes the issue. It should be cherry-picked into
> stable branches, so the following stable releases will be able to built with
> latest GNU toolchain.
>
> [1]: https://sourceware.org/pipermail/binutils/2020-December/114671.html
>
> At last, happy new lunar year guys :).
>
> On 2020-12-16 13:49 +0000, tip-bot2 for Josh Poimboeuf wrote:
> > The following commit has been merged into the objtool/urgent branch of tip:
> >
> > Commit-ID:     44f6a7c0755d8dd453c70557e11687bb080a6f21

Now queued up for 5.10.y.

If people want it in older kernels, please provide a working backport.

thanks,

greg k-h