diff options
| author | Daniel Palmer <daniel@thingy.jp> | 2026-04-25 14:13:15 +0300 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-04-27 20:09:26 +0300 |
| commit | 5b1528c33befa323c783bbaf9a8a67371e3bcbd5 (patch) | |
| tree | f0b1490ff0fcf06db6ef0907eb1bd910a9c30391 | |
| parent | 9adc1c33a10491b0f97152facce186f073ac91e3 (diff) | |
| download | linux-5b1528c33befa323c783bbaf9a8a67371e3bcbd5.tar.xz | |
tools/nolibc: Don't use stack protector before setting it up
The stack protector is configured in _start_c() so we shouldn't
use it before then.
Add __nolibc_no_stack_protector to _start_c() to avoid the compiler
generating stack protector code for _start_c() and thus using it
before its configured.
Signed-off-by: Daniel Palmer <daniel@thingy.jp>
Link: https://patch.msgid.link/20260425111315.3191461-3-daniel@thingy.jp
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
| -rw-r--r-- | tools/include/nolibc/crt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/nolibc/crt.h b/tools/include/nolibc/crt.h index f38590a05adf..78124b6598a7 100644 --- a/tools/include/nolibc/crt.h +++ b/tools/include/nolibc/crt.h @@ -47,7 +47,7 @@ char *__nolibc_program_invocation_short_name(char *long_name) #endif /* NOLIBC_IGNORE_ERRNO */ void _start_c(long *sp); -__attribute__((weak,used)) __nolibc_no_sanitize_undefined +__attribute__((weak,used)) __nolibc_no_sanitize_undefined __nolibc_no_stack_protector void _start_c(long *sp) { long argc; |
