kbuild: dummy-tools: pretend we understand -fpatchable-function-entry
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Mon, 30 Oct 2023 11:34:16 +0000 (12:34 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 1 Nov 2023 14:24:56 +0000 (23:24 +0900)
commit1bfaa37fd3486e66131de9cb87747c84b4c89a05
tree8400e8d7e5634d85bb6de2b9642181411b8008e7
parent766b7007a1cc2a4bb687311d9cec6681cbe0d5e2
kbuild: dummy-tools: pretend we understand -fpatchable-function-entry

Commit 0f71dcfb4aef ("powerpc/ftrace: Add support for
-fpatchable-function-entry") added a script to check for
-fpatchable-function-entry compiler support. The script expects compiler
to emit the section __patchable_function_entries and few nops after a
function entry.

If the compiler understands and emits the above,
CONFIG_ARCH_USING_PATCHABLE_FUNCTION_ENTRY is set.

So teach dummy-tools' gcc about this.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/dummy-tools/gcc