New warnings: INT redefined
Jakub Jelinek
jakub@redhat.com
Tue Feb 5 11:57:00 GMT 2002
On Tue, Feb 05, 2002 at 11:28:17AM -0800, Ulrich Drepper wrote:
> Jakub Jelinek <jakub@redhat.com> writes:
>
> > I'd say it would be much cleaner if elf/Makefile added -DRTLD_OBJECT
> > to all ld.so only objects and if ldsodefs.h and maybe other headers used:
> >
> > extern void _dl_debug_printf (const char *fmt, ...)
> > __attribute__ ((__format__ (__printf__, 1, 2)));
> > extern void _dl_debug_printf_internal (const char *fmt, ...)
> > __attribute__ ((__format__ (__printf__, 1, 2)));
> > #ifdef RTLD_OBJECT
> > _dl_debug_printf(...) _dl_debug_printf_internal(__VA_ARGS__)
> > #endif
>
> This isn't the best solution. Note that all this must also later work
> for the libc.so itself. I just started with ld.so.
>
> So I guess INTNAME (or maybe better INTUSE, use <-> def) is better.
But either a function is defined in ld.so, in which case only rtld only
objects should use the _internal variant, or it is defined in libc.so,
in which case only non-rtld objects should use it.
Jakub
More information about the Libc-hacker
mailing list