tools/nolibc: crt.h: initialize stack protector
authorZhangjin Wu <falcon@tinylab.org>
Sat, 15 Jul 2023 18:23:21 +0000 (02:23 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:40:22 +0000 (04:40 +0200)
commit06f2a62c81336574b08827a29a817b4250a310ed
tree1d0473cf6545e29573fe92b3bfe325c452a7d428
parentd7f16723d37c6aeaa4fb93b433db367ad8398b9c
tools/nolibc: crt.h: initialize stack protector

As suggested by Thomas, It is able to move the stackprotector
initialization from the assembly _start to the beginning of the new
_start_c(). Let's call __stack_chk_init() in _start_c() as a
preparation.

Suggested-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/lkml/a00284a6-54b1-498c-92aa-44997fa78403@t-8ch.de/
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/crt.h