From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 19 18:41:53 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1F34106564A; Sun, 19 Sep 2010 18:41:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6DDB48FC18; Sun, 19 Sep 2010 18:41:52 +0000 (UTC) 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 o8JIfnHN084086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 19 Sep 2010 21:41:49 +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.4/8.14.4) with ESMTP id o8JIfngB045607; Sun, 19 Sep 2010 21:41:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o8JIfkbq045606; Sun, 19 Sep 2010 21:41:46 +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: Sun, 19 Sep 2010 21:41:46 +0300 From: Kostik Belousov To: Jeremie Le Hen Message-ID: <20100919184146.GE2389@deviant.kiev.zoral.com.ua> References: <20100803150545.GH14016@felucia.tataz.chchile.org> <20100803114651.651e0ea4@kan.dnsalias.net> <20100805191446.GJ14016@felucia.tataz.chchile.org> <20100919081406.GH6864@felucia.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qsoMWdMv/ifdm7CC" Content-Disposition: inline In-Reply-To: <20100919081406.GH6864@felucia.tataz.chchile.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_40, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: kan@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: [PATCH] Add -lssp_nonshared to GCC's LIB_SPEC unconditionally X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2010 18:41:54 -0000 --qsoMWdMv/ifdm7CC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 19, 2010 at 10:14:06AM +0200, Jeremie Le Hen wrote: > Hi Alexander, >=20 > On Thu, Aug 05, 2010 at 09:14:46PM +0200, Jeremie Le Hen wrote: > > On Tue, Aug 03, 2010 at 11:46:51AM -0400, Alexander Kabaev wrote: > > > > > > I have no objection, but think we should cave in and investigate the > > > possibility of using linker script wrapping libc.so in FreeBSD-9.0: > > >=20 > > > Below is Linux' counterpart: > > >=20 > > > /* GNU ld script > > > Use the shared library, but some functions are only in > > > the static library, so try that secondarily. */ > > > OUTPUT_FORMAT(elf32-i386) > > > GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED > > > ( /lib/ld-linux.so.2 ) ) > >=20 > > Ok. For now can you commit the proposed modification. I'll try to make > > a patch with your proposal. >=20 > The attached patch does two things: It modifies bsd.lib.mk to support ld > scripts for shared libraries and adds such a script to replace the > /usr/lib/libc.so symlink to /lib/libc.so.X. >=20 > Basically, SHLIB_LDSCRIPT is defined in lib/libc/Makefile and points to > the file containing the script itself: > GROUP ( @@SHLIB@@ /usr/lib/libssp_nonshared.a ) >=20 > During make install, @@SHLIB@@ will be replaced by the real path of the > shared library. You did not included $FreeBSD$ tag into libc.so script. I think it would be useful to have. Could you, please, comment why the script is not installed during the world build stage ? My question is, would the buildworld use the script for linkage ? --qsoMWdMv/ifdm7CC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkyWWWoACgkQC3+MBN1Mb4iKZQCgj6tfKlGBmlP9RX1Q3lwLBK7M 7jsAnjhys9Nn5gGMrnCV0gHnxWjSFPll =xRK1 -----END PGP SIGNATURE----- --qsoMWdMv/ifdm7CC--