From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu1BT-0000eJ-B3 for qemu-devel@nongnu.org; Wed, 04 Nov 2015 11:45:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu1BN-00023m-IJ for qemu-devel@nongnu.org; Wed, 04 Nov 2015 11:45:15 -0500 Received: from lhrrgout.huawei.com ([194.213.3.17]:21033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu1BN-0001xH-36 for qemu-devel@nongnu.org; Wed, 04 Nov 2015 11:45:09 -0500 From: Claudio Fontana Message-ID: <563A360E.3060506@huawei.com> Date: Wed, 4 Nov 2015 17:45:02 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] enable-gprof configuration option issue? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Ajo Jose Panoor , "qemu-devel@nongnu.org" Hello, we are trying to use good old gprof to profile the QEMU process, and it seems to work when directly passing "-O0 -pg" using --extra-cflags, while it does not seem to work when using "--enable-gprof". The error we get when using --enable-gprof is the following: ld: gcrt1.o: relocation R_X86_64_32S against `__libc_csu_fini' can not be used when making a shared object; recompile with -fPIC gcrt1.o: could not read symbols: Bad value We got this on a few X86 boxes with different distros, in my case I have Slackware-14.1 64bit, ld 2.23.52.0.1.20130226, gcc 4.8.2 Is the expectation that one should pass "-pg" directly? Thanks! Ciao, Claudio