[PATCH] gprof: fix testsuite with older glibc
Jan Beulich
jbeulich@suse.com
Tue Feb 10 14:42:16 GMT 2026
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.
--- a/gprof/testsuite/tst-gmon.c
+++ b/gprof/testsuite/tst-gmon.c
@@ -45,6 +45,7 @@ f3 (int count)
}
}
+__attribute__ ((section (".text.main"))) /* See glibc bug 28153. */
int
main (void)
{
More information about the Binutils
mailing list