Re: [PATCH 1/2] objtool: Fix seg fault with gold linker

From: Ingo Molnar
Date: Mon Jan 15 2018 - 19:21:54 EST



* Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:

> Objtool seg faults 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.

BTW., if it's still unfixed, could we fix that segfault as well, and turn it into
a more useful failure message?

Thanks,

Ingo