(_dl_signal_cerror): Report error if ld.so debug is turned on.
authordrepper <drepper>
Sun, 30 Jun 2002 08:57:11 +0000 (08:57 +0000)
committerdrepper <drepper>
Sun, 30 Jun 2002 08:57:11 +0000 (08:57 +0000)
elf/dl-error.c

index fbb35d2..ccb4e4d 100644 (file)
@@ -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: error: %s: %s (%s)\n", objname, occation,
+                             errstring, receiver ? "continued" : "fatal");
+
   if (receiver)
     {
       /* We are inside _dl_receive_error.  Call the user supplied