diff options
Diffstat (limited to 'elf/rtld.c')
-rw-r--r-- | elf/rtld.c | 50 |
1 files changed, 0 insertions, 50 deletions
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 |