Re: Bits from dpkg developers - dpkg 1.16.1
On Tue, Oct 4, 2011 at 11:33 AM, Roger Leigh <email@example.com> wrote:
> On Tue, Oct 04, 2011 at 09:29:27AM +0200, Bastien ROUCARIES wrote:
>> On Mon, Oct 3, 2011 at 8:33 PM, Simon McVittie <firstname.lastname@example.org> wrote:
>> > On Mon, 03 Oct 2011 at 17:11:21 +0200, Bastien ROUCARIES wrote:
>> >> On Mon, Oct 3, 2011 at 3:02 PM, Florian Weimer <email@example.com> wrote:
>> >> > Not necessarily. -fPIC and -fPIE force calls to global functions
>> >> > defined in the same translation unit to go through the PLT. They
>> >> > aren't translated to direct IP-relative calls. For -fPIC, this is
>> >> > required by the ELF specification (no kidding, this might seem strange
>> >> > today).
>> >> Could we add a gcc flag and be non conformant ? I suppose it is only
>> >> for using LD_PRELOAD.
>> > -Bsymbolic, I think? GLib uses this to speed up internal calls, instead of
>> > the hacks with functions-having-two-names that it used to use.
>> > With either solution, if you want to LD_PRELOAD (as for GLib's refdbg tool)
>> > you have to have a second copy of GLib compiled to not do that, like
>> > libglib2.0-refdbg in Debian.
>> Unbuntu use Bsymbolic by default and they are only a few faillure.
>> Time to get this in debian too ?
> It would break overriding of weak symbols, would it not?
Yes it will break but at least unbuntu have sorted this kind of bug
And weak symbols are pretty rare in the tree.
But I tend to agree that a Bsymbolic-nonweak will be the best see for
instance an old patch
http://www.cygwin.com/ml/binutils/2005-07/msg00104.html that tend to
reduce ooo relocation by 20%
> .''`. Roger Leigh
> : :' : Debian GNU/Linux http://people.debian.org/~rleigh/
> `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
> `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
> To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
> Archive: 20111004093323.GC11097@codelibre.net">http://lists.debian.org/20111004093323.GC11097@codelibre.net