]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gprof: fix testsuite with older glibc
authorJan Beulich <jbeulich@suse.com>
Fri, 13 Feb 2026 09:19:39 +0000 (10:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Feb 2026 09:19:39 +0000 (10:19 +0100)
It is quite sad that 2.46 has again shipped with this breakage. Short of
those responsible taking care, use the workaround that was suggested in
https://sourceware.org/pipermail/binutils/2025-April/140316.html.

gprof/testsuite/tst-gmon.c

index 0efc5c791b0190477f195efb6b61acbb37636765..37b37af33b0bdeb514b6e7187ecb138ac72f88ec 100644 (file)
@@ -45,6 +45,7 @@ f3 (int count)
     }
 }
 
+__attribute__ ((section (".text.main"))) /* See glibc bug 28153.  */
 int
 main (void)
 {