Index: ./common/crt0-common.c =================================================================== RCS file: /cvsroot/src/lib/csu/common/crt0-common.c,v retrieving revision 1.30 diff -u -p -r1.30 crt0-common.c --- ./common/crt0-common.c 2 May 2025 23:04:06 -0000 1.30 +++ ./common/crt0-common.c 10 Feb 2026 06:45:30 -0000 @@ -343,6 +343,9 @@ ___start(void (*cleanup)(void), /* fro __progname = empty_string; } + if (&rtld_DYNAMIC == NULL) + _preinit(); + _libc_init(); if (&rtld_DYNAMIC == NULL) { @@ -354,8 +357,6 @@ ___start(void (*cleanup)(void), /* fro #endif } - _preinit(); - if (cleanup != NULL) atexit(cleanup);