1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-01-12 03:10:15 +00:00

arm/trusted-services: use zero padding for unions

GCC15 changed the behavior with how unions are initalized, which is
causing an issue with mbedtls in TS.  Change the behavior to the
previous way of doing things until the fix has been released.

Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Jon Mason
2025-06-12 09:05:41 -04:00
parent 4070798969
commit 6fad8cc833

View File

@@ -31,6 +31,10 @@ INSANE_SKIP:${PN}-dev += "ldflags"
# Trusted Services SPs do not compile with clang
TOOLCHAIN = "gcc"
# FIXME - there is an issue with mbedtls unions and gcc15. It has been
# fixed in commit 4c26d7d54cf5f5dc1e63e0dd0b902fda05e7063f but that has
# not been released yet. Work around this issue here until that is out
TARGET_CFLAGS += "-fzero-init-padding-bits=unions"
# FORTIFY_SOURCE is a glibc feature. Disable it for all SPs as these do not use glibc.
TARGET_CFLAGS:remove = "-D_FORTIFY_SOURCE=2"