Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2010 09:08:28 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211414 - head/libexec/rtld-elf
Message-ID:  <201008170908.o7H98SVw024848@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Aug 17 09:08:28 2010
New Revision: 211414
URL: http://svn.freebsd.org/changeset/base/211414

Log:
  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

Modified:
  head/libexec/rtld-elf/rtld.c

Modified: head/libexec/rtld-elf/rtld.c
==============================================================================
--- head/libexec/rtld-elf/rtld.c	Tue Aug 17 09:05:39 2010	(r211413)
+++ head/libexec/rtld-elf/rtld.c	Tue Aug 17 09:08:28 2010	(r211414)
@@ -541,6 +541,7 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_
     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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008170908.o7H98SVw024848>