From dfcd8f70da0fa3b3cb08753e2fbeeddbc9ca7654 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 19 Apr 2018 15:17:05 +0300 Subject: linker: Remove libc precond --- src/linker/linker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/linker') diff --git a/src/linker/linker.c b/src/linker/linker.c index 058baa5..4645454 100644 --- a/src/linker/linker.c +++ b/src/linker/linker.c @@ -1615,8 +1615,7 @@ void apkenv_call_constructors_recursive(soinfo *si) { if (si->constructors_called) return; - if (strcmp(si->name, "libc.so") == 0) -return; + // Set this before actually calling the constructors, otherwise it doesn't // protect against recursive constructor calls. One simple example of // constructor recursion is the libc debug malloc, which is implemented in -- cgit v1.2.3