mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-08-27 05:54:58 +00:00
fix(userspace/libc): modify __libc_init and crt0 to initialize "environ"
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@@ -21,9 +21,11 @@
|
||||
|
||||
int __init_pthread(void);
|
||||
void __init_stdio(void);
|
||||
extern char **environ;
|
||||
|
||||
__attribute__((visibility("default"))) void __libc_init(void)
|
||||
__attribute__((visibility("default"))) void __libc_init(const char **env)
|
||||
{
|
||||
environ = (char **)env;
|
||||
__init_pthread();
|
||||
__init_stdio();
|
||||
}
|
||||
|
Reference in New Issue
Block a user