tools/nolibc: stackprotector.h: add empty __stack_chk_init for !_NOLIBC_STACKPROTECTOR
authorZhangjin Wu <falcon@tinylab.org>
Sat, 15 Jul 2023 18:22:15 +0000 (02:22 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:40:22 +0000 (04:40 +0200)
commitd7f16723d37c6aeaa4fb93b433db367ad8398b9c
treeb7c9dc1b50143f1b0992c7d037c6c66e3f8e2f30
parent17336755150b19a697079f9c3945eff7882a77c5
tools/nolibc: stackprotector.h: add empty __stack_chk_init for !_NOLIBC_STACKPROTECTOR

Let's define an empty __stack_chk_init for the !_NOLIBC_STACKPROTECTOR
branch.

This allows to remove #ifdef around every call of __stack_chk_init().

Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/stackprotector.h