On Thu, 10 Aug 2017 12:27:10 -0400, Martin Pieuchot wrote: > 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.
Don't we implicitly disable PIE for -pg on gcc? Seems like the same will be needed for clang. - todd