1 |
On Tue, Jan 23, 2018 at 2:51 AM, Corbin Bird <corbinbird@×××××××.net> wrote: |
2 |
|
3 |
> Anyone else getting this error? ( kernel 4.9.77 ) |
4 |
> |
5 |
> > CC fs/ext4/mballoc.o |
6 |
> > CC fs/ext4/block_validity.o |
7 |
> > CC fs/ext4/move_extent.o |
8 |
> > CC fs/ext4/mmp.o |
9 |
> > CC fs/ext4/indirect.o |
10 |
> > fs/ext4/indirect.o: warning: objtool: ext4_clear_blocks()+0x242: can't |
11 |
> > find jump dest instruction at .text+0x56c |
12 |
> > CC fs/ext4/extents_status.o |
13 |
> > /bin/sh: line 1: 31735 Segmentation fault ./tools/objtool/objtool |
14 |
> > check "fs/ext4/extents_status.o" |
15 |
> > make[2]: *** [scripts/Makefile.build:294: fs/ext4/extents_status.o] |
16 |
> > Error 139 |
17 |
> > make[1]: *** [scripts/Makefile.build:544: fs/ext4] Error 2 |
18 |
> > make: *** [Makefile:995: fs] Error 2 |
19 |
> |
20 |
> |
21 |
FYI, this is from 4.14.15's ChangeLog, doesn't appear to be in 4.9.78 |
22 |
though. |
23 |
|
24 |
commit f41b2d7ee791e845147a3e3cafb25493dca6870a |
25 |
Author: Josh Poimboeuf <jpoimboe@××××××.com> |
26 |
Date: Mon Jan 15 08:17:07 2018 -0600 |
27 |
|
28 |
objtool: Fix seg fault with gold linker |
29 |
|
30 |
commit 2a0098d70640dda192a79966c14d449e7a34d675 upstream. |
31 |
|
32 |
Objtool segfaults when the gold linker is used with |
33 |
CONFIG_MODVERSIONS=y and CONFIG_UNWINDER_ORC=y. |
34 |
|
35 |
With CONFIG_MODVERSIONS=y, the .o file gets passed to the linker before |
36 |
being passed to objtool. The gold linker seems to strip unused ELF |
37 |
symbols by default, which confuses objtool and causes the seg fault when |
38 |
it's trying to generate ORC metadata. |
39 |
|
40 |
Objtool should really be running immediately after GCC anyway, without a |
41 |
linker call in between. Change the makefile ordering so that objtool is |
42 |
called before the linker. |