From: "Theo de Raadt" Subject: Re: gprof: Profiling a multi-threaded application (revived) To: Mark Kettenis Cc: Yuichiro NAITO , tech@openbsd.org, guenther@openbsd.org, mpi@openbsd.org Date: Thu, 12 Jun 2025 08:16:31 -0600 Mark Kettenis wrote: > > Date: Fri, 06 Jun 2025 17:43:10 +0900 (JST) > > From: Yuichiro NAITO > > Hi Yuichiro, > > This is changing the interface between libc and libpthread. This is > tricky. Minimally this needs libc and libpthread minor bumps. But it > is more complicated than that and I have trouble wrapping my head > around exactly how that works again. guenther@ should know more. I am not concerned, because profiling only works in static binaries. In dynamic binaries, I don't believe any of this code is active because gcrt0 doesn't get linked in to create the conditions. As for the cranks. It adds a symbol between the two libraries, so it needs minor cranks. But libc needs a major bump for removal of a different symbol, so we'll just major bump both libraries. And that ends any concern there, I think.