]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: fix C23 issue in vers7 test
authorSam James <sam@gentoo.org>
Wed, 14 May 2025 05:38:56 +0000 (06:38 +0100)
committerSam James <sam@gentoo.org>
Fri, 16 May 2025 06:08:27 +0000 (07:08 +0100)
This test is UNSUPPORTED on arm64 with GCC 15 (which defaults to -std=gnu23)
because it now prototypes "no arguments".

PR ld/32546
* ld-elfvers/vers7.c: Fix function definitions for C23.

(cherry picked from commit 6ebd38072de4a77a2d28f04a79b64ab570532e98)

ld/testsuite/ld-elfvers/vers7.c

index 54316c9242978b087b65c3dce9ceaf804ef25979..a4fb2543fcf50f2128c9bdd31f42ab1ca397f3ee 100644 (file)
@@ -2,8 +2,8 @@
  * Test program that goes with test7.so
  */
 
-extern int hide_a();
-extern int show_b();
+extern int hide_a(int e);
+extern int show_b(int e);
 
 int
 main()