diff options
author | Roland McGrath <roland@gnu.org> | 1996-07-05 17:05:14 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-07-05 17:05:14 +0000 |
commit | f5348425d095f93cce1532c7ca20915aea480868 (patch) | |
tree | 3c74c90bad1a39953be39bc190d6985b887320ef /elf | |
parent | 503054c0dd57109017b36870c430dab00fccaa8b (diff) | |
download | glibc-f5348425d095f93cce1532c7ca20915aea480868.zip glibc-f5348425d095f93cce1532c7ca20915aea480868.tar.gz glibc-f5348425d095f93cce1532c7ca20915aea480868.tar.bz2 |
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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |