Re: [PATCH V2] libc: deal with aux vect inside __uClibc_main only if !SHARED

2013-05-20 Thread Filippo ARCIDIACONO
On 5/19/2013 7:08 AM, Mike Frysinger wrote: On Friday 14 December 2012 05:40:05 Filippo ARCIDIACONO wrote: --- a/libc/misc/elf/dl-support.c +++ b/libc/misc/elf/dl-support.c @@ -28,6 +28,7 @@ void (*_dl_init_static_tls) (struct link_map *) = _dl_nothread_init_static_tls; ElfW(Phdr) *_dl_phdr;

Re: [PATCH V2] libc: deal with aux vect inside __uClibc_main only if !SHARED

2013-05-20 Thread Carmelo Amoroso
Il giorno 20/mag/2013 14:38, Filippo ARCIDIACONO filippo.arcidiac...@st.com ha scritto: On 5/19/2013 7:08 AM, Mike Frysinger wrote: On Friday 14 December 2012 05:40:05 Filippo ARCIDIACONO wrote: --- a/libc/misc/elf/dl-support.c +++ b/libc/misc/elf/dl-support.c @@ -28,6 +28,7 @@ void

Re: [PATCH V2] libc: deal with aux vect inside __uClibc_main only if !SHARED

2013-05-19 Thread Carmelo Amoroso
Il giorno 19/mag/2013 07:08, Mike Frysinger vap...@gentoo.org ha scritto: On Friday 14 December 2012 05:40:05 Filippo ARCIDIACONO wrote: --- a/libc/misc/elf/dl-support.c +++ b/libc/misc/elf/dl-support.c @@ -28,6 +28,7 @@ void (*_dl_init_static_tls) (struct link_map *) =

Re: [PATCH V2] libc: deal with aux vect inside __uClibc_main only if !SHARED

2013-05-18 Thread Mike Frysinger
On Friday 14 December 2012 05:40:05 Filippo ARCIDIACONO wrote: --- a/libc/misc/elf/dl-support.c +++ b/libc/misc/elf/dl-support.c @@ -28,6 +28,7 @@ void (*_dl_init_static_tls) (struct link_map *) = _dl_nothread_init_static_tls; ElfW(Phdr) *_dl_phdr; size_t _dl_phnum; +size_t

Re: [PATCH V2] libc: deal with aux vect inside __uClibc_main only if !SHARED

2013-02-06 Thread Carmelo AMOROSO
On 14/12/2012 11.49, Filippo ARCIDIACONO wrote: On 12/14/2012 11:40 AM, Filippo ARCIDIACONO wrote: It's not safe to use the aux vect inside __uClibc_main if we are running with shared libraries, because it could have been already modified. For example, if some constructor plays with

[PATCH V2] libc: deal with aux vect inside __uClibc_main only if !SHARED

2012-12-14 Thread Filippo ARCIDIACONO
It's not safe to use the aux vect inside __uClibc_main if we are running with shared libraries, because it could have been already modified. For example, if some constructor plays with environment variables by using unsetenv, the modifications done into the stack to unset an environment variable,

Re: [PATCH V2] libc: deal with aux vect inside __uClibc_main only if !SHARED

2012-12-14 Thread Filippo ARCIDIACONO
On 12/14/2012 11:40 AM, Filippo ARCIDIACONO wrote: It's not safe to use the aux vect inside __uClibc_main if we are running with shared libraries, because it could have been already modified. For example, if some constructor plays with environment variables by using unsetenv, the modifications