]> git.ipfire.org Git - thirdparty/gcc.git/commit
hwasan: Check if Intel LAM_U57 is enabled
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 9 Jan 2024 16:46:59 +0000 (08:46 -0800)
committerH.J. Lu <(no_default)>
Thu, 18 Jan 2024 13:03:57 +0000 (05:03 -0800)
commitaf66955000e38eeba5992641f98a4749cfeb8854
tree80aefd4532c4bf462d5d66531d4f6039ddc1260a
parentac913d5d518604c5baf7274bed76e3ff8f3e4c08
hwasan: Check if Intel LAM_U57 is enabled

When -fsanitize=hwaddress is used, libhwasan will try to enable LAM_U57
in the startup code.  Update the target check to enable hwaddress tests
if LAM_U57 is enabled.  Also compile hwaddress tests with -mlam=u57 on
x86-64 since hwasan requires LAM_U57 on x86-64.

* lib/hwasan-dg.exp (check_effective_target_hwaddress_exec):
Return 1 if Intel LAM_U57 is enabled.
(hwasan_init): Add -mlam=u57 on x86-64.
gcc/testsuite/lib/hwasan-dg.exp