about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-05 17:05:14 +0000
committerRoland McGrath <roland@gnu.org>1996-07-05 17:05:14 +0000
commitf5348425d095f93cce1532c7ca20915aea480868 (patch)
tree3c74c90bad1a39953be39bc190d6985b887320ef /elf
parent503054c0dd57109017b36870c430dab00fccaa8b (diff)
downloadglibc-f5348425d095f93cce1532c7ca20915aea480868.tar.gz
glibc-f5348425d095f93cce1532c7ca20915aea480868.tar.xz
glibc-f5348425d095f93cce1532c7ca20915aea480868.zip
Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
	* elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
	* sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
	_dl_rtld_map.
	(RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
	(elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
	(elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
	_dl_rtld_map weak only here.

	* posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
Diffstat (limited to 'elf')
-rw-r--r--elf/rtld.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 8ec637f6a8..6baa7a868a 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -18,13 +18,18 @@ not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
 #include <link.h>
-#include "dynamic-link.h"
 #include <stddef.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include "../stdio-common/_itoa.h"
 
 
+/* This #define produces dynamic linking inline functions for
+   bootstrap relocation instead of general-purpose relocation.  */
+#define RTLD_BOOTSTRAP
+#include "dynamic-link.h"
+
+
 #ifdef RTLD_START
 RTLD_START
 #else