From 64f0145cb4ac198391fd552f98fcc0510d6acaa1 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 28 Apr 2026 12:40:08 +0200 Subject: [PATCH] ARM mbedtls: prevent compilation of self_test functions They were discarded by the linker GC as they weren't used so far, but better to make it explicit. --- common/mbedtls/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/mbedtls/config.h b/common/mbedtls/config.h index 954817edc..d765574ed 100644 --- a/common/mbedtls/config.h +++ b/common/mbedtls/config.h @@ -1447,7 +1447,9 @@ * * Enable the checkup functions (*_self_test). */ +#ifndef ON_DEVICE #define MBEDTLS_SELF_TEST +#endif // ON_DEVICE /** * \def MBEDTLS_SHA256_SMALLER