Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/libexec/ld.elf_so pullup 1.18->1.19 (klienk): LD_PRELOA...
details: https://anonhg.NetBSD.org/src/rev/1c95d21bcf7d
branches: netbsd-1-4
changeset: 468931:1c95d21bcf7d
user: perry <perry%NetBSD.org@localhost>
date: Wed Jun 23 15:06:02 1999 +0000
description:
pullup 1.18->1.19 (klienk): LD_PRELOAD support
diffstat:
libexec/ld.elf_so/rtld.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 3edfae2fd3f0 -r 1c95d21bcf7d libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c Wed Jun 23 15:04:09 1999 +0000
+++ b/libexec/ld.elf_so/rtld.c Wed Jun 23 15:06:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.c,v 1.17 1999/03/08 10:44:25 kleink Exp $ */
+/* $NetBSD: rtld.c,v 1.17.2.1 1999/06/23 15:06:02 perry Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -374,6 +374,14 @@
_rtld_objtail = &_rtld_objmain->next;
++_rtld_objmain->refcount;
+ /*
+ * Pre-load user-specified objects after the main program but before
+ * any shared object dependencies.
+ */
+ dbg(("preloading objects"));
+ if (_rtld_trust && _rtld_preload(getenv("LD_PRELOAD"), true) == -1)
+ _rtld_die();
+
dbg(("loading needed objects"));
if (_rtld_load_needed_objects(_rtld_objmain) == -1)
_rtld_die();
Home |
Main Index |
Thread Index |
Old Index