[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20231031112658.GM6241@kitsune.suse.cz>
Date: Tue, 31 Oct 2023 12:26:58 +0100
From: Michal Suchánek <msuchanek@...e.de>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: linux-kbuild@...r.kernel.org,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Nicolas Schier <nicolas@...sle.eu>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Naveen N Rao <naveen@...nel.org>,
Michael Ellerman <mpe@...erman.id.au>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kbuild: dummy-tools: Add support for
-fpatchable-function-entry
On Tue, Oct 31, 2023 at 03:08:53PM +0900, Masahiro Yamada wrote:
> On Mon, Oct 30, 2023 at 5:32 PM Michal Suchanek <msuchanek@...e.de> wrote:
> >
> > dummy-gcc does not produce the output
> > gcc-check-fpatchable-function-entry.sh expects. Add a base64 encoded
> > output of the second test.
> >
> > Fixes: 0f71dcfb4aef ("powerpc/ftrace: Add support for -fpatchable-function-entry")
> > Signed-off-by: Michal Suchanek <msuchanek@...e.de>
> > ---
>
>
>
> I prefer this one
> https://lore.kernel.org/linux-kbuild/20231030113416.5208-1-jirislaby@kernel.org/T/#u
>
>
> Does it work for you?
Yes, that also works.
Thanks
Michal
>
>
>
>
>
> > scripts/dummy-tools/gcc | 19 +++++++++++++++++++
> > 1 file changed, 19 insertions(+)
> >
> > diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
> > index 07f6dc4c5cf6..8ab81a905cc2 100755
> > --- a/scripts/dummy-tools/gcc
> > +++ b/scripts/dummy-tools/gcc
> > @@ -73,6 +73,25 @@ if arg_contain -Wa,--version "$@"; then
> > exit 0
> > fi
> >
> > +if arg_contain -fpatchable-function-entry=2 "$@"; then
> > + base64 -d <<-EOF
> > + CS5maWxlCSI8c3RkaW4+IgoJLm1hY2hpbmUgcG93ZXI4CgkuYWJpdmVyc2lvbi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.sh
> > if arg_contain -fstack-protector "$@"; then
> > --
> > 2.42.0
> >
>
>
> --
> Best Regards
> Masahiro Yamada
Powered by blists - more mailing lists