]> www.infradead.org Git - users/dwmw2/linux.git/commit
tools/nolibc: powerpc: limit stack-protector workaround to GCC
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 7 Aug 2024 21:51:39 +0000 (23:51 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 10 Aug 2024 15:08:15 +0000 (17:08 +0200)
commit1daea158d0aae0770371f3079305a29fdb66829e
tree27bcfd55e1392edd50569a93a8ed56ce586c05fa
parent0daf8c86a45163f35b8d4f7795068c2511dd0ad9
tools/nolibc: powerpc: limit stack-protector workaround to GCC

As mentioned in the comment, the workaround for
__attribute__((no_stack_protector)) is only necessary on GCC.
Avoid applying the workaround on clang, as clang does not recognize
__attribute__((__optimize__)) and would fail.

Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20240807-nolibc-llvm-v2-3-c20f2f5fc7c2@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/arch-powerpc.h