diff options
-rw-r--r-- | src/linker/linker.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 |