diff options
author | Roland McGrath <roland@gnu.org> | 2000-04-02 22:01:23 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-04-02 22:01:23 +0000 |
commit | 5879ee9fa107553df828f71fd8e6633d3032370a (patch) | |
tree | 184e7f19b623b4ddf26ea256b80e11ec350bc884 /sysdeps/mach/hurd/dl-sysdep.c | |
parent | e1724cd7ef4da860e8a1bfbe8adf0e0ec4d0e90f (diff) | |
download | glibc-5879ee9fa107553df828f71fd8e6633d3032370a.tar glibc-5879ee9fa107553df828f71fd8e6633d3032370a.tar.gz glibc-5879ee9fa107553df828f71fd8e6633d3032370a.tar.bz2 glibc-5879ee9fa107553df828f71fd8e6633d3032370a.zip |
* sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
(init1): Don't initialize __environ here, since init already does it.
(first_init): New function, broken out of _init.
(_hurd_stack_setup): Use it.
[SHARED] (_dl_init_first): New function, renamed from old _init.
(init1) [SHARED]: Don't call posixland_init here.
(posixland_init): Take ENVP arg, so signature is usual for initializer.
[SHARED] (_init): Define as alias for posixland_init.
[! SHARED] (__libc_first_init): Define as alias for posixland_init.
* sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
RTLD_START_SPECIAL_INIT before calling initializers.
(RTLD_START_SPECIAL_INIT): Define to empty if undefined.
* sysdeps/mach/hurd/i386/dl-machine.h: New file.
* sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
* elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
Diffstat (limited to 'sysdeps/mach/hurd/dl-sysdep.c')
-rw-r--r-- | sysdeps/mach/hurd/dl-sysdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index a1f4565869..9083ca0350 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -730,3 +730,9 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz, *sz = 1; return result; } + +void weak_function +_dl_init_first (int argc, ...) +{ + /* This no-op definition only gets used if libc is not linked in. */ +} |