This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |