From owner-freebsd-amd64@FreeBSD.ORG Fri Sep 26 17:10:25 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CA931065686 for ; Fri, 26 Sep 2008 17:10:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id D5E1F8FC1F for ; Fri, 26 Sep 2008 17:10:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1KjGpi-0007w0-FB; Fri, 26 Sep 2008 20:10:22 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m8QHAJ89081248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Sep 2008 20:10:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m8QHAJSS087461; Fri, 26 Sep 2008 20:10:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id m8QHAJKe087460; Fri, 26 Sep 2008 20:10:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 26 Sep 2008 20:10:18 +0300 From: Kostik Belousov To: Dieter Message-ID: <20080926171018.GX47828@deviant.kiev.zoral.com.ua> References: <20080926141429.GW47828@deviant.kiev.zoral.com.ua> <200809261513.PAA12380@sopwith.solgatos.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Sl61CI1LVv3DiL8h" Content-Disposition: inline In-Reply-To: <200809261513.PAA12380@sopwith.solgatos.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1KjGpi-0007w0-FB b458169fc36f74da4f6e015d75b0f3d4 X-Terabit: YES Cc: freebsd-amd64@freebsd.org Subject: Re: amd64/127640: GCC will not build shared libraries with -fprofile-generate on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2008 17:10:25 -0000 --Sl61CI1LVv3DiL8h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 26, 2008 at 08:13:20AM +0100, Dieter wrote: > > Note that libgcov needs to be recompiled with -fPIC. > > The R_X86_64_32 issue is systematic on amd64. When you build a shared > > object, better make sure that all .o are compiled with -fPIC. >=20 > So shouldn't the system come with both static and shared versions > of all the libraries? The system does. OP linked system supplied libgcov.a into .so. Should /usr/lib/libgcov.a be built with -fPIC, is debatable. I think it is overkill for most other static libs from /usr/lib. Note that there are reasonable arguments against supplying static system libraries like libc and libpthread. --Sl61CI1LVv3DiL8h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkjdF3oACgkQC3+MBN1Mb4iSKgCcD+DI2MFwVlCoFzz/CW9A8g5p 8AQAnjIRPvr9UpTDEiH/WOYwNPXZ4vru =ZXUh -----END PGP SIGNATURE----- --Sl61CI1LVv3DiL8h--