From: Jan Beulich Date: Fri, 13 Feb 2026 09:19:39 +0000 (+0100) Subject: gprof: fix testsuite with older glibc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1319410a1e9d857f15c9019a87d6d4b62fa6d39a;p=thirdparty%2Fbinutils-gdb.git 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 --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) {