@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
Jehanne Operating System. Contribute to JehanneOS/jehanne development by creating an account on GitHub.
@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)
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance 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)