1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-01 05:02:03 +03:00

(__data_start): Define this symbol as the first thing in .data.

This commit is contained in:
Roland McGrath
1995-05-09 07:03:38 +00:00
parent 421f82e5cc
commit 273d56ce89
10 changed files with 185 additions and 44 deletions

View File

@@ -261,3 +261,27 @@ void
_dl_r_debug_state (void)
{
}
#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. */
#include "../stdio/_itoa.h"
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");
}
weak_symbol (__assert_fail)
#endif