diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-02-24 11:50:24 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-02-25 14:58:52 +0100 |
commit | 783e641fbae0cd1ab32d278216247a6f793dd722 (patch) | |
tree | 6def81a3e732f248f1a9a1ecda8c5c750194c633 /elf | |
parent | ldbl-128ibm: make ieee754.h work with IEEE 128 long double (diff) | |
download | glibc-783e641fbae0cd1ab32d278216247a6f793dd722.tar.gz glibc-783e641fbae0cd1ab32d278216247a6f793dd722.tar.bz2 glibc-783e641fbae0cd1ab32d278216247a6f793dd722.zip |
csu: Use ELF constructor instead of _init in libc.so
On !ELF_INITFINI architectures, _init is no longer called by the
dynamic linker. We can use an ELF constructor instead because the
constructor order does not matter. (The other constructors are used
to set up libio vtable bypasses and do not depend on this
initialization routine.)
Diffstat (limited to 'elf')
-rw-r--r-- | elf/soinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/soinit.c b/elf/soinit.c index fe9935732b..538eb68186 100644 --- a/elf/soinit.c +++ b/elf/soinit.c @@ -20,7 +20,7 @@ run_hooks (void (*const list[]) (void)) (**list) (); } -/* This function will be called from _init in init-first.c. */ +/* This function will be called from _init_first in init-first.c. */ void __libc_global_ctors (void) { |