]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc: support UBSAN on gcc
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 8 Apr 2026 21:03:57 +0000 (23:03 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Thu, 9 Apr 2026 21:25:40 +0000 (23:25 +0200)
commit3495279d05d62b07d7594c75d4380f51d04410dd
tree39721755931a8d4c1c74020b1372d4dcacebdd58
parent08ab9580726edcc12019d2097b56b88de1142ca7
tools/nolibc: support UBSAN on gcc

The UBSAN implementation in gcc requires a slightly different function
attribute to skip instrumentation.

Extend __nolibc_no_sanitize_undefined to also handle gcc.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20260408-nolibc-gcc-15-v1-2-330d0c40f894@weissschuh.net
tools/include/nolibc/compiler.h