tools/nolibc: autodetect stackprotector availability from compiler
Get series with b4
b4 am 20230521-nolibc-automatic-stack-protector-v1-0-dad6c80c51c1@weissschuh.net change-id 20230521-nolibc-automatic-stack-protector-b4f7fab9e625Versions newest first
- v1 Latest7 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | tools/nolibc: fix typo pint -> pointtools/ | +1 | 0 replies | |
| 2/7 | tools/nolibc: x86_64: disable stack protector for _starttools/ | +1 | 0 replies | |
| 3/7 | tools/nolibc: ensure stack protector guard is never zerotools/ | +3 | 0 replies | |
| 4/7 | tools/nolibc: add test for __stack_chk_guard initializationtools/ | +8 | 0 replies | |
| 5/7 | tools/nolibc: reformat list of headers to be installedtools/ | +16 | 0 replies | |
| 6/7 | tools/nolibc: add autodetection for stackprotector supporttools/ tools/ tools/ +8 more | +42 | 0 replies | |
| 7/7 | tools/nolibc: simplify stackprotector compiler flagstools/ | +2 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] tools/nolibc: autodetect stackprotector availability from compiler
As suggested by Willy it is possible to detect the availability of stackprotector via preprocessor defines.
Make use of that to simplify the code and interface of nolibc.
---
Thomas Weißschuh (7):
tools/nolibc: fix typo pint -> point tools/nolibc: x86_64: disable stack protector for _start tools/nolibc: ensure stack protector guard is never zero tools/nolibc: add test for __stack_chk_guard initialization tools/nolibc: reformat list of headers to be installed tools/nolibc: add autodetection for stackprotector support tools/nolibc: simplify stackprotector compiler flags
tools/include/nolibc/Makefile | 19 +++++++++++++++++-- tools/include/nolibc/arch-aarch64.h | 6 +++--- tools/include/nolibc/arch-arm.h | 6 +++--- tools/include/nolibc/arch-i386.h | 6 +++--- tools/include/nolibc/arch-loongarch.h | 6 +++--- tools/include/nolibc/arch-mips.h | 6 +++--- tools/include/nolibc/arch-riscv.h | 6 +++--- tools/include/nolibc/arch-x86_64.h | 8 ++++---- tools/include/nolibc/arch.h | 2 +- tools/include/nolibc/compiler.h | 15 +++++++++++++++ tools/include/nolibc/stackprotector.h | 15 ++++++--------- tools/testing/selftests/nolibc/Makefile | 13 ++----------- tools/testing/selftests/nolibc/nolibc-test.c | 10 +++++++++- 13 files changed, 72 insertions(+), 46 deletions(-)
---
base-commit: 606343b7478c319cb30291a39ecbceddb42229d6
change-id: 20230521-nolibc-automatic-stack-protector-b4f7fab9e625
Best regards,
Signature · 7 lines
Thomas Weißschuh <[email protected]> _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv