tools/nolibc: stackprotector.h: make __stack_chk_init static
authorZhangjin Wu <falcon@tinylab.org>
Sat, 5 Aug 2023 06:12:06 +0000 (14:12 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 03:17:07 +0000 (05:17 +0200)
commitdcb677c3d3290c18cfdbc54d2f8fcf0279c06206
treefdc15c344e577ba63ab248bf926163953c29e9c3
parentce1bb82b1c53585e781e9ec0bf22df23aff104c6
tools/nolibc: stackprotector.h: make __stack_chk_init static

This allows to generate smaller text/data/dec size.

As the _start_c() function added by crt.h, __stack_chk_init() is called
from _start_c() instead of the assembly _start. So, it is able to mark
it with static now.

Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/crt.h
tools/include/nolibc/stackprotector.h