]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc: Enable memory tagging for aarch64
authorKhem Raj <raj.khem@gmail.com>
Sun, 23 May 2021 14:45:32 +0000 (07:45 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 May 2021 21:35:54 +0000 (22:35 +0100)
Glibc on aarch64 has a memory tagging option that can be enabled
via GLIBC_TUNABLES="glibc.mem.tagging=$SOMETHING" when glibc
is built with memory tagging support and the kernel/HW supports
MTE. There should be no side effects unless the user turns it
on with approprate HW support

Linux 5.4 headers and binutils 2.33.1 or newer is needed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glibc/glibc_2.33.bb

index 6bdfdfcd4af65a5812fae59684b5aacfa2921238..b70cd0978a1fcee0955753de3059ca1526978024 100644 (file)
@@ -90,6 +90,7 @@ EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
 
 EXTRA_OECONF_append_x86 = " --enable-cet"
 EXTRA_OECONF_append_x86-64 = " --enable-cet"
+EXTRA_OECONF_append_aarch64 = " --enable-memory-tagging"
 
 PACKAGECONFIG ??= "nscd"
 PACKAGECONFIG[nscd] = "--enable-nscd,--disable-nscd"