Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-05-13 | libc: deal with aux vect inside __uClibc_main only if !SHARED | 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, have impacts on the aux vect due to the extra NULL entries added. Due to this, __uClibc_main is not able to detect where the aux vect starts, so all the entries that are used by __uClibc_main (AT_UID, AT_EUID, AT_GID, AT_EGID, AT_PAGESZ and possibly other arch specific) are impacted. Same side effect on the aux vect is caused by the ld.so when running a SUID program with some of the unsecure environment variables set, that will be unset by the ld.so itself. In order to fix this issue, it needs to handle aux vect entries into __uClibc_main only if SHARED is not defined. In SHARED case, libc refers to __dl_secure and _dl_pagesize as initialised by the ld.so where the aux vext is still untouched. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Reviewed-by: Carmelo Amoroso <carmelo.amoroso@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> | |||
2010-07-27 | silence warning about incompatible types with _dl_init_static_tls | Bernhard Reutner-Fischer | |
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | |||
2009-12-17 | check if USE_TLS is defined before use | Hans-Christian Egtvedt | |
This patch will convert all the #ifdef USE_TLS and #if USE_TLS to #if defined(USE_TLS) && USE_TLS. By checking if the USE_TLS is defined before checking its value will result in correct behavior for architectures not defining this config symbol. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> Acked-by: Carmelo AMOROSO <carmelo.amoroso@st.com> | |||
2009-09-26 | dl-support.c: add tls support | Austin Foxley | |
Signed-off-by: Austin Foxley <austinf@cetoncorp.com> | |||
2009-07-05 | Provide token prototypes for functions that are external but have no header | Ron | |
This cuts down on a lot of noise from gcc-4.4 Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> | |||
2008-11-18 | Changed Copyright and License statement according to COPYING.LIB.boilerplate | Carmelo Amoroso | |
2008-11-18 | Move _dl_iterate_phdr into libc.so.0 and libc.a (as glibc does). | Carmelo Amoroso | |
Currently we have an implementation in ld.so and libdl.a. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> |