[PATCH 03/10] ifuncmain9.c: Return EXIT_UNSUPPORTED for GCC 5 or older
H.J. Lu
hjl.tools@gmail.com
Fri Dec 13 07:13:03 GMT 2024
Since elf/ifuncmain9.c fails at run-time when compiled with GCC 5, return
EXIT_UNSUPPORTED for GCC 5 or older.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
elf/ifuncmain9.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/elf/ifuncmain9.c b/elf/ifuncmain9.c
index 43011452b7..1f34c81dc2 100644
--- a/elf/ifuncmain9.c
+++ b/elf/ifuncmain9.c
@@ -20,8 +20,9 @@
#include <config.h>
-# include <stdbool.h>
-# include <stdio.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <support/test-driver.h>
/* Do not use the test framework, so that the process setup is not
disturbed. */
@@ -53,6 +54,10 @@ static int magic (void) __attribute__ ((ifunc ("resolver")));
int
main (void)
{
+#if !__GNUC_PREREQ (6, 0)
+ return EXIT_UNSUPPORTED;
+#endif
+
bool errors = false;
if (implementation_called != 0)
--
2.47.1
More information about the Libc-alpha
mailing list