summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/crt.h
diff options
context:
space:
mode:
authorZhangjin Wu <falcon@tinylab.org>2023-08-05 09:12:06 +0300
committerWilly Tarreau <w@1wt.eu>2023-08-23 06:17:07 +0300
commitdcb677c3d3290c18cfdbc54d2f8fcf0279c06206 (patch)
treefdc15c344e577ba63ab248bf926163953c29e9c3 /tools/include/nolibc/crt.h
parentce1bb82b1c53585e781e9ec0bf22df23aff104c6 (diff)
downloadlinux-dcb677c3d3290c18cfdbc54d2f8fcf0279c06206.tar.xz
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>
Diffstat (limited to 'tools/include/nolibc/crt.h')
-rw-r--r--tools/include/nolibc/crt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/nolibc/crt.h b/tools/include/nolibc/crt.h
index 32e128b0fb62..a5f33fef1672 100644
--- a/tools/include/nolibc/crt.h
+++ b/tools/include/nolibc/crt.h
@@ -10,7 +10,7 @@
char **environ __attribute__((weak));
const unsigned long *_auxv __attribute__((weak));
-void __stack_chk_init(void);
+static void __stack_chk_init(void);
static void exit(int);
void _start_c(long *sp)