[PATCH 0/3] tools/nolibc: stack protector compatibility fixes

From: Thomas Weißschuh
Date: Wed May 24 2023 - 02:46:53 EST


Two fixes for nolibc to
* allow users to explicitly disable (or theoretically enable) when
building the tests
* fix stackprotectors on GCC < 10.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (3):
Revert "EXP: tools/nolibc: partially revert stackprotector compiler flags"
selftests/nolibc: allow disabling of stackprotector support
tools/nolibc: fix segfaults on compilers without attribute no_stack_protector

tools/include/nolibc/arch-aarch64.h | 2 +-
tools/include/nolibc/arch-arm.h | 2 +-
tools/include/nolibc/arch-i386.h | 2 +-
tools/include/nolibc/arch-loongarch.h | 2 +-
tools/include/nolibc/arch-mips.h | 2 +-
tools/include/nolibc/arch-riscv.h | 2 +-
tools/include/nolibc/arch-x86_64.h | 2 +-
tools/include/nolibc/compiler.h | 10 ++++++++++
tools/include/nolibc/stackprotector.h | 2 +-
tools/testing/selftests/nolibc/Makefile | 13 ++-----------
10 files changed, 20 insertions(+), 19 deletions(-)
---
base-commit: 8213b0cdb51d1f66af713e00fd0dff3c2eb47636
change-id: 20230523-nolibc-stackprotector-gcc9-8eebd10a7968

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>