Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so Restore backwards compatibility by removin...
details: https://anonhg.NetBSD.org/src/rev/666e896527e7
branches: trunk
changeset: 771733:666e896527e7
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Dec 02 09:06:49 2011 +0000
description:
Restore backwards compatibility by removing unnecessary addition of
dlvsym to Obj_Entry.
Add some comments.
diffstat:
libexec/ld.elf_so/reloc.c | 11 +++++++----
libexec/ld.elf_so/rtld.h | 10 +++++++---
2 files changed, 14 insertions(+), 7 deletions(-)
diffs (60 lines):
diff -r bed512d147c8 -r 666e896527e7 libexec/ld.elf_so/reloc.c
--- a/libexec/ld.elf_so/reloc.c Fri Dec 02 08:50:18 2011 +0000
+++ b/libexec/ld.elf_so/reloc.c Fri Dec 02 09:06:49 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: reloc.c,v 1.104 2011/06/25 05:45:12 nonaka Exp $ */
+/* $NetBSD: reloc.c,v 1.105 2011/12/02 09:06:49 skrll Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -39,7 +39,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: reloc.c,v 1.104 2011/06/25 05:45:12 nonaka Exp $");
+__RCSID("$NetBSD: reloc.c,v 1.105 2011/12/02 09:06:49 skrll Exp $");
#endif /* not lint */
#include <err.h>
@@ -210,10 +210,13 @@
obj->magic = RTLD_MAGIC;
obj->version = RTLD_VERSION;
- /* Fill in the dynamic linker entry points. */
+ /*
+ * Fill in the backwards compatibility dynamic linker entry points.
+ *
+ * DO NOT ADD TO THIS LIST
+ */
obj->dlopen = dlopen;
obj->dlsym = dlsym;
- obj->dlvsym = dlvsym;
obj->dlerror = dlerror;
obj->dlclose = dlclose;
obj->dladdr = dladdr;
diff -r bed512d147c8 -r 666e896527e7 libexec/ld.elf_so/rtld.h
--- a/libexec/ld.elf_so/rtld.h Fri Dec 02 08:50:18 2011 +0000
+++ b/libexec/ld.elf_so/rtld.h Fri Dec 02 09:06:49 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.h,v 1.106 2011/06/25 05:45:12 nonaka Exp $ */
+/* $NetBSD: rtld.h,v 1.107 2011/12/02 09:06:49 skrll Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -191,10 +191,14 @@
void (*init)(void); /* Initialization function to call */
void (*fini)(void); /* Termination function to call */
- /* Entry points for dlopen() and friends. */
+ /*
+ * BACKWARDS COMPAT Entry points for dlopen() and friends.
+ *
+ * DO NOT MOVE OR ADD TO THE LIST
+ *
+ */
void *(*dlopen)(const char *, int);
void *(*dlsym)(void *, const char *);
- void *(*dlvsym)(void *, const char *, const char *);
char *(*dlerror)(void);
int (*dlclose)(void *);
int (*dladdr)(const void *, Dl_info *);
Home |
Main Index |
Thread Index |
Old Index