summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* libc: define cfi_personality and cfi_lsdaBernhard Reutner-Fischer2010-06-171-0/+11
| | | | | | required for proper, current subarch handling Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: fix linking WRT pthreadsBernhard Reutner-Fischer2010-06-171-3/+2
| | | | | | | | Linking order matters. Always did and still does today. See how this makes the ugly and wrong hack to put pthread symbols into librt _and_ linking librt against pthread moot? Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc: Fix non-NPTL threads buildCarmelo Amoroso2010-06-171-1/+3
| | | | | | | | This patch fixes some issues building uclibc with linuxthreads, that seem to have been introduced by the NPTL changes. Signed-off-by: Andrew Stubbs <ams@codesourcery.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* librt: simplify handling LDFLAGSBernhard Reutner-Fischer2010-06-171-9/+6
| | | | | | plus a few cosmetic touch-ups Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: typo fix NO_LONG_DOUBLE variant of gamma_rBernhard Reutner-Fischer2010-06-151-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sh4: Fixes for SH-4 without an FPUCarmelo Amoroso2010-06-143-3/+7
| | | | | | | | This patch disables SH-4 optimizations that rely on the FPU when building for variants that don't have an FPU, such as SH-4AL. Signed-off-by: Andrew Stubbs <ams@codesourcery.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* handle i386 TARGET_SUBARCHBernhard Reutner-Fischer2010-06-131-0/+4
| | | | | | so we can pick the correct nptl locking impls Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix symlinking headersBernhard Reutner-Fischer2010-06-133-23/+18
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: avoid spurious rebuilds of libpthread*.aBernhard Reutner-Fischer2010-06-121-2/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: handle PTHREADS_DEBUG_SUPPORT properlyBernhard Reutner-Fischer2010-06-121-4/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix race condition when generating libpthread.soBernhard Reutner-Fischer2010-06-121-3/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* hcreate_r: silence warning in helper funcBernhard Reutner-Fischer2010-06-111-4/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* wordexp: silence warningBernhard Reutner-Fischer2010-06-111-1/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: remove relocation in pthread_rwlock_init()Bernhard Reutner-Fischer2010-06-111-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* silence some warnings about missing prototypesBernhard Reutner-Fischer2010-06-119-9/+10
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* testsuite: disable some tests for !LFSBernhard Reutner-Fischer2010-06-114-3/+11
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix wrong path to nptl_dbBernhard Reutner-Fischer2010-06-111-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* lxdialog: fix ncursesw include detectionBernhard Reutner-Fischer2010-06-112-2/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: fix clean vs. headercleanBernhard Reutner-Fischer2010-06-111-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: conceal install_headersBernhard Reutner-Fischer2010-06-112-6/+15
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: fix lib/ directory prerequisiteBernhard Reutner-Fischer2010-06-112-16/+7
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: unbreak scalbn for 64-bit processorsRoman I Khimov2010-06-101-1/+1
| | | | | | | Obvious typo. Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* testsuite: .gitignore symlinkBernhard Reutner-Fischer2010-06-101-0/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* testsuite: do not run inet tests if !ipv4 && !ipv6Bernhard Reutner-Fischer2010-06-101-0/+7
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* lgamma: fix sign handlingBernhard Reutner-Fischer2010-06-104-2/+26
| | | | | | | add testcase from http://sourceware.org/bugzilla/show_bug.cgi?id=4407 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: unhide signgamRoman I Khimov2010-06-102-2/+0
| | | | | | | | Fixes signgam checks in math tests on x86_64. It's R_X86_64_COPY for program, so the program didn't see any changes from libm. Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* do not generate garbled interpBernhard Reutner-Fischer2010-06-081-3/+4
| | | | | | for parallel make Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix for !ipv4 && !ipv6Bernhard Reutner-Fischer2010-06-082-7/+8
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* mips/socket.h: add SOCK_CLOEXEC and SOCK_NONBLOCK definitions for mipsKhem Raj2010-06-071-7/+21
| | | | | | * __ss_aligntype is defined to unsigned long int Signed-off-by: Khem Raj <raj.khem@gmail.com>
* strverscmp: I forgot to export itDenys Vlasenko2010-06-041-0/+1
| | | | | | | | | | | Result was: strverscmp.o: 000000ec T __GI_strverscmp i.e. no plain "strverscmp"! Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ldso/mips: Fix relocation parsing so that they work on both mips32/mips64Khem Raj2010-06-021-2/+2
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Rob Landley <rob@landley.net>
* inotify: add inotify_init1 system call supportVladimir Zapolskiy2010-06-012-0/+17
| | | | | | | | This patch introduces support for inotify_init1 system call, found since Linux 2.6.27. Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bits/socket.h: add SOCK_CLOEXEC and SOCK_NONBLOCK supportVladimir Zapolskiy2010-06-011-1/+11
| | | | | | | | This patch adds support for SOCK_CLOEXEC and SOCK_NONBLOCK socket descriptor flags, which are introduced since Linux 2.6.27 Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* utils: Fix ldd segfaultNatanael Copa2010-05-241-1/+1
| | | | | | | | | | | | | | | | | Fixes ldd segfault on this testcase: extern void _dl_getenv(void); void foo(void) { printf("foo: %x\n", &_dl_getenv); } linked as -shared It fixes bug #1507 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* mips: Add vfork to libcKhem Raj2010-05-193-6/+18
| | | | | | | | | * When using NPTL get clone.o from nptl. * Only use vfork if syscall is there. * Add libc_a_SSRC to LINUX_LIBC_ARCH_OBJ. * Use CLEAN_* for clean target. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mips/bits/pthreadtypes.h: Re-include sgidefs.hKhem Raj2010-05-191-0/+1
| | | | | | | | * This was dropped accidently in last merge removal meant a lot of warnings about undefined _ABI64. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* static build: define pthreads wrappers only for threaded buildsTimo Teräs2010-05-171-0/+2
| | | | | | | | Otherwise we get compiler errors due to undefined prototypes as noticed by Denys. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* some (all?) archs don't define asm, so use builtin __asm__Austin Foxley2010-05-171-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fix fcntl64 for 64 bit targets.Rob Landley2010-05-171-2/+2
| | | | | | | 64 bit targets often don't have a separate fcntl64() system call, because they don't need one. Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* workaround GCC PR32219Denys Vlasenko2010-05-171-2/+13
| | | | | | | | we ended up calling 0 Fixes bug #1033 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* resolv.h: fix wring indentation of #ifdef/#endif pairsDenys Vlasenko2010-05-161-5/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* utils/Makefile.in: Define GETCONF_DIR for host builds of getconf.Khem Raj2010-05-111-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* powerpc/Makefile.arch: Add objclean and headers_clean targets for NPTL.Khem Raj2010-05-091-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* powerpc: Add TLS and NPTL supportKhem Raj2010-05-0942-396/+957
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* mips/Makefile.arch: Remove -f option to $(do_awk)Khem Raj2010-05-071-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* resolv: various memory corruption and off by one fixesTimo Teras2010-05-071-4/+8
| | | | | | | Fixes resolution of names with AAAA entries and gethostbyaddr issues. Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* static build: fix internal locking weaks to get pulled in alwaysTimo Teras2010-05-073-41/+35
| | | | | | | | | | | Linker is smart and does not pull in weaks.os, ever. This happens because that compilation unit does not get strong references and ld eliminates dead code. We really need the weaks for static build in a compilation unit that is always there, otherwise it won't work. Signed-off-by: Timo Teras <timo.teras@iki.fi> Acked-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: fix x86_64 R_X86_64_TPOFF64 and R_X86_64_DTPOFF64 relocationsRoman I Khimov2010-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | R_X86_64_TPOFF64 revealed by trivial testcase: =================================================================== #include <stdio.h> #include <errno.h> int main() { void *a = &errno; printf("errno addr: %llx\n", a); __asm__("movq errno@gottpoff(%%rip), %0;\n" "add %%fs:0x0,%0;" : "=r"(a) ); printf("got errno addr: %llx\n", a); return 0; } =================================================================== The addresses application got with R_X86_64_TPOFF64 was different than the once libc internal __errno_location returned. R_X86_64_DTPOFF64 testcase is even simpler than that: =================================================================== #include <stdio.h> #include <errno.h> #include <netdb.h> #undef h_errno extern __thread int h_errno; int main() { printf("h_errno addr: %llx\n", &h_errno); printf("__h_errno_location addr: %llx\n", __h_errno_location()); return 0; } =================================================================== but needs to be linked with "-lpthread". This way we've got h_errno relocation via R_X86_64_TPOFF64 in application and h_errno relocation via R_X86_64_DTPOFF64 in libpthread which has its own __h_errno_location() (probably we can kill it later?). And addresses were different again. The problem is that both relocations resolve symbols in external modules and thus should use symbol_addr instead of sym->st_value. Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fix gen_wc8bit support for finding a UTF8 locale on host.Andy Gibbs2010-05-051-2/+3
| | | | | | | | | | | | | gen_wc8bit was previously patched to support UTF8 locales other than the default en_US.UTF-8 by patch id 0e14b8f425c562749d3821a42414b1ce6b3b0923. This was incomplete in its implementation and still failed where item(s) in the list returned by 'locale -a' already had 'UTF8' appended to the name. This patch rectifies this situation, plus adds an extra fix to avoid trimming '\n' from an empty line which could cause a segfault. Signed-off-by: Andy Gibbs <andyg1001@hotmail.co.uk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: use arch-specific pthread_cond_timedwait and pthread_cond_wait on x86_64Roman I Khimov2010-05-032-3/+4
| | | | | | | | | Generic ones were broken on x86_64, pthread/ex2 test failed while pthread/ex5 worked fine. So use arch-specific functions and fix linkage failure with __pthread_mutex_cond_lock_adjust. Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>