From owner-freebsd-current@FreeBSD.ORG Mon May 28 22:53:35 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA4ED16A597 for ; Mon, 28 May 2007 22:53:35 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.freebsd.org (Postfix) with ESMTP id 63AC713C447 for ; Mon, 28 May 2007 22:53:35 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by wx-out-0506.google.com with SMTP id h28so1151199wxd for ; Mon, 28 May 2007 15:53:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=G0V9YQwcNRbcA05EpmiThMOqwfLovS/vmLClT1U9W1ct+eb3mVwwuUGvxU4lej6s3n/mzhZbG/iJ96s2i2EJlbf6DGWDgLBcui1fAXfzX7Ab23oG2xCrtCPpc/MPP6wjqP3+NgMJQmGhDlolJRkQFtuNWjkxo+xxDlqmlFFS3LI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=Zj+dhAhWNZ4K2remigRiDbnrJY19vaNhY4g+3zvCz7XSGusvXjdACyOhGVmTNIDbCTMTfwTm3FRs2/OwdoG7Rp2ek1F4IpsxEoN5qHrzsdl0mLmh5nnSWBtc4ckHZ9KfATx7FudMZgtSTk+3lP5FM7nO0o/rmyFnjkNjcRabIlc= Received: by 10.70.42.20 with SMTP id p20mr9146560wxp.1180392814520; Mon, 28 May 2007 15:53:34 -0700 (PDT) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id i11sm7646232wxd.2007.05.28.15.53.33; Mon, 28 May 2007 15:53:33 -0700 (PDT) Date: Mon, 28 May 2007 18:53:18 -0400 From: Alexander Kabaev To: Giorgos Keramidas Message-ID: <20070528185318.1154742e@kan.dnsalias.net> In-Reply-To: <20070528181856.GA81757@kobe.laptop> References: <20070528181856.GA81757@kobe.laptop> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig__j27mJv7PDKZuGYtVBvNu0N; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-current@freebsd.org Subject: Re: ldd broken for profiling binaries? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2007 22:53:35 -0000 --Sig__j27mJv7PDKZuGYtVBvNu0N Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 28 May 2007 21:18:57 +0300 Giorgos Keramidas wrote: > ldd seems to be broken for profiling binaries, and the profiling > binaries built with gcc42 seem to be unusable here: >=20 > ,----------------------------------------------------------------------- > | $ cat -n foo.c > | 1 #include > | 2 =20 > | 3 int > | 4 main(void) > | 5 { > | 6 int k; > | 7 =20 > | 8 for (k =3D 0; k < 10000; k++) > | 9 printf("Hello world\n"); > | 10 return 0; > | 11 } > | $ DEBUG_FLAGS=3D'-pg' ; CFLAGS=3D'' ; export DEBUG_FLAGS CFLAGS > | $ make cleandir > | rm -f foo foo.o > | rm -f .depend GPATH GRTAGS GSYMS GTAGS > | $ make cleandir > | rm -f foo foo.o > | rm -f .depend GPATH GRTAGS GSYMS GTAGS > | $ make > | Warning: Object directory not changed from original /tmp/foo > | cc -pg -c foo.c > | cc -pg -o foo foo.o > | $ ./foo > | /libexec/ld-elf.so.1: ./foo: Unexpected inconsistency: dependency > libgcc_s.so.1 not found | $ ldd foo > | foo: > | /libexec/ld-elf.so.1: foo: Unexpected inconsistency: dependency > libgcc_s.so.1 not found | foo: exit status 1 > | $ > `----------------------------------------------------------------------- >=20 linker pulled in libgcc_s.so.1 symbols, but somehow managed not to record dependency on lib. This might be a bug in binutils, but someone needs to look close to be sure. I think I'll disable shared libgcc for profiled builds for now. --=20 Alexander Kabaev --Sig__j27mJv7PDKZuGYtVBvNu0N Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGW11eQ6z1jMm+XZYRApjqAKCKgt1Wbjv6VtZzeUk1Ir9jALui5QCfSQlV G0RXVTILl9YVDJyKBqv/iCQ= =B4mv -----END PGP SIGNATURE----- --Sig__j27mJv7PDKZuGYtVBvNu0N--