aarch64: blacklist gcc prior to 5.1
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Jan 2021 20:25:47 +0000 (15:25 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Jan 2021 20:31:08 +0000 (15:31 -0500)
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 <mathieu.desnoyers@efficios.com>
Change-Id: I72993e446f7f54f39d0f360273b68f194be8c13a

wrapper/compiler.h

index b9f8c51861e7c20da983777eafde536a3f185312..7413891961f31c2fbc40104bb2b7284cc5b4808c 100644 (file)
 #   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
 
 /*
This page took 0.026951 seconds and 4 git commands to generate.