about summary refs log tree commit diff
path: root/include/libc-internal.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-24 11:50:24 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-25 14:58:52 +0100
commit783e641fbae0cd1ab32d278216247a6f793dd722 (patch)
tree6def81a3e732f248f1a9a1ecda8c5c750194c633 /include/libc-internal.h
parenta92ac9f494b2a7d59a1f54ba79c569a35a6da005 (diff)
downloadglibc-783e641fbae0cd1ab32d278216247a6f793dd722.tar.gz
glibc-783e641fbae0cd1ab32d278216247a6f793dd722.tar.xz
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 'include/libc-internal.h')
-rw-r--r--include/libc-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index fcd21468c0..4c74f6ba60 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -24,7 +24,7 @@
 /* Initialize the `__libc_enable_secure' flag.  */
 extern void __libc_init_secure (void);
 
-/* This function will be called from _init in init-first.c.  */
+/* This function will be called from _init_first in init-first.c.  */
 extern void __libc_global_ctors (void);
 
 /* Discover the tick frequency of the machine if something goes wrong,