summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* create DEVEL_PREFIX/MULTILIB_DIR dir rather than DEVEL_PREFIX/libNatanael Copa2010-12-021-2/+2
| | | | | | | | | This fixes issue with GNU Make 3.82 when running: make install DESTDIR=$someplace Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Config.sparc: remove warning about shared libs on v7Austin Foxley2010-12-011-3/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* libc: fix strtoqNatanael Copa2010-12-014-1/+94
| | | | | | | | strtoq should always return a quad_t and be an alias of strtol on 64 bit and strtoll on 32 bit. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc_sh: add __tls_get_addr to static libc (SH)Filippo Arcidiacono2010-12-012-1/+32
| | | | | | | | | | Add __tls_get_addr function to static libc allowing to handle local dynamic TLS access model. On SH, linker optimizations are not required, so __tls_get_addr can be called even in statically linked binaries. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Revert "libc_tls: Do not include generic libc-tls from arch specific ↵Carmelo Amoroso2010-12-012-0/+2
| | | | | | | | | | | | | implementation" This reverts commit 0c468129356f5ce6780e7369c271d74631ae03ba. Indeed recent updates into buildsys managed to filter-out generic implementation when arch specific one is defined, so duplicated symbols into the libc.a In the meanwhile, do a minor fix into mips version not using relative path to include <generic/libc-tls.c> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libc_tls: Do not include generic libc-tls from arch specific implementationCarmelo Amoroso2010-11-292-2/+0
| | | | | | | | | | | libpthread/nptl/sysdeps/generic/libc-tls.c is built as well, so it does not need that arch specific version of libc-tls.c (MIPS and ALPHA) includes it. The arch libc-tls.s is aimed to provide the implementation of __tls_get_addr for the static libc.a, because on these archs the linker relaxations are not required and it could be possible to have local-dynamic access models in static libraries as well. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libc_utmp: Fix getutmp and getutmpx for x86_64Carmelo Amoroso2010-11-281-2/+4
| | | | | | | | | | | | On x86_64, when WORDSIZE_COMPAT32 is enabled, the ut_tv field of 'struct utmp' and 'struct utmpx' are defined as two nested structs instead of being defined as 'struct timeval', so it is not possible to directly assign the two ut_tv values. This patch split the assignment by setting each fields (tv_sec, tv_usec) of the ut_tv filed separately It is als compatible with 'struct timeval' usage. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Revert "ldso: silence warning about unused tls var if !tls"Bernhard Reutner-Fischer2010-11-241-2/+0
| | | | | | This reverts commit 23fa805150d573a913cad69d34c06f3b2ce54270. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Config: default ia32 to i486Bernhard Reutner-Fischer2010-11-242-1/+3
| | | | | | NPTL requires i486 on ia32 since i386 doesn't provide required lll Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc: silence warningBernhard Reutner-Fischer2010-11-241-0/+1
| | | | | | about implicit declaration of memset in system() Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* ldso: silence warning about unused tls var if !tlsBernhard Reutner-Fischer2010-11-241-0/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* config_parser: hide symbolsBernhard Reutner-Fischer2010-11-241-0/+4
| | | | | | Our impl has diverged from busybox' so make sure nobody else uses it. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test: ignore some more binariesBernhard Reutner-Fischer2010-11-241-0/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* wchar: bug #1471: fix cornercase in mbrtowcBernhard Reutner-Fischer2010-11-244-2/+26
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: add make {,install_}startfilesBernhard Reutner-Fischer2010-11-243-3/+12
| | | | | | This builds and installs the crt files. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test/math: bessel depend on XSI_MATHBernhard Reutner-Fischer2010-11-241-2/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* resolv.c fails for /etc/hosts lookupsPhilip Nye2010-11-231-8/+12
| | | | | | | | | | | | Patch attached: Fix a bug in offset calculations when parsing /etc/hosts in resolv.c. Formerly a miscalculation meant that having found the correct line, the code was trashing its own result data. Signed-off-by: Philip Nye <philipn@engarts.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Disables the automatic disable of shared library for sparc-v7.Konrad Eisele2010-11-181-1/+0
| | | | | | | | | | I dont see a dependency between shared library and v7. The difference between v7 and v8 is that in v8 you have the added math asm-insns: smul/umul/udiv/sdiv/urem. It shouldnt affect shared libraries creation. Signed-off-by: Konrad Eisele <konrad@gaisler.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Adding quad float gcc intrinsic implementation for SPARCAustin Foxley2010-11-1841-2/+7220
| | | | | | | | | Sparc-Gcc generates q_xxx intrinsic calls for quad float ("long double") code. The routines from glibc's glibc-2.9/sysdeps/sparc/sparc32/soft-fp/* where taken and ported to uclibc. Signed-off-by: Konrad Eisele <konrad@gaisler.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ntpl: fix static linking by not leaking SSP_ALL_CFLAGSNatanael Copa2010-11-1115-16/+0
| | | | | | | | | | | | | | | The SSP_ALL_CFLAGS in nptl arch CFLAGS leaks out and forces things like dl-support.c, brk.c, sbrk.c memcpy, etc to be built with -fstack-protector-all. This is bad when linking statically since initializing TLS will call those functions before SSP is initialized. The libpthread itself will still be built with -fstack-protector-all due to CFLAGS-nptl has SSP_ALL_CFLAGS in libpthread/nptl/Makefile.in Thanks to Timo Teras for helping with this. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: use correct unwind header for unwind-forcedunwindBernhard Reutner-Fischer2010-11-101-0/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: build infrastructureSteven J. Magnani2010-11-104-67/+35
| | | | | | | Fix Microblaze config and makefiles. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: thread supportSteven J. Magnani2010-11-103-0/+268
| | | | | | | Header files needed to build linuxthreads.old for microblaze. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: optimized memcpy/memmoveSteven J. Magnani2010-11-103-0/+687
| | | | | | | Port optimized memcpy/memmove from the kernel. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: misc headersSteven J. Magnani2010-11-104-17/+71
| | | | | | | Other header files for uClibc compilation. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: kernel headersSteven J. Magnani2010-11-105-64/+72
| | | | | | | Sync kernel header definitions with those used in recent mainline kernels. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: Restore soft-floatSteven J. Magnani2010-11-102-0/+225
| | | | | | | Software floating point for microblaze. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: vfork/clone interfaceSteven J. Magnani2010-11-102-52/+49
| | | | | | | | Fix the microblaze vfork() and clone() implementations. Add support for clone2(). Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: syscall interfaceSteven J. Magnani2010-11-102-57/+48
| | | | | | | | | Fix the microblaze syscall interface. Recent mainline kernels no longer carry userland code to invoke syscalls and microblaze can use the uClibc generic code. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: Fix crt bootstrapSteven J. Magnani2010-11-103-0/+147
| | | | | | | | | | | Rework crt bootstrap to work with the new __uClibc_main(), and hardwire crt init/fini code since the awk approach to generating it on the fly doesn't work for microblaze. The output from the gcc 4.1.2 compiler is scrambled so that the tags expected by the awk script to bracket the init/fini entry and exit code no longer do. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: Fix setjmp/longjmpSteven J. Magnani2010-11-103-39/+50
| | | | | | | Some state and registers are missing from setjmp/longjmp handling. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* ldso/include/dl-hash.h: suppress compiler warning. no code changesDenys Vlasenko2010-11-021-6/+6
| | | | | | | | | | The warning was repeated for every .c file which is including this header: ./ldso/include/dl-hash.h: In function '_dl_find_hash': ./ldso/include/dl-hash.h:150: warning: unused parameter 'tpntp' Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ldouble_wrappers: make code less verbose via WRAPPER2 macroDenys Vlasenko2010-11-021-44/+16
| | | | | | Tested: ran testsuite Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ldouble_wrappers: remove i386-specific optimizationDenys Vlasenko2010-11-021-102/+3
| | | | | | | | | | | | | | | | | | | | | | | | | It is deemed too unsafe. Quoting Timo: If I'm building with "-fPIC -pg" it instruments all C functions with profiler stuff which is called via PLT and causes EBX reloads --> crash -fno-omit-frame-pointer is sometimes useful for profiling too --> crash Also the upcoming -fsplit-stack will be broken by this too (that might need additional uclibc support though). And I'm pretty sure there's also other similar compiler features. There's no predefined #defines in gcc for any of these. What I'm trying to say that there are *numerous* situations when the compiler can create stack frame for you without you ever knowing it. And if you want to do a tail jump, you really should be doing it from .S file where you control fully the prologue/epilogue code. (GCC naked attribute does not seem to work on x86.) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: disable tail jump trick if __SSP_ALL__ (was using wrong conditional)Denys Vlasenko2010-10-312-1/+5
| | | | | | Thanks, Timo! Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix tgamma to actually do return true gamma functionDenys Vlasenko2010-10-317-26/+106
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: improve readability of math.h; expand comments and docsDenys Vlasenko2010-10-316-45/+56
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: remove int_WRAPPER_C99 macro, add test which checks that I did not ↵Denys Vlasenko2010-10-313-28/+139
| | | | | | break it Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: revert wrong ldouble wrapper hack "fix"Denys Vlasenko2010-10-311-8/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix false positives in double testsDenys Vlasenko2010-10-312-1/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix remaining failures in test-floatDenys Vlasenko2010-10-313-17/+84
| | | | | | | | These two failures are fixed: Failure: Test: ilogb (0.0) == FP_ILOGB0 plus exceptions allowed Failure: Test: ilogb (NaN) == FP_ILOGBNAN plus exceptions allowed Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix rint/scalb testcase failuresDenys Vlasenko2010-10-303-34/+80
| | | | | | | | | | | | | | | | | | | These failures no longer happen: Failure: Test: scalb (2.0, 0.5) == NaN plus invalid exception Failure: Test: scalb (3.0, -2.5) == NaN plus invalid exception Failure: Test: rint (0.5) == 0.0 Failure: Test: rint (1.5) == 2.0 Failure: Test: rint (2.5) == 2.0 Failure: Test: rint (3.5) == 4.0 Failure: Test: rint (4.5) == 4.0 Failure: Test: rint (-0.5) == -0.0 Failure: Test: rint (-1.5) == -2.0 Failure: Test: rint (-2.5) == -2.0 Failure: Test: rint (-3.5) == -4.0 Failure: Test: rint (-4.5) == -4.0 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix powf testcase failuresDenys Vlasenko2010-10-301-28/+35
| | | | | | | | | | | Fixed failures: Failure: Test: pow (1, NaN) == 1 Failure: Test: pow (1, inf) == 1 Failure: Test: pow (-1, inf) == 1 Failure: Test: pow (1, -inf) == 1 Failure: Test: pow (-1, -inf) == 1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix scalb testsuite failuresDenys Vlasenko2010-10-301-7/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix testuite failure in modfDenys Vlasenko2010-10-302-11/+7
| | | | | | | | | | This error is gone: Failure: Test: modf (NaN, &x) == NaN Result: is: -0.00000000000000000000e+00 -0 should be: nan nan Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test/math/*: unbreakDenys Vlasenko2010-10-3012-10/+10122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test/math was not running at all, presume it has bit rotted: It was trying to run libm-test.c as if it is a binary. It was looking for libm-test-ulps (file with allowed errors in lower bits) in arch-specific dirs which do not exist in uclibc, as a result wrong file (libm-test.inc) was used instead. Test failure was not showing the error result, user had to fish it out from some .out files. I added libm-test-ulps-ARCH files from recent glibc, this filtered out a lot of false positives. For example, cosf(M_PI_6l * 4.0) ideally should be -0.5, we are getting -0.50000005047356477217, and this isn't a failure (the difference is one lowest bit of mantissa). "make check UCLIBC_ONLY=1 VERBOSE=1" still fails, but not as catastrophically as before. For the record, the failure occurs on the stage where we check 32-bit float functions, these tests fail: Failure: Test: modf (NaN, &x) == NaN Failure: Test: ilogb (NaN) == FP_ILOGBNAN plus exceptions allowed Failure: Test: scalb (2.0, 0.5) == NaN plus invalid exception Failure: Test: scalb (3.0, -2.5) == NaN plus invalid exception Failure: Test: scalb (0, NaN) == NaN Failure: Test: scalb (1, NaN) == NaN Failure: Test: scalb (0, inf) == NaN plus invalid exception Failure: Test: scalb (-0, inf) == NaN plus invalid exception Failure: Test: scalb (1, inf) == inf Failure: Test: scalb (-1, inf) == -inf Failure: Test: scalb (inf, -inf) == NaN plus invalid exception Failure: Test: scalb (-inf, -inf) == NaN plus invalid exception Failure: Test: scalb (1, NaN) == NaN Failure: Test: scalb (0, NaN) == NaN Failure: Test: scalb (inf, NaN) == NaN Failure: Test: pow (1, NaN) == 1 Failure: Test: pow (1, inf) == 1 Failure: Test: pow (-1, inf) == 1 Failure: Test: pow (1, -inf) == 1 Failure: Test: pow (-1, -inf) == 1 Failure: Test: rint (0.5) == 0.0 Failure: Test: rint (1.5) == 2.0 Failure: Test: rint (2.5) == 2.0 Failure: Test: rint (3.5) == 4.0 Failure: Test: rint (4.5) == 4.0 Failure: Test: rint (-0.5) == -0.0 Failure: Test: rint (-1.5) == -2.0 Failure: Test: rint (-2.5) == -2.0 Failure: Test: rint (-3.5) == -4.0 Failure: Test: rint (-4.5) == -4.0 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sleep: include Linus' email in the commentDenys Vlasenko2010-10-301-5/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sleep: document testing result on 2.4.x kernelsDenys Vlasenko2010-10-291-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sleep: add comment with test program for SIG_IGNed SIGCHLDDenys Vlasenko2010-10-291-5/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix msync() redefinition for noMMU buildBernhard Reutner-Fischer2010-10-271-0/+5
| | | | | | | | | | An architecture that _may_ have a MMU (and thus implements the msync syscall), but for which the kernel and uClibc are built as noMMU, we have a stub for msync. Thanks to Steven J. Magnani for noticing. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>