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

From: Josh Poimboeuf
Date: Sat Feb 13 2021 - 10:53:45 EST


On Sat, Feb 13, 2021 at 09:13:04AM -0500, Steven Rostedt wrote:
> On Sat, 13 Feb 2021 15:09:02 +0100
> Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> > Thanks for the patch, but no, still fails with:
> >
> > Cannot find symbol for section 8: .text.unlikely.
> > kernel/kexec_file.o: failed
> > make[1]: *** [scripts/Makefile.build:277: kernel/kexec_file.o] Error 1
> > make[1]: *** Deleting file 'kernel/kexec_file.o'
>
> It was just a guess.
>
> I guess I'll need to find some time next week to set up a VM with
> binutils 2.36 (I just checked, and all my development machines have
> 2.35). Then I'll be able to try and debug it.

FWIW, I wasn't able to recreate. I tried both binutils 2.36 and
2.36.1, with gcc 11 and a 'make allmodconfig' kernel.

--
Josh