summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sys/queue.h: update to eglibc versionNatanael Copa2011-12-221-443/+399
| | | | | | | | | | | Xen needs SIMPLEQ_* queue types which was not provided from the old uclibc queue.h. Use same implementation as eglibc. Grabbed from: http://www.eglibc.org/svn/trunk/libc/misc/sys/queue.h Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* x86_64: add PLT bypass for __sigsetjmpMike Frysinger2011-12-033-2/+7
| | | | | | | | | | | | | The current x86_64 setjmp helpers incur a reloc, so fix that up. $ readelf -r lib/libc.so.0 ... Relocation section '.rela.plt' at offset 0xb058 contains 10 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000236010 02a400000007 R_X86_64_JUMP_SLO 000000000000b3c4 __sigsetjmp + 0 ... Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* getutid: add a hidden defMike Frysinger2011-12-032-0/+2
| | | | | | | | | | | | | | The pututline func calls getutid, so add a hidden def for it to avoid plt relocs: $ readelf -r lib/libc.so.0 ... Relocation section '.rela.plt' at offset 0xb058 contains 11 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000236000 01cf00000007 R_X86_64_JUMP_SLO 00000000000190ab getutid + 0 ... Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ldso: bfin: fix sram_flags initMike Frysinger2011-11-271-1/+1
| | | | | | An earlier version had this, but was lost as code was shuffled around. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ldso: bfin: shrink sram mapping funcMike Frysinger2011-11-271-21/+15
| | | | | | The L1 data and L2 code paths duplicate a lot, so unify them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ldso: fdpic: clean up styleMike Frysinger2011-11-272-507/+495
| | | | | | There should (hopefully) be no functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ldso: fdpic: unify duplicate bfin/frv logicMike Frysinger2011-11-278-1214/+626
| | | | | | | Much of the logic in the bfin/frv subdirs is FDPIC specific and not arch specific. So start a new fdpic/ subdir to keep common things. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* make ARRAY_SIZE commonly available internallyMike Frysinger2011-11-272-3/+2
| | | | | | | Some places have opencoded the ARRAY_SIZE macro, so move it to a global internal location so other places can leverage it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ldso: use __func__ rather than __FUNCTION__Mike Frysinger2011-11-273-3/+3
| | | | | | The former is part of a standard (C99) while the latter is not. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: drop manual TARGET_SUBARCH .config lookupMike Frysinger2011-11-261-1/+0
| | | | | | | We source the .config file, so there should be no need to manually extract it. If the sourcing doesn't work, then a lot of things break in this file. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* include/: ignore new sys/eventfd.h symlinkMike Frysinger2011-11-261-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: s/CROSS/CROSS_COMPILE/gCarmelo Amoroso2011-11-256-31/+29
| | | | | | | | Use CROSS_COMPILE instead of CROSS as other projects are doing (i.e. kernel, busybox, buildroot). CROSS is still supported for backward compatibility only Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl: add missing pt-tempname.cBernhard Reutner-Fischer2011-11-241-0/+1
| | | | | | fix bd3c1a2495cbcb51b606f8e4892fcd127f91e645 forgotten file. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc: do not rely upon ulimit kernel syscall.Carmelo Amoroso2011-11-231-8/+0
| | | | | | | | | | | | On several architectures __NR_ulimit syscall number is currently defined but it is remapped onto sys_ni_syscall, while on other architectures they are not longer defined. So use {get,set}rlimit only to implement ulimit interface. It fixes LTP ulimit01 test case. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Acked-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libdl: fix size parameter when unmap library in dlcloseFilippo Arcidiacono2011-11-231-2/+6
| | | | | | | | | | | Fix size parameter when unmap a library by means of dlclose, by taking into account the p_vaddr of first PT_LOAD segment, so it works also for prelinked shared objects. Unmapping of dlopen shared libraries is broken since 94cc6edb78a12655c0602a246fa1cbdc8c6d0ad9 Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* stdio: add support for "e" flag with fopen()Mike Frysinger2011-11-202-1/+17
| | | | | | | Support this useful glibc extension for optionally setting O_CLOEXEC on fopen streams. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libcrypt: do not cast away const of key/saltMike Frysinger2011-11-201-2/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libubacktrace: use .so.$(ABI_VERSION)Bernhard Reutner-Fischer2011-11-181-1/+1
| | | | | | Thanks to William Pitcock for noticing Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: sem_open: use open64 if LFSBernhard Reutner-Fischer2011-11-181-9/+10
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* misc: hide __gen_tempnameBernhard Reutner-Fischer2011-11-173-5/+5
| | | | | | fix signed vs. unsigned comparison warnings while at it Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stdio: hide _stdio_validate_FILEBernhard Reutner-Fischer2011-11-172-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* regex_old: make some internal helpers staticBernhard Reutner-Fischer2011-11-171-5/+5
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* inet: hide relocationsBernhard Reutner-Fischer2011-11-172-1/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* unistd: hide relocationsBernhard Reutner-Fischer2011-11-172-0/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* resolv: hide relocationsBernhard Reutner-Fischer2011-11-173-0/+14
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add a C6X-specific ipc.h.Bernd Schmidt2011-11-141-0/+55
| | | | Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* buildsys: do not install ld.so linker scriptCarmelo Amoroso2011-11-081-1/+2
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libubacktrace: Conditionally link libgcc_ehJason Woodward2011-11-081-1/+1
| | | | | | | | When libubacktrace is not enabled there is no need to link in libgcc_eh Fixes bootstrap failures with (gcc-4.5.x) stage1 compilers that --disable-shared Signed-off-by: Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: pass CFLAGS to e500 fenvBernhard Reutner-Fischer2011-11-081-0/+2
| | | | | | As noted by Jason Woodward Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* honor UCLIBC_HAS_FENV for e500Jason Woodward2011-11-081-0/+2
| | | | | Signed-off-by: Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Fix e500 fpu libm buildJason Woodward2011-11-081-0/+1
| | | | | | | | | | | | Define libm_ARCH_fpu_OUT in libm/powerpc/e500/Makefile.arch as it is used in libm/powerpc/e500/fpu/Makefile.arch libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_fpu_DIR)/%.c,$(libm_ARCH_fpu_OUT)/%.o,$(libm_ARCH_SRC)) This appears to have been broken since cd3a494e99fa4bcad1c2a621b71361005528bead Signed-off-by: Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc: flesh out linux scheduler functionsHenning Heinold2011-11-0710-29/+317
| | | | | | | Most stuff was taken from the eglibc. Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* ldso: support RTLD_NOLOADTimo Teräs2011-11-075-22/+33
| | | | | | | | So application query if specified module is loaded or not with dlopen. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stdlib: add qsort_rBernhard Reutner-Fischer2011-11-074-7/+35
| | | | | | GNU extension like qsort but takes a 3 parameter comparision function. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* powerpc: Fix typo in clone()Bernhard Reutner-Fischer2011-11-041-1/+1
| | | | | | Thanks to strauman at slac stanford edu for noticing Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add stub for eventfd.Jean-Christian de Rivaz2011-11-041-0/+4
| | | | | | | Warn if the enventfd() function is not implemented. Signed-off-by: Jean-Christian de Rivaz <jc@eclis.ch> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: implement a generic sincos().William Pitcock2011-11-043-2/+50
| | | | | | | We already provide sincos() on some archs, so we should ship a generic version. Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: add cabsf() and cabsl() functions.William Pitcock2011-11-041-0/+16
| | | | | Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: implement generic cexp(), cexpf() and cexpl().William Pitcock2011-11-042-1/+65
| | | | | | | | The cexp*() family of functions is defined by the C99 math standard as implementing exponential functions for complex types. Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* config: document eventfdBernhard Reutner-Fischer2011-11-041-1/+2
| | | | | | in LINUX_SPECIFIC Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* setegid: use setresgid conditionallyBernhard Reutner-Fischer2011-11-021-0/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: remove leftover undefsBernhard Reutner-Fischer2011-11-021-61/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: eventually remove sys/eventfd.hBernhard Reutner-Fischer2011-11-021-1/+1
| | | | | | rm sys/eventfd.h unless linux_specific was chosen Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: handle linux module functionsBernhard Reutner-Fischer2011-11-023-6/+16
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: handle linux-specificBernhard Reutner-Fischer2011-11-024-24/+194
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: fix inverted socket logicBernhard Reutner-Fischer2011-11-021-19/+19
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: undef linux specific unless they were asked forBernhard Reutner-Fischer2011-11-021-0/+34
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add eventfd support.Jean-Christian de Rivaz2011-10-313-1/+68
| | | | | | | | | | | | Hello, I whould like to share this simple patch that add the eventfd call to uClibc. Please review so it can be accepted to be merged. Jean-Christian Signed-off-by: Jean-Christian de Rivaz <jc@eclis.ch> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sparc: fix build for linuxthreads.oldRob Landley2011-10-272-1/+2
| | | | | | | | | sparc target has assembly implementations of clone.S that doesn't get used, and thus the build breaks. Also, sparc is missing a header file in pthreads.old that exists in pthreads.new. Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* resolver: add a dependencies for DNS resolver featureCarmelo Amoroso2011-10-271-0/+1
| | | | | | | DNS resolver needs at least IPV4 or IPV6 support enabled to be correctly built. Add such dependency. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>