summaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-08-24 20:41:05 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-08-24 20:41:05 +0000
commit1c8832cd15a434f03fb1afa10d86c968b50da9b5 (patch)
treeba463e3aa590113189e2bb9232c6e240cdca4e63 /lib/csu
parentefb1c8a787b8a2a4536908c4d0aad8bed570e60e (diff)
Do not error out if we have been statically linked but would like ld.so for dlopen
and it is not there.
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/csu/common.c b/lib/csu/common.c
index 92ef314501e..41c7dca1a52 100644
--- a/lib/csu/common.c
+++ b/lib/csu/common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.c,v 1.3 1999/08/20 14:11:34 niklas Exp $ */
+/* $OpenBSD: common.c,v 1.4 1999/08/24 20:41:04 niklas Exp $ */
/* $NetBSD: common.c,v 1.4 1995/09/23 22:34:20 pk Exp $ */
/*
* Copyright (c) 1993,1995 Paul Kranenburg
@@ -55,6 +55,11 @@ __load_rtld(dp)
crt.crt_ldfd = open(crt.crt_ldso, 0, 0);
if (crt.crt_ldfd == -1) {
+ /* If we don't need ld.so then just return instead bail out. */
+ if (!LD_NEED(dp)) {
+ ld_entry = 0;
+ return;
+ }
_FATAL("No ld.so\n");
}