On Tue, Jan 23, 2018 at 2:51 AM, Corbin Bird <corbinb...@charter.net> wrote:

> Anyone else getting this error? ( kernel 4.9.77 )
>
> >   CC      fs/ext4/mballoc.o
> >   CC      fs/ext4/block_validity.o
> >   CC      fs/ext4/move_extent.o
> >   CC      fs/ext4/mmp.o
> >   CC      fs/ext4/indirect.o
> > fs/ext4/indirect.o: warning: objtool: ext4_clear_blocks()+0x242: can't
> > find jump dest instruction at .text+0x56c
> >   CC      fs/ext4/extents_status.o
> > /bin/sh: line 1: 31735 Segmentation fault      ./tools/objtool/objtool
> > check "fs/ext4/extents_status.o"
> > make[2]: *** [scripts/Makefile.build:294: fs/ext4/extents_status.o]
> > Error 139
> > make[1]: *** [scripts/Makefile.build:544: fs/ext4] Error 2
> > make: *** [Makefile:995: fs] Error 2
>
>
FYI, this is from 4.14.15's ChangeLog, doesn't appear to be in 4.9.78
though.

commit f41b2d7ee791e845147a3e3cafb25493dca6870a
Author: Josh Poimboeuf <jpoim...@redhat.com>
Date:   Mon Jan 15 08:17:07 2018 -0600

    objtool: Fix seg fault with gold linker

    commit 2a0098d70640dda192a79966c14d449e7a34d675 upstream.

    Objtool segfaults when the gold linker is used with
    CONFIG_MODVERSIONS=y and CONFIG_UNWINDER_ORC=y.

    With CONFIG_MODVERSIONS=y, the .o file gets passed to the linker before
    being passed to objtool.  The gold linker seems to strip unused ELF
    symbols by default, which confuses objtool and causes the seg fault when
    it's trying to generate ORC metadata.

    Objtool should really be running immediately after GCC anyway, without a
    linker call in between.  Change the makefile ordering so that objtool is
    called before the linker.

Reply via email to