mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Provide the starting image with the pointer to ELF aux vector. It is
written into the __elf_aux_vector variable, if the symbol is present. Idea from: kan Tested by: marius (sparc64) MFC after: 1 month
This commit is contained in:
parent
d59a6353d7
commit
8fc4852252
1 changed files with 1 additions and 0 deletions
|
|
@ -541,6 +541,7 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entry **objp)
|
|||
dbg("initializing key program variables");
|
||||
set_program_var("__progname", argv[0] != NULL ? basename(argv[0]) : "");
|
||||
set_program_var("environ", env);
|
||||
set_program_var("__elf_aux_vector", aux);
|
||||
|
||||
dbg("initializing thread locks");
|
||||
lockdflt_init();
|
||||
|
|
|
|||
Loading…
Reference in a new issue