Re: [PATCH 14/18] objtool: Add toolchain hacks cmdline option

From: Josh Poimboeuf
Date: Thu Apr 14 2022 - 12:12:21 EST


On Thu, Apr 14, 2022 at 10:09:46AM +0200, Peter Zijlstra wrote:
> On Wed, Apr 13, 2022 at 04:19:49PM -0700, Josh Poimboeuf wrote:
> > Objtool secretly does a few awful hacks to overcome toolchain
> > limitations. Make those hacks explicit (and optional for other arches)
> > by associating them with a new '--hacks' cmdline option and
> > corresponding CONFIG_HAVE_TOOLCHAIN_HACKS.
>
> Should we either clarify the specific hacks done, or split this in two
> options?
>
> --hack-jump_label
> --hack-noinstr

Yeah, maybe we should split them out somehow.

--
Josh