On Mon, 03 Oct 2011 at 17:11:21 +0200, Bastien ROUCARIES wrote:
> On Mon, Oct 3, 2011 at 3:02 PM, Florian Weimer <f...@deneb.enyo.de> 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.

    S


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20111003183344.ga25...@reptile.pseudorandom.co.uk

Reply via email to