This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]