populate ELF header information on the initial stack so that glibc can set up TLS properly

This commit is contained in:
Balazs Gerofi bgerofi@riken.jp
2012-10-09 00:51:50 +09:00
parent f1da972bb7
commit 9a8449df2b
7 changed files with 67 additions and 8 deletions

View File

@@ -86,7 +86,9 @@ int add_process_large_range(struct process *process,
unsigned long flag, unsigned long *phys);
int remove_process_region(struct process *proc,
unsigned long start, unsigned long end);
void init_process_stack(struct process *process, int argc, char **argv,
struct program_load_desc;
void init_process_stack(struct process *process, struct program_load_desc *pn,
int argc, char **argv,
int envc, char **env);
unsigned long extend_process_region(struct process *proc,
unsigned long start, unsigned long end,