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:
Konstantin Belousov 2010-08-17 09:08:28 +00:00
parent d59a6353d7
commit 8fc4852252
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211414

View File

@ -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();