Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/libexec/ld.elf_so pullup version 1.41 (approved by thor...
details: https://anonhg.NetBSD.org/src/rev/43a1d4c205d2
branches: netbsd-1-5
changeset: 489301:43a1d4c205d2
user: scottb <scottb%NetBSD.org@localhost>
date: Tue Aug 29 01:47:42 2000 +0000
description:
pullup version 1.41 (approved by thorpej):
copy the real object filename to the rtld object path so that the
Dl_info structure can be properly filled by dladdr().
diffstat:
libexec/ld.elf_so/rtld.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 1324ae28e14d -r 43a1d4c205d2 libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c Tue Aug 29 01:44:26 2000 +0000
+++ b/libexec/ld.elf_so/rtld.c Tue Aug 29 01:47:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.c,v 1.34.2.1 2000/07/26 23:45:22 mycroft Exp $ */
+/* $NetBSD: rtld.c,v 1.34.2.2 2000/08/29 01:47:42 scottb Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -437,7 +437,10 @@
_rtld_objmain = _rtld_digest_phdr(phdr, phnum, entry);
}
- _rtld_objmain->path = xstrdup("main program");
+ if (argv[0] != NULL)
+ _rtld_objmain->path = xstrdup(argv[0]);
+ else
+ _rtld_objmain->path = xstrdup("main program");
_rtld_objmain->mainprog = true;
/*
Home |
Main Index |
Thread Index |
Old Index