From 42d2676e7ccdad60b91f1f90855db164c833ca9f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 23 Nov 1995 04:53:06 +0000 Subject: Wed Nov 22 12:37:39 1995 Roland McGrath * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias for errno. * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as alias for _IO_vfprintf. * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed. * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use __fpu_control instead of ___fpu_control. * sysdeps/unix/sysv/linux/i386/ieee_fpu.c (___fpu_control): Renamed to __fpu_control. * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise. * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise. * elf/dl-minimal.c: New file. * elf/Makefile (rtld-routines): Add dl-minimal. * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail): Functions moved to dl-minimal.c. * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc, sigjmp_save, longjmp): Likewise. * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize to &_end, regardless of PIC. * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn. --- elf/rtld.c | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) (limited to 'elf/rtld.c') diff --git a/elf/rtld.c b/elf/rtld.c index cf9517d527..62d6488767 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -381,53 +381,3 @@ void _dl_r_debug_state (void) { } - -/* Define our own stub for the localization function used by strerror. - English-only in the dynamic linker keeps it smaller. */ - -char * -__dgettext (const char *domainname, const char *msgid) -{ - assert (domainname == _libc_intl_domainname); - return (char *) msgid; -} -weak_symbol (__dgettext) -weak_alias (__dgettext, dgettext) - -#ifndef NDEBUG - -/* Define (weakly) our own assert failure function which doesn't use stdio. - If we are linked into the user program (-ldl), the normal __assert_fail - defn can override this one. */ - -void -__assert_fail (const char *assertion, - const char *file, unsigned int line, const char *function) -{ - char buf[64]; - buf[sizeof buf - 1] = '\0'; - _dl_sysdep_fatal ("BUG IN DYNAMIC LINKER ld.so: ", - file, ": ", _itoa (line, buf + sizeof buf - 1, 10, 0), - ": ", function ?: "", function ? ": " : "", - "Assertion `", assertion, "' failed!\n", - NULL); - -} -weak_symbol (__assert_fail) - -void -__assert_perror_fail (int errnum, - const char *file, unsigned int line, - const char *function) -{ - char buf[64]; - buf[sizeof buf - 1] = '\0'; - _dl_sysdep_fatal ("BUG IN DYNAMIC LINKER ld.so: ", - file, ": ", _itoa (line, buf + sizeof buf - 1, 10, 0), - ": ", function ?: "", function ? ": " : "", - "Unexpected error: ", strerror (errnum), "\n", NULL); - -} -weak_symbol (__assert_perror_fail) - -#endif -- cgit 1.4.1