This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
A patch for elf/dl-version.c
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: A patch for elf/dl-version.c
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Thu, 7 Dec 2000 11:26:23 -0800
We should check map->l_name[0] for printing.
--
H.J. Lu (hjl@valinux.com)
----
2000-12-07 H.J. Lu <hjl@gnu.org>
* elf/dl-version.c (match_symbol): Check map->l_name[0] for
printing.
Index: elf/dl-version.c
===================================================================
RCS file: /work/cvs/gnu/glibc/elf/dl-version.c,v
retrieving revision 1.1.1.4
diff -u -p -r1.1.1.4 dl-version.c
--- elf/dl-version.c 2000/11/07 01:28:01 1.1.1.4
+++ elf/dl-version.c 2000/12/07 19:24:39
@@ -95,7 +95,7 @@ match_symbol (const char *name, ElfW(Wor
only print a message if verbose output is requested. */
if (verbose)
/* XXX We cannot translate the messages. */
- _dl_signal_cerror (0, map->l_name,
+ _dl_signal_cerror (0, map->l_name[0] ? map->l_name : _dl_argv[0],
make_string ("\
no version information available (required by ",
name, ")"));