Blackfin FDPIC patch 4/N: dl_debug_state

Alexandre Oliva aoliva at redhat.com
Mon Oct 9 02:55:21 UTC 2006


On Oct  7, 2006, Mike Frysinger <vapier at gentoo.org> wrote:

> On Wednesday 04 October 2006 15:29, Alexandre Oliva wrote:
>> On Oct  4, 2006, Bernd Schmidt <bernds_cb1 at t-online.de> wrote:
>> > Another piece from Alexandre's original patch; this one changes one of
>> > ld.so's functions to use hidden visibility.  I have to admit I'm not
>> > entirely clear on what would happen if we didn't do this.
>> 
>> We'd need a global function descriptor for this function, which IIRC
>> triggered issues with relocation bootstrapping.
>> 
>> Given that we don't want _dl_debug_state to be overridable (otherwise
>> making it protected doesn't make sense), and I don't see the point of
>> even making it visible, perhaps we just want _dl_debug_state to be
>> hidden itself?

> glibc seems to export the symbol and then create an internal alias for the 
> rest of the ldso to refer to ... i think that would work for us as well

Err...  Isn't this an exact description of the patch you posted, that
IIRC I proposed more than a year ago?

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Secretary for FSF Latin America        http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



More information about the uClibc mailing list