From: Mathieu Desnoyers Date: Fri, 22 Jan 2021 20:25:47 +0000 (-0500) Subject: aarch64: blacklist gcc prior to 5.1 X-Git-Tag: v2.13.0-rc1~54 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=be06402dbdbea2f3394e60ec15c5d3356e2be416;hp=cf41b81e4a59a36acef130dcaf34defd901eb870 aarch64: blacklist gcc prior to 5.1 Linux aarch64 requires GCC 5.1 or better because prior versions perform unsafe access to deallocated stack. Some Linux distributions may have backported the fix, but it was never released into earlier upstream gcc versions. Link: https://lwn.net/Articles/842122/ Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293 Signed-off-by: Mathieu Desnoyers Change-Id: I72993e446f7f54f39d0f360273b68f194be8c13a --- diff --git a/include/wrapper/compiler.h b/include/wrapper/compiler.h index 4efe0cfa..e0bd33f4 100644 --- a/include/wrapper/compiler.h +++ b/include/wrapper/compiler.h @@ -25,6 +25,16 @@ # error Your gcc version produces clobbered frame accesses # endif # endif + +/* + * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293 + */ +# ifdef __aarch64__ +# if GCC_VERSION < 50100 +# error Your gcc version performs unsafe access to deallocated stack +# endif +# endif + #endif /*