From 783e641fbae0cd1ab32d278216247a6f793dd722 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 24 Feb 2020 11:50:24 +0100 Subject: 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.) --- elf/soinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf') diff --git a/elf/soinit.c b/elf/soinit.c index fe99357..538eb68 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) { -- cgit v1.1