@ekaitz_zarraga
Maybe the crt0.s and friends here might be useful (but they are x86_64 and specific of Jehanne) https://github.com/JehanneOS/jehanne/tree/master/sys/src/lib/jehanne/amd64
@ekaitz_zarraga they basically setup things that must occurs once just after a program exec()uted starts, like initializing the c library.
But the only thing that crt0.s HAVE to do is to setup argc and argv and then call main() (in Jehanne it calls __jehanne_libc_init that will call main)
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.
@ekaitz_zarraga they basically setup things that must occurs once just after a program exec()uted starts, like initializing the c library.
But the only thing that crt0.s HAVE to do is to setup argc and argv and then call main() (in Jehanne it calls __jehanne_libc_init that will call main)