-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about global constructors #43
Comments
If I recall correctly, the global constructor isn't getting called in the kernel |
If constructors aren't getting called then I think they shouldn't be added in, it'll save up binary space. |
It's C so there is no constructor to call, at least in the kernel, I know there is one in libposix to initialize stdio |
aa ok, |
Yes there is one call to init in the userspace side of libsystem |
@NicolasVanBossuyt good thank you, crt0.o crti.o, crtn.o |
Yes you have to have them or gcc will complain '^^ |
Very Thanks! |
Hello colleagues, why do you need to call global constructors before starting the kernel? I understand that in a user space program it is called before the main function, to do something,
But what should the core call before starting?
The text was updated successfully, but these errors were encountered: