summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Makefile.in: remove uClibc_uwchar.h and uClibc_va_copy.h on installPeter S. Mazinger2011-03-081-0/+2
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* Makerules: respect HARDWIRED_ABSPATH in interp.cPeter S. Mazinger2011-03-081-0/+6
| | | | | | | Build LDSO path according to the HARDWIRED_ABSPATH setting While there, remove duplicated slashes in interp.c Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* try to fix duplicated slashes in the generated lib*.so files (round 2)Peter S. Mazinger2011-03-081-0/+2
| | | | | | sed s://:/:g on libc.so/libpthread.so if HARDWIRED_ABSPATH is defined Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* Revert "buildsys: prefer the form HEADERS_RM-$(<config>)"Carmelo Amoroso2011-03-081-1/+3
| | | | | | This reverts commit 07044019e6260991729926645e7d221f38376f9d. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* buildsys: prefer the form HEADERS_RM-$(<config>)Carmelo Amoroso2011-03-071-3/+1
| | | | | | | Fix removal of sgtty.h using HEADERS_RM-$(<config>) syntax. Sort it alphabetically. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* locale.c: export newlocale only if XLOCALE is definedPeter S. Mazinger2011-03-071-0/+2
| | | | | | | newlocale is used by setlocale, so we need the hidden version even if XLOCALE is not defined Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* locale.c, locale.h: no need for hidden duplocalePeter S. Mazinger2011-03-072-2/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* simplify ffs* codePeter S. Mazinger2011-03-064-24/+12
| | | | | | Remove __libc_ffs*, unneeded Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove unused ARCH_CFLAGS and ARCH_LDFLAGSPeter S. Mazinger2011-03-061-6/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* Revert "try to fix duplicated slashes in the generated lib*.so files"Peter S. Mazinger2011-03-063-19/+19
| | | | | | This reverts commit 624be66cb9b350d5c6538fca8592cdb3a4c23d37. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* Implement ffsl and ffsll.Bernd Schmidt2011-03-054-9/+59
| | | | | | | | | This imports and adapts ffsll.c from glibc. The same mechanism as in glibc is used to choose between ffs and ffsll to implement ffsl. The single user in libc is changed to use the hidden version __libc_ffs. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com> Acked-by: Bernhard Reutner-Fischer <aldot@uclibc.org>
* Add sanity checks to ld.so DSBT supportMark Salter2011-03-051-1/+28
| | | | | | | | | This adds some DSBT index sanity checks to the runtime linker. It catches libraries which have no index (index 0) and libraries which try to use an already used index. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* The C6X portAurelien Jacquiot2011-03-0552-0/+3486
| | | | | | | | This adds support for the TI C6X family of processors. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* Allow ABIs where SP points below the stack frame.Bernd Schmidt2011-03-051-7/+11
| | | | | | | | On C6X, the stack pointer points to a word that is not part of the current function's stack frame. It may be overwritten by callees. Take this into account when creating the stack for a cloned thread. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* Add support for DSBT ELF to ld.soMark Salter2011-03-056-6/+58
| | | | | | | | | | This adds support for DSBT ELF to ld.so. This uses loadmaps like FD-PIC. Some code is added in ld.so to initialize the DSBT tables, and there's also a new target macro FINISH_BOOTSTRAP_RELOC. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* Add Makefile support for DSBT ELF.Bernd Schmidt bernds_cb1@t-online.de2011-03-0511-1/+12
| | | | | | | | | | | This adds support for a new binary format, DSBT ELF, to the Makefiles. Every shared library is assigned a DSBT index, and the link.so macro is adjusted to ensure the correct linker argument is passed. Configuration and ldso support will follow in separate commits. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix locale buildPeter S. Mazinger2011-03-042-6/+6
| | | | | | | make xlocale.h a dummy, locale_t is needed without it and uClibc_locale.h is already included by locale.h Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* fix removal of sgtty.hPeter S. Mazinger2011-03-041-1/+3
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* nptl: fix use of IS_IN_LIBPTHREAD macroCarmelo Amoroso2011-03-041-1/+1
| | | | | | IS_IN_LIBPTHREAD should be IS_IN_libpthread instead. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* remove obsoleted and incorrect commentPeter S. Mazinger2011-03-031-5/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* provide internal hidden version of __fcntl_nocancelPeter S. Mazinger2011-03-032-0/+4
| | | | | | guard the prototype with _LIBC, it is only for internal use Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* add _dl_errno support to errno.h, cleanupPeter S. Mazinger2011-03-033-49/+7
| | | | | | | | Add support to use errno.h in ldso. Move __set_errno into _LIBC guard. Remove uClibc_errno.h, unused. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* do not enforce FORCE_SHAREABLE_TEXT_SEGMENTS on sh4Peter S. Mazinger2011-03-031-1/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* sgtty.h is useless, remove it on STRICT_HEADERSPeter S. Mazinger2011-03-033-0/+9
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* paths.h: add _PATH_GSHADOWPeter S. Mazinger2011-03-031-0/+1
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* guard nl_catd structure and related constants with STRICT_HEADERSPeter S. Mazinger2011-03-031-0/+4
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* better guard of IPV6 related stuffPeter S. Mazinger2011-03-031-3/+6
| | | | | | | | Function prototypes are visible whenever IPV6 option is enabled. Structures and constants are visible either if IPV6 is enabled or STRICT_HEADERS is disabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* do not care about libc-internal.h, remove hp-timing.hPeter S. Mazinger2011-03-031-1/+1
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* strcpy: remove unneeded includes from the generic versionPeter S. Mazinger2011-03-031-3/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* update some headersPeter S. Mazinger2011-03-033-33/+40
| | | | | | | | Sync some headers with glibc. realpath is an XSI extension in SuSv4, add back guard and update comment, since it seems to allow != NULL in second arg. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* update some headersPeter S. Mazinger2011-03-0310-44/+81
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* make it possible to compile with -std=gnu99/c99 and use extern inlinesPeter S. Mazinger2011-03-031-1/+1
| | | | | | When compiled with -std=gnu99/c99 __GNUC_GNU_INLINE__ is not defined Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* simplify guard of uClibc internalsPeter S. Mazinger2011-03-031-1/+1
| | | | | | Simplify guard of uClibc internals, since _LIBC sections are removed on install. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove libc-internal.h on installPeter S. Mazinger2011-03-031-1/+1
| | | | | | Remove libc-internal.h on install, I think internal is a typo. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove ucontext.h and guard sigstack structure with SUSV4_LEGACY and ↵Peter S. Mazinger2011-03-039-6/+15
| | | | | | | | | | STRICT_HEADERS Remove ucontext.h if SUSV4_LEGACY is not set and fix it's references. Guard sigstack structure with SUSV4_LEGACY and STRICT_HEADERS. Disable sigstack function prototype, it is not provided by uClibc. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* make parse_printf_format() depend on UCLIBC_HAS_GLIBC_CUSTOM_PRINTFPeter S. Mazinger2011-03-032-0/+5
| | | | | | we already remove the printf.h header if this option is disabled Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove error handling from some syscallsPeter S. Mazinger2011-03-039-51/+33
| | | | | | | Remove error handling from getegid/getgid/geteuid/getuid/getppid/getpid/getpgrp Use strong_alias if fallbacks are needed Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* fix dependency on ADVANCED_REALTIMEPeter S. Mazinger2011-03-033-33/+75
| | | | | | | Do not depend on ADVANCED REALTIME for mq_send/mq_receive Added stubs implementation based on libc's stubs.c Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* fix stubsPeter S. Mazinger2011-03-031-5/+1
| | | | | | We use enosys_stub only in this file so make it static Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* initialize 2 variables to get rid of compiler warningPeter S. Mazinger2011-03-031-1/+1
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* Correct ssp codePeter S. Mazinger2011-03-033-27/+15
| | | | | | | | Avoid using strong_alias in ssp, some archs dislike it. Make stack_chk_guard static. Export __stack_smash_handler only if compatibility option is enabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* add missing prototypesPeter S. Mazinger2011-03-037-4/+34
| | | | | | Add some missing prototypes Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* use common sigthread.hPeter S. Mazinger2011-03-032-45/+7
| | | | | | | NPTL build did not use the correct bits/sigthread.h, use a common version avoiding this. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* add missing prototypesPeter S. Mazinger2011-03-035-0/+7
| | | | | | Add some missing prototypes Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* style updatePeter S. Mazinger2011-03-031-12/+5
| | | | | | Style update avoiding compile warnings Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* syntax fixesPeter S. Mazinger2011-03-033-8/+8
| | | | | | Avoid compile warnings about the use of undefined constants Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* avoid warnings on _STACK_GROWS_* usagePeter S. Mazinger2011-03-037-21/+21
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* syntax fixPeter S. Mazinger2011-03-031-1/+1
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* try to fix duplicated slashes in the generated lib*.so filesPeter S. Mazinger2011-03-033-19/+19
| | | | | | | | Try to fix duplicated slashes in the generated lib*.so files and make sure that on installation the *bin directories are really created (avoid the misbehaviour of creating usrbin dir). Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* initialize tls_tpnt to NULL on all archsPeter S. Mazinger2011-03-033-3/+3
| | | | | | Initialize tls_tpnt to NULL on all archs instead of 0. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>