On 10/08/17(Thu) 18:21, Mark Kettenis wrote: > > Date: Thu, 10 Aug 2017 12:10:27 -0400 > > From: Martin Pieuchot <m...@openbsd.org> > > > > Building a profiled binary, using -pg with clang doesn't work as > > expected. A gmon.out is properly generated when the binary exit, > > but it doesn't include any profiling data. > > Seems to work when I pass -nopie on the command line. Did this ever > work since we switched to static PIE?
Yes, it works with GCC, I use it all the time.