aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dlfcn.h1
-rw-r--r--lib/libc/gen/dlfcn.c15
-rw-r--r--lib/libc/gen/dlopen.319
-rw-r--r--libexec/rtld-elf/rtld.c17
4 files changed, 2 insertions, 50 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h
index 0179278fc500..0f68fe645ebd 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -66,7 +66,6 @@ int dlclose __P((void *));
const char *dlerror __P((void));
void *dlopen __P((const char *, int));
void *dlsym __P((void *, const char *));
-int dlversion __P((void));
__END_DECLS
#endif /* !_DLFCN_H_ */
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c
index 38b9553679a4..d684fd980cb5 100644
--- a/lib/libc/gen/dlfcn.c
+++ b/lib/libc/gen/dlfcn.c
@@ -94,14 +94,6 @@ dlsym(void *handle, const char *name)
return NULL;
}
-#pragma weak dlversion
-int
-dlversion(void)
-{
- _rtld_error(sorry);
- return 0;
-}
-
#else /* a.out format */
#include <sys/types.h>
@@ -173,11 +165,4 @@ dlsym(void *handle, const char *name)
return (__ldso_entry->dlsym)(handle, name);
}
-/* We don't support dlversion() on a.out systems. */
-int
-dlversion(void)
-{
- return 0;
-}
-
#endif /* __ELF__ */
diff --git a/lib/libc/gen/dlopen.3 b/lib/libc/gen/dlopen.3
index e56e3aeb9b98..9e848f9e8428 100644
--- a/lib/libc/gen/dlopen.3
+++ b/lib/libc/gen/dlopen.3
@@ -34,7 +34,7 @@
.Os FreeBSD
.Dt DLOPEN 3
.Sh NAME
-.Nm dlopen, dlsym, dlerror, dlclose, dlversion
+.Nm dlopen, dlsym, dlerror, dlclose
.Nd programmatic interface to the dynamic linker
.Sh SYNOPSIS
.Fd #include <dlfcn.h>
@@ -46,8 +46,6 @@
.Fn dlerror "void"
.Ft int
.Fn dlclose "void *handle"
-.Ft int
-.Fn dlversion "void"
.Sh DESCRIPTION
These functions provide a simple programmatic interface to the services of the
dynamic linker.
@@ -221,19 +219,6 @@ The object-intrinsic functions
and
.Fn _fini
are called with no arguments, and are not expected to return values.
-.Pp
-.Fn dlversion
-returns the version number of the dynamic linker. Interpreted
-as a decimal number, the version number has the form
-.Em rrrsss .
-.Em rrr
-corresponds to the base operating system release version, e.g., 400
-for release 4.0.0.
-.Em sss
-is a serial number that increases monotonically within each release
-version. If the installed dynamic linker is too old to support
-.Fn dlversion ,
-0 is returned.
.Sh NOTES
ELF executables need to be linked
using the
@@ -249,8 +234,6 @@ and
return the null pointer in the event of errors.
.Fn dlclose
returns 0 on success, or -1 if an error occurred.
-.Fn dlversion
-returns 0 if the dynamic linker is too old to support it.
Whenever an error has been detected, a message detailing it can be
retrieved via a call to
.Fn dlerror .
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 5ac7fcdebefd..0261c3fb6448 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -22,7 +22,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: rtld.c,v 1.21 1999/04/09 06:42:00 jdp Exp $
+ * $Id: rtld.c,v 1.22 1999/04/21 04:06:57 jdp Exp $
*/
/*
@@ -52,14 +52,6 @@
#include "rtld.h"
/*
- * Version number queried by dlversion(). The first 3 digits represent
- * the base FreeBSD release. The last 3 digits are a serial number.
- * Increase this when you fix a significant bug or add a significant
- * feature.
- */
-#define DL_VERSION 400001
-
-/*
* Debugging support.
*/
@@ -141,7 +133,6 @@ static func_ptr_type exports[] = {
(func_ptr_type) &dlopen,
(func_ptr_type) &dlsym,
(func_ptr_type) &dladdr,
- (func_ptr_type) &dlversion,
NULL
};
@@ -1249,12 +1240,6 @@ dlsym(void *handle, const char *name)
}
int
-dlversion(void)
-{
- return DL_VERSION;
-}
-
-int
dladdr(const void *addr, Dl_info *info)
{
const Obj_Entry *obj;