Re: [RFC][PATCH v2 20/19] kbuild/objtool: Add objtool-vmlinux.o pass

From: Peter Zijlstra
Date: Wed Mar 18 2020 - 10:13:27 EST


On Wed, Mar 18, 2020 at 02:18:45PM +0100, Peter Zijlstra wrote:
>
> This seems to 'work', must be perfect etc..

Uhu.. the moment I ran it on a kernel which has .noinstr.text

> +objtool_link()
> +{
> + local objtoolopt;
> +
> + if [ -n "${CONFIG_VMLINUX_VALIDATION}" ]; then
> + objtoolopt="check"
> + if [ -n "${CONFIG_FRAME_POINTER}" ]; then

I found that that ought to be -z :-)

> + objtoolopt="${objtoolopt} --no-fp"
> + fi