From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 27 15:45:23 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 56E42106564A; Mon, 27 Sep 2010 15:45:23 +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 7AB6F8FC1B; Mon, 27 Sep 2010 15:45:21 +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 o8RFj1Yj095554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 27 Sep 2010 18:45:02 +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 o8RFj1ZK073964; Mon, 27 Sep 2010 18:45:01 +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 o8RFiv49073960; Mon, 27 Sep 2010 18:44:57 +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: Mon, 27 Sep 2010 18:44:57 +0300 From: Kostik Belousov To: Jeremie Le Hen Message-ID: <20100927154457.GJ43070@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> <20100919184146.GE2389@deviant.kiev.zoral.com.ua> <20100920162925.GL6864@felucia.tataz.chchile.org> <20100920192708.GK2389@deviant.kiev.zoral.com.ua> <20100927094651.GB57265@felucia.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kr14OxHsRwZHHqxS" Content-Disposition: inline In-Reply-To: <20100927094651.GB57265@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=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, 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: Mon, 27 Sep 2010 15:45:23 -0000 --kr14OxHsRwZHHqxS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 27, 2010 at 11:46:51AM +0200, Jeremie Le Hen wrote: > Hi Kostik, >=20 > On Mon, Sep 20, 2010 at 10:27:08PM +0300, Kostik Belousov wrote: > >=20 > > You make the script only useful for the stack protection. If build proc= ess > > does not use libc.so script, but installed system does, you > > - require to maintain two places where (not much) hypothetical libc > > changes should go; > > - make it very puzzling to debug the issues with the build of the userm= ode. > >=20 > > Please, do this in the consistent manner, so that the script can be ado= pted > > for other uses. >=20 > I've updated the patch. I think it will fulfill your requirements. Now > the ld script is generated on the fly during the install step. >=20 > The patch probably needs some polishing such as removing debugging > leftovers. Can you tell me if it looks of for you now? Hardcoding /usr/lib as the path to the library in the script looks problema= tic. For the buidlworld, you are linking resulting binaries with the host librar= y, instead of the buildworld-produced one. For lib32, it makes non-working combination of 32/64 bit. --kr14OxHsRwZHHqxS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkygu/gACgkQC3+MBN1Mb4i9rACgmjDeN0w5dXuPCX8D8dwbU8Bg HBwAoJ8oId9CD5V+24/NyCzZFdqDZECQ =VOWz -----END PGP SIGNATURE----- --kr14OxHsRwZHHqxS--