From: H.J. Lu Date: Thu, 12 Dec 2024 21:22:47 +0000 (+0800) Subject: ifuncmain9.c: Return EXIT_UNSUPPORTED for GCC 5.4 or older X-Git-Tag: glibc-2.41~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65817569adf011b66d197c773df2d9337da5adb3;p=thirdparty%2Fglibc.git 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 Reviewed-by: Sam James --- diff --git a/elf/ifuncmain9.c b/elf/ifuncmain9.c index 43011452b7..654beeadfe 100644 --- a/elf/ifuncmain9.c +++ b/elf/ifuncmain9.c @@ -20,9 +20,10 @@ #include -# include -# include +#include +#include +#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 + +int +main (void) +{ + return EXIT_UNSUPPORTED; +} +#endif