]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc: Don't use stack protector before setting it up
authorDaniel Palmer <daniel@thingy.jp>
Sat, 25 Apr 2026 11:13:15 +0000 (20:13 +0900)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 27 Apr 2026 17:09:26 +0000 (19:09 +0200)
commit5b1528c33befa323c783bbaf9a8a67371e3bcbd5
treef0b1490ff0fcf06db6ef0907eb1bd910a9c30391
parent9adc1c33a10491b0f97152facce186f073ac91e3
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>
tools/include/nolibc/crt.h