[binutils-gdb] gprof: fix testsuite with older glibc
Jan Beulich
jbeulich@sourceware.org
Fri Feb 13 09:22:50 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1319410a1e9d857f15c9019a87d6d4b62fa6d39a
commit 1319410a1e9d857f15c9019a87d6d4b62fa6d39a
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Feb 13 10:19:39 2026 +0100
gprof: fix testsuite with older glibc
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.
Diff:
---
gprof/testsuite/tst-gmon.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gprof/testsuite/tst-gmon.c b/gprof/testsuite/tst-gmon.c
index 0efc5c791b0..37b37af33b0 100644
--- 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-cvs
mailing list