Commit 0263e020 authored by Alberto Escolar Piedras's avatar Alberto Escolar Piedras Committed by Carles Cufi
Browse files

toolchain gcc: Provide a no UBSAN attribute macro



Provide a macro to set the no undefined sanitizer
attribute in symbols.
To allow skipping its checks/modifications in symbols
in which it is known to either cause trouble or report
false positives.

Signed-off-by: default avatarAlberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
parent 3147243c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -643,6 +643,12 @@ do { \
#define __noasan /**/
#endif

#if defined(CONFIG_UBSAN)
#define __noubsan __attribute__((no_sanitize("undefined")))
#else
#define __noubsan
#endif

/**
 * @brief Function attribute to disable stack protector.
 *