summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | fix multiple definitions of pthread_once for x86_64Austin Foxley2009-12-163-4/+3
| | | | | | | | | | | | also add a missing weak for clone Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | fix compiling test cases in static modeAustin Foxley2009-12-161-2/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | x86_64: no waitpid syscall exists, so use wait4Austin Foxley2009-12-162-8/+11
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | build: Do not define -DPIC longer through build systemCarmelo Amoroso2009-12-161-1/+1
| | | | | | | | | | | | | | Now all code relies upon __PIC__ flag defined by compiler, so it does not need to explicitly define the PIC macro through build system Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso2009-12-1631-71/+71
| | | | | | | | | | | | | | Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | Merge remote branch 'origin/master' into nptlAustin Foxley2009-12-151-48/+59
|\| | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * sh: fix endianess and optimise the SH4 memcpyGiuseppe Cavallaro2009-12-141-2/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the big-endian code and adds a new optimization only for little endian mode. This optimization is based on prefetching and 64bit data transfer via FPU. Tests shows that ---------------------------------------- Memory bandwidth | Gain | sh4-300 | sh4-200 ---------------------------------------- 512 bytes to 16KiB | ~20% | ~25% from 32KiB to 16MiB | ~190% | ~5% ---------------------------------------- Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * syslog: use send(MSG_NOSIGNAL) instead of write, thus no need to handle SIGPIPEDenys Vlasenko2009-12-131-7/+6
| | | | | | | | | | | | | | | | | | | | | | Size changes by this and previous change: text data bss dec hex filename 1151 13 2 1166 48e libc/misc/syslog/syslog.o 1093 10 2 1105 451 libc/misc/syslog/syslog.o 1047 10 2 1059 423 libc/misc/syslog/syslog.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * syslog: fix openlog(xx, LOG_KERN) and optimize a bitDenys Vlasenko2009-12-131-45/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix: logfac == 0 in openlog(xx, logfac) is allowed now. Corresponding internal openlog() call in vsyslog() uses explicit LOG_USER in order to set it as a default facility. Optimizations: mylock is not recursive now, since a single intenal call of openlog is converted to a call to openlog_internal which assumes that lock is already taken. No recursive locking is possible now. LogFacility is reduced to byte. cache static LogFile in auto variable fd (smaller code). vsyslog with bogus pri parameter wouldn't lock/unlock and mess with signals - it will just return at once. pass NULL as ident string in internal openlog call - same effect as passing LogTag but smaller code. comment out "if (LogTag)" checks - it is never NULL. use the same struct sigaction for setting new sigaction and for saving old one - saves ~32 bytes of stack. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Include bits/libc-lock.h to get __libc_once_defineKhem Raj2009-12-111-0/+1
| | | | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Austin Foxley <austinf@cetoncorp.com>
| * test_dlopen: Remove extra -lpthread from LD_FLAGS for dltest{2}Filippo Arcidiacono2009-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | dltest and dltest2 do not refer any symbols implemented in pthread library, so do not explicitly link them with pthread. It is required only for the shared objects that are loaded via dlopen by those tests. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * sh: Add a prototype for the gcc __set_fpscr internal functionCarmelo Amoroso2009-12-031-1/+3
| | | | | | | | | | | | | | | | | | The sh port uses the gcc __set_fpscr internal function, but neither gcc nor glibc creates a prototype for it. This leads to a bunch of random warnings about implicit decls during the build. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * uClibc_ctype.h: fix inverted check for susv4 macroAustin Foxley2009-11-301-1/+1
| | | | | | | | | | | | Was causing build failures if ctype tables were disabled and susv4 was on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/.gitignore: Ignore a few more test binariesAustin Foxley2009-11-291-0/+3
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/dlopen: fix build for libtest.soAustin Foxley2009-11-291-0/+1
| | | | | | | | | | | | needs -lpthread, recent addition of -z,defs and -z,now exposed this Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/dlopen: Match the function name that libtest actually setsAustin Foxley2009-11-291-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/pthread: fix build of cancellation-points testAustin Foxley2009-11-291-2/+2
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/stat: fix compiling the memcmp-stat test when __USE_MISC is definedAustin Foxley2009-11-291-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | fix typo that sneaked in with 9a7506Natanael Copa2009-12-151-1/+1
| | | | | | | | | | Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | Include bits/libc-lock.h to get __libc_once_defineKhem Raj2009-12-111-0/+1
| | | | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Go back to using nptl_arch_headersAustin Foxley2009-12-111-1/+2
| | | | | | | | | | | | this is part of the revert of 641e7e36ad0a9 Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Revert "nptl: make build depend directly on nptl headers"Austin Foxley2009-12-118-29/+38
| | | | | | | | | | | | This reverts commit 641e7e36ad0a9b2899b04f256c5b243ada7da279. Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | get x86_64 nptl buildingAustin Foxley2009-12-1148-318/+1245
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: fix even more old style declarationsAustin Foxley2009-12-119-26/+20
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: fix a few more old style declerationsAustin Foxley2009-12-094-15/+12
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: fix old style function declerationsAustin Foxley2009-12-0998-282/+234
| | | | | | | | | | | | also fix a few shadowed local warnings Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: make build depend directly on nptl headersAustin Foxley2009-12-098-38/+29
| | | | | | | | | | | | | | | | | | gets rid of nptl_headers,nptl_arch_headers,nptl_linux_headers targets also, clean up extra slashes in i386/sparc and unify the implementation of nptl header generation between all archs Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | warn about old-style crap in extra-annoyance-modeBernhard Reutner-Fischer2009-12-091-0/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | test_dlopen: Remove extra -lpthread from LD_FLAGS for dltest{2}Filippo Arcidiacono2009-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | dltest and dltest2 do not refer any symbols implemented in pthread library, so do not explicitly link them with pthread. It is required only for the shared objects that are loaded via dlopen by those tests. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | i386 nptl: add missing weak_alias for pthread_cond_signalAustin Foxley2009-12-041-0/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | ldso_tls: Refetch dtv from memory if THREAD_DTV has changedCarmelo Amoroso2009-12-034-2/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _dl_update_slotinfo might change THREAD_DTV () (if it needs to reallocate it), but the caller (__tls_get_addr) doesn't refetch dtv from memory, it uses its cached copy. This may crash (if dtv[GET_ADDR_MODULE] is off the cliff, or might read uninitialized memory and return it. Typically dtv[GET_ADDR_MODULE].pointer.val is NULL and so __tls_get_addr returns NULL + offset_within_PT_TLS. The next time __tls_get_addr is called for the same library it will return correct address as _dl_update_slotinfo won't need to be called. Signed-off-by: Jakub Jelinek <jakub@redhat.com> Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | test_tls: Add two new tests for tls tst-tls{16,17} taken from glibcCarmelo Amoroso2009-12-037-2/+161
| | | | | | | | | | Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | test_tls: Rename tst-tls16 to tst-tls-at-ctorCarmelo Amoroso2009-12-033-5/+5
| | | | | | | | | | | | | | | | Rename tst-tls16 to tst-tls-at-ctor (including main and related shared object) to avoid name clashing with new tests ported from glibc. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | build: Move test build flags in Makefile.inCarmelo Amoroso2009-12-032-1/+1
| | | | | | | | | | | | | | Move test build flags in Makefile.in Makefile should be used only as a container for other sub Makefiles Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | sh: Add a prototype for the gcc __set_fpscr internal functionCarmelo Amoroso2009-12-031-1/+3
| | | | | | | | | | | | | | | | | | The sh port uses the gcc __set_fpscr internal function, but neither gcc nor glibc creates a prototype for it. This leads to a bunch of random warnings about implicit decls during the build. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | uClibc_ctype.h: fix inverted check for susv4 macroAustin Foxley2009-11-301-1/+1
| | | | | | | | | | | | Was causing build failures if ctype tables were disabled and susv4 was on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | getaddrinfo.c: include tls.h before resolv.hAustin Foxley2009-11-301-0/+1
| | | | | | | | | | | | | | | | This is needed because tls.h ends up includeing nptl/descr.h which needs the full res_state definition. resolv.h also ends up including tls.h, but _without_ the full res_state struct it errors. Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/.gitignore: ignore a missed nptl test binaryAustin Foxley2009-11-291-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/.gitignore: Ignore a few more test binariesAustin Foxley2009-11-291-0/+3
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/Rules.mak: disable -z,defs for nowAustin Foxley2009-11-291-2/+2
| | | | | | | | | | | | | | * A bunch of the nptl tests don't compile when -z,defs is on * also turn on -std=gnu99 for the HOSTCC (_glibc) compiles Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/nptl: rework tst-tls3 to link with -z,nowAustin Foxley2009-11-293-11/+32
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/: compile fixes for nptl and tls testsAustin Foxley2009-11-294-10/+25
| | | | | | | | | | | | | | | | | | | | * Add a GLIBC_TESTS_DISABLED var because many of these tests need internal uClibc stuff. This disables the HOSTCC build of these tests * Fix up tls test macros for x86 * Fix the linking of the tls tests Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/nptl: don't use c99 features if you don't need toAustin Foxley2009-11-291-1/+2
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test: nptl and tls tests need main include dirAustin Foxley2009-11-292-0/+2
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/dlopen: fix build for libtest.soAustin Foxley2009-11-291-0/+1
| | | | | | | | | | | | needs -lpthread, recent addition of -z,defs and -z,now exposed this Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/dlopen: Match the function name that libtest actually setsAustin Foxley2009-11-291-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/pthread: fix build of cancellation-points testAustin Foxley2009-11-291-2/+2
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/stat: fix compiling the memcmp-stat test when __USE_MISC is definedAustin Foxley2009-11-291-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | generate nptl headers without a recursive make callAustin Foxley2009-11-292-8/+3
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | don't use __i686 in symbol names as it seems gcc can define itAustin Foxley2009-11-296-32/+33
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>