]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ifuncmain9.c: Return EXIT_UNSUPPORTED for GCC 5.4 or older
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Dec 2024 21:22:47 +0000 (05:22 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Dec 2024 12:15:52 +0000 (20:15 +0800)
Since elf/ifuncmain9.c fails at run-time when compiled with GCC 5.4 or
older (PR ipa/81128), return EXIT_UNSUPPORTED for GCC 5.4 or older.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
elf/ifuncmain9.c

index 43011452b75fb5b6bcf0bea5cb855c9ed1c58fc9..654beeadfe6b14a6091060fa8e612fa513ccd33e 100644 (file)
 
 #include <config.h>
 
-# include <stdbool.h>
-# include <stdio.h>
+#include <stdbool.h>
+#include <stdio.h>
 
+#if __GNUC_PREREQ (5, 5)
 /* Do not use the test framework, so that the process setup is not
    disturbed.  */
 
@@ -90,3 +91,12 @@ main (void)
 
   return errors;
 }
+#else
+#include <support/test-driver.h>
+
+int
+main (void)
+{
+  return EXIT_UNSUPPORTED;
+}
+#endif