Skip to content
Snippets Groups Projects
Forked from redox-os / relibc
Source project has a limited visibility.
  • Ahmed Abd El Mawgood's avatar
    b717f6cf
    Move IO Initialization to .init_array section · b717f6cf
    Ahmed Abd El Mawgood authored
    Most shared object in linux have their initialization in a separate
    .init_array section. but glibc does not have the same behavour. Instead
    the initialization is part of crt0. which (as it seams to me) run after
    .init_array section. As such, this patch move IO initialization to
    separate function that is marked as .init_array member and then the crt0
    call this function only if init_array was never invoked (as in
    statically linked binaries).
    b717f6cf
    History
    Move IO Initialization to .init_array section
    Ahmed Abd El Mawgood authored
    Most shared object in linux have their initialization in a separate
    .init_array section. but glibc does not have the same behavour. Instead
    the initialization is part of crt0. which (as it seams to me) run after
    .init_array section. As such, this patch move IO initialization to
    separate function that is marked as .init_array member and then the crt0
    call this function only if init_array was never invoked (as in
    statically linked binaries).