Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2009 09:34:35 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Alexander Kabaev <kan@FreeBSD.org>
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
Message-ID:  <20090728073435.GD64335@felucia.tataz.chchile.org>
In-Reply-To: <200907142119.n6ELJDG1071501@svn.freebsd.org>
References:  <200907142119.n6ELJDG1071501@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090728073435.GD64335>