]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: disable function sanitizer for _start_c()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 10:46:20 +0000 (12:46 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 12:17:56 +0000 (14:17 +0200)
commit9fca5554af70fd86fb1ed78362d86ebd1a4be2ef
tree38a6adc6c453dce3102a804c0140879b3cc5b1a5
parentf4152715dcd5c580dca6ea628ec03785bba44b9a
tools/nolibc: disable function sanitizer for _start_c()

Both constructors and main() may be executed with different function
signatures than they are actually using.
This is intentional but trips up UBSAN.

Disable the function sanitizer of UBSAN in _start_c().

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250419-nolibc-ubsan-v2-3-060b8a016917@weissschuh.net
tools/include/nolibc/crt.h