]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
gcc-sanitizers.inc: Workaround for aarch64
authorThomas Roos <throos@amazon.de>
Wed, 22 Jan 2025 12:44:07 +0000 (13:44 +0100)
committerRoss Burton <ross.burton@arm.com>
Thu, 23 Jan 2025 11:52:26 +0000 (11:52 +0000)
commit12442b9b6df06317174066854935b1d6a4f1865d
tree234b11e9ba57bac2975870dc37adbd165ddf6ff7
parentee674a0494a667a9fd2a3691618f736f6a58fb76
gcc-sanitizers.inc: Workaround for aarch64

When using the -fsanitize=address  CXX_FLAG for a program compiled for
aarch64 / arm64

This is happing:
MemorySanitizer: CHECK failed: sanitizer_allocator_primary64.h:133 "((kSpaceBeg))
 == ((address_range.Init(TotalSpaceSize, PrimaryAllocatorName, kSpaceBeg)))"
 (0xe00000000000, 0xfffffffffffffff4) (tid=51745)

With -DSANITIZER_CAN_USE_ALLOCATOR64=0 this is not happening and
potenial bugs are detected.

ARM32 does not require this patch.

More info about the issue in this thread:
https://github.com/llvm/llvm-project/issues/65144

Signed-off-by: Thomas Roos <throos@amazon.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@arm.com>
meta/recipes-devtools/gcc/gcc-sanitizers.inc