From owner-svn-src-head@FreeBSD.ORG Tue Jul 28 07:35:24 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B87A106566B; Tue, 28 Jul 2009 07:35:24 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by mx1.freebsd.org (Postfix) with ESMTP id 71C228FC21; Tue, 28 Jul 2009 07:35:20 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 071AC940150; Tue, 28 Jul 2009 09:35:14 +0200 (CEST) Received: from endor.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g21.free.fr (Postfix) with ESMTP id 2E60994012A; Tue, 28 Jul 2009 09:35:12 +0200 (CEST) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 0762436313; Tue, 28 Jul 2009 07:34:36 +0000 (UTC) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id D41B3A22C8; Tue, 28 Jul 2009 07:34:35 +0000 (UTC) Date: Tue, 28 Jul 2009 09:34:35 +0200 From: Jeremie Le Hen To: Alexander Kabaev Message-ID: <20090728073435.GD64335@felucia.tataz.chchile.org> References: <200907142119.n6ELJDG1071501@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200907142119.n6ELJDG1071501@svn.freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r195697 - in head: . contrib/gcc/config gnu/lib/libgcc gnu/lib/libssp/libssp_nonshared lib/libc lib/libc/sys libexec/rtld-elf share/mk X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 07:35:24 -0000 On Tue, Jul 14, 2009 at 09:19:13PM +0000, Alexander Kabaev wrote: > Author: kan > Date: Tue Jul 14 21:19:13 2009 > New Revision: 195697 > URL: http://svn.freebsd.org/changeset/base/195697 > > Log: > Second attempt at eliminating .text relocations in shared libraries > compiled with stack protector. > > Use libssp_nonshared library to pull __stack_chk_fail_local symbol into > each library that needs it instead of pulling it from libc. GCC > generates local calls to this function which result in absolute > relocations put into position-independent code segment, making dynamic > loader do extra work every time given shared library is being relocated > and making affected text pages non-shareable. Wow, this is a nice catch. I'm glad you figured it out before the release. Thanks! Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >