Prepending underscores to symbol names in dlsym() (commit 20613)

Mike Frysinger vapier at gentoo.org
Tue Jan 8 19:23:54 UTC 2008


On Tuesday 08 January 2008, Mike Frysinger wrote:
> On Tuesday 08 January 2008, Will Newton wrote:
> > On Jan 8, 2008 10:14 AM, Paul Mundt <lethal at linux-sh.org> wrote:
> > > > > +++ trunk/uClibc/ldso/include/dl-defs.h 2007-12-03 22:46:53 UTC
> > > > > (rev 20613) @@ -175,4 +175,10 @@
> > > > >  # define DL_MALLOC_ALIGN (__WORDSIZE / 8)
> > > > >  #endif
> > > > >
> > > > > +#ifdef __UCLIBC_NO_UNDERSCORES__
> > > > > +#define __C_SYMBOL_PREFIX__ ""
> > > > > +#else
> > > > > +#define __C_SYMBOL_PREFIX__ "_"
> > > > > +#endif
> > > > > +
> > > > >  #endif /* _LD_DEFS_H */
> > >
> > > Additionally, this sort of backwards logic is precisely why having
> > > inverted ifdef logic is absolute brain-damage.
> >
> > Agreed.
>
> i'll drop the _NO_ and invert the ifdefs, but that doesnt involve actually
> changing any of the logic of how things work which still means the current
> code is correct

i'll just go ahead and blame glibc here.  its configure.in sets up 
NO_UNDERSCORE which proliferated into the uClibc __UCLIBC_NO_UNDERSCORES__.  
not Bernd's fault for rolling with this ;).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20080108/44dd086f/attachment-0002.pgp 


More information about the uClibc mailing list