This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Report ld.so error
- From: "H . J . Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Wed, 29 May 2002 17:27:19 -0700
- Subject: PATCH: Report ld.so error
It is very useful for debugging.
H.J.
---
2002-05-29 H.J. Lu <hjl@gnu.org>
* elf/dl-error.c (_dl_signal_cerror): Report error if ld.so
debug is turned on.
--- elf/dl-error.c.debug Fri Mar 1 22:57:50 2002
+++ elf/dl-error.c Wed May 29 17:22:47 2002
@@ -119,6 +119,10 @@ internal_function
_dl_signal_cerror (int errcode, const char *objname, const char *occation,
const char *errstring)
{
+ if (__builtin_expect (GL(dl_debug_mask), 0))
+ INTUSE(_dl_debug_printf) ("%s: fatal: %s: %s\n", objname, occation,
+ errstring);
+
if (receiver)
{
/* We are inside _dl_receive_error. Call the user supplied