mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
With the move to dynamic executables, crt0's _start was only ever calling libc's __init_libc, which only ran libc's init_array list. Now make crt0 itself (which is statically linked into every executable) call it's own init_array list and have ld.so call every other image's ctor lists.
7 lines
55 B
C++
7 lines
55 B
C++
#include <stddef.h>
|
|
|
|
extern "C" void
|
|
__init_libc()
|
|
{
|
|
}
|