diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-09-17 03:02:38 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-09-17 03:02:38 +0000 |
commit | 2b31496aeb1173cbe9e0274af630f14b4f8ba501 (patch) | |
tree | 1d2b2a81d1cd9794a01bba552e78dc4c8e7277ed /libexec/ld.so/resolve.h | |
parent | 25c77fcd29b14091d6629dca40aba5058fc8c961 (diff) |
Cleanly handle the case where a dynamic object is opened, but one of it's
dependant libraries is missing. return NULL for a handle instead of
causing the program to exit.
Diffstat (limited to 'libexec/ld.so/resolve.h')
-rw-r--r-- | libexec/ld.so/resolve.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/resolve.h b/libexec/ld.so/resolve.h index 94445ccf595..7ca2bb65b14 100644 --- a/libexec/ld.so/resolve.h +++ b/libexec/ld.so/resolve.h @@ -1,4 +1,4 @@ -/* $OpenBSD: resolve.h,v 1.37 2005/09/16 23:19:41 drahn Exp $ */ +/* $OpenBSD: resolve.h,v 1.38 2005/09/17 03:02:37 drahn Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -237,6 +237,7 @@ extern char *_dl_debug; #define DL_INVALID_CTL 8 #define DL_NO_OBJECT 9 #define DL_CANT_FIND_OBJ 10 +#define DL_CANT_LOAD_OBJ 11 #define ELF_ROUND(x,malign) (((x) + (malign)-1) & ~((malign)-1)) #define ELF_TRUNC(x,malign) ((x) & ~((malign)-1)) |