ifuncmain9.c: Return EXIT_UNSUPPORTED for GCC 5.4 or older

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>
This commit is contained in:
H.J. Lu 2024-12-13 05:22:47 +08:00
parent ed377c952a
commit 65817569ad

View File

@ -20,9 +20,10 @@
#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