• David 'Digit' Turner's avatar
    Fix the C library runtime initialization order. · b56b5659
    David 'Digit' Turner authored
    This allows libc.so to run the C runtime initializer as soon as the
    dynamic linker loads the shared library, i.e. before any other initializers
    (e.g. static C++ constructors in other shared libraries the executable depends
    on).
    
    This also removes the bug where the initializers from the executable itself
    were run twice: once by the dynamic linker, and another time by __libc_init
    as defined by libc_init_dynamic.c
    b56b5659
libc_init_common.h 1.66 KB