commit 22e153b5c94c10bd10120bd34a936686514a2299 Author: Bernhard Reutner-Fischer Date: Wed Jun 8 21:35:20 2011 +0200 branch 0.9.32 Signed-off-by: Bernhard Reutner-Fischer commit cf0b3a3342f24dbf601ba639bdce5b2a2f001c7a Author: Carmelo Amoroso Date: Mon May 30 14:22:57 2011 +0200 buildsys: fix pregen target (!NPTL with LOCALE) When NPTL is not enabled, and LOCALE support is used, compilation fails with the following error: ------------------------------------------------------------------------- MKDIR include/bits GEN include/bits/sysnum.h make[1]: *** No rule to make target `../..//include/bits/uClibc_ctype.h', needed by `../../extra/locale/gen_wc8bit.c'. Stop. make: *** [pregen] Error 2 ------------------------------------------------------------------------- The problem is that "headers" is not listed as prerequisite of pregen. These have been changed multiple times recently: o Austin: order headers before pregen-headers 1f5c73c9f8a98b1d2a35cea868a585c97ab0e436 o Khem: pregen: Fix the parallel build problem in pregen target 046035ecde92262d96eff2192ba3cda716f04909 o Khem: pregen-headers: Add new target which depends on headers. ef18cfe8ebab25f5ef92e81956f50e2dc57df602 o Carmelo: build: Fix infinite loop when no threading support is enabled ff5e4de7088fe8d34812c2a1e604bf04be713606 In all of these commits headers was actually as prerequisite In commit 9381d622e2411a35a5fd73a5a573eb269e2dd9c9 [nptl: fix buildsys] by Bernhard, headers was removed, causing the problem reported above. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 399ab8e650e03cffbe8f1e687192d33f3bf942ad Author: Bernhard Reutner-Fischer Date: Tue May 31 09:47:12 2011 +0200 libubacktrace: Fix ASNEEDED emission In master the variable is called SHARED_LIBNAME and not SHARED_MAJORNAME. Signed-off-by: Bernhard Reutner-Fischer commit 5c49e11c01b0baf4c2c54259e5ec06274251f0fa Author: Bernhard Reutner-Fischer Date: Tue May 31 09:45:44 2011 +0200 NPTL: Fix CTOR_DTOR Signed-off-by: Bernhard Reutner-Fischer commit 204c7849029d90e5e3486670a6a07a76f949afd6 Author: Filippo Arcidiacono Date: Fri May 27 17:36:20 2011 +0200 libc: make common longjmp usable with NPTL Call _longjmp_unwind conditionally under NPTL config option, making longjmp usable with NPTL. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 461c76887fa071aa428a17ef05cb2eb4eed1f93c Author: Filippo Arcidiacono Date: Fri May 27 17:17:51 2011 +0200 sh: use the common implementation for longjmp Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 5e87d86aceed23e9f2cffe4e6cbcd99569a4dac1 Author: Filippo Arcidiacono Date: Fri May 27 17:08:36 2011 +0200 sh: fix build in !NPTL case Fix build issue due to missing symbols in !NPTL case: - vfork - _longjmp_unwind Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 8514218c136c9a21a5ed4f123d2c49f21ef86947 Author: Alan Davis Date: Thu May 26 18:15:06 2011 +0200 Correct a bug when remapping textrel segments on nommu From: Alan Davis On C6X, when trying to execute a program that has a textrel DSO, it fails to load. The telltale line in the LD_DEBUG output is: _dl_get_ready_to_run:779: file=''; needed by './a.out' The corresponding DT_NEEDED entry has 'libc.so.0', but here the filename is empty. This is what is happening in _dl_elf_shared_library(): First, map all segments according to their permissions. Text gets initially mapped read-only. Then, parse the dynamic information. The dynamic table is in RW but some of the tags may point to RO. For example, DT_NEEDED points to a string in .dynstr which is in RO. These pointers get computed according to the loadmap from the original mapping. Then, in response to a DT_TEXTREL tag, the RO segment gets remapped, thereby invaliding anything that points to it, in particular certain dynamic tags such as DT_NEEDED. The following patch re-parses the dynamic info after the remapping so as to re-compute any invalid pointers. Signed-off-by: Alan Davis Signed-off-by: Bernd Schmidt commit 71d63ed75648da9b0b71afabb9c60aaad792c55c Author: Khem Raj Date: Fri May 13 15:31:06 2011 -0700 unwind.h: Move to libc/sysdeps from nptl sysdeps Signed-off-by: Khem Raj commit 1bfe83b42b5b850c20ed8d35819cced510eaef3c Author: Bernhard Reutner-Fischer Date: Fri May 13 12:16:29 2011 +0200 epoll: redo cancellation to match master Signed-off-by: Bernhard Reutner-Fischer commit c6057584e07fae9c8b96e6a5af0271b2e2bc85f6 Author: Peter S. Mazinger Date: Fri May 13 01:56:08 2011 +0200 epoll.c: add cancellation to epoll_[p]wait() While there, fix epoll_pwait syscall, it takes 6 arguments Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer commit 2fbbd10ac6a8218555e2ed731a95b275957b2261 Author: Bernhard Reutner-Fischer Date: Thu May 12 12:26:41 2011 +0200 libm: fix building out-of-tree Thanks to Thierry Reding for noticing! Signed-off-by: Bernhard Reutner-Fischer commit f6e44ebb529508cbc6ae5ef6a24614b85ad0f16f Author: Bernhard Reutner-Fischer Date: Thu May 12 12:11:14 2011 +0200 wordexp: fix mishandled return value of pipe call and use pipe2 if available while at it. Signed-off-by: Bernhard Reutner-Fischer commit 44100dac1138c480deabb72ee8e180544005dfd9 Author: Bernhard Reutner-Fischer Date: Thu May 12 10:37:36 2011 +0200 linux_specific: handle accept4 and pipe2 Signed-off-by: Bernhard Reutner-Fischer commit 3fb846d24c2b74f6dba36580315e1666eca015ee Author: Bernhard Reutner-Fischer Date: Thu May 12 10:30:48 2011 +0200 NPTL: needs madvise internally This fixes 8d09a50a044638fde2ed3e1a1c4d3c7c5a3cce5c since NPTL also uses madvise internally. Signed-off-by: Bernhard Reutner-Fischer commit 213709e1e14418f728b52c8fefb4af505c99d567 Author: Bernhard Reutner-Fischer Date: Thu May 12 10:07:25 2011 +0200 socket: fix stubs Signed-off-by: Bernhard Reutner-Fischer commit 4eebb1ab2c9954b9b1ef7480c4d2a797513193de Author: Bernhard Reutner-Fischer Date: Wed May 11 22:22:51 2011 +0200 commentary typo fix s/decriptor/descriptor/ Signed-off-by: Bernhard Reutner-Fischer commit 3e72d1b5129c51cabf6b501a4698f7c2433781ce Author: Bernhard Reutner-Fischer Date: Wed May 11 22:17:23 2011 +0200 epoll: unify epoll.h commit c91c3a2b27f5909e190cde4518383864298e82af Author: Bernhard Reutner-Fischer Date: Wed May 11 22:03:33 2011 +0200 commentary typo fix use cancellation (with two 'l') uniformly. Signed-off-by: Bernhard Reutner-Fischer commit bf5dd19d97991de30486abaedb1868f6eb049a70 Author: Thierry Reding Date: Wed May 11 09:28:13 2011 +0200 Implement epoll_create1 and epoll_pwait system calls. Note: TODO: This lacks cancellation support. Signed-off-by: Thierry Reding Signed-off-by: Bernhard Reutner-Fischer commit 23b99061c80f6979cdf873e534f6cd213b460781 Author: Bernhard Reutner-Fischer Date: Wed May 11 21:16:23 2011 +0200 buildsys: document UCLIBC_EXTRA_CPPFLAGS Rename EXTRA_CPPFLAGS to UCLIBC_EXTRA_CPPFLAGS and make them override previous flags (by appending - not prepending - them to the other flags). commit 803ea5ff0514ba250b23d134590b5c5d53a994f8 Author: Bernhard Reutner-Fischer Date: Wed May 11 20:42:18 2011 +0200 lll: avoid shadow warnings use __ret uniformly to avoid shadow warnings as seen on x86_64. Signed-off-by: Bernhard Reutner-Fischer commit 08c36f4c11f5ffdcd1656802257ea472df8339e7 Author: Bernhard Reutner-Fischer Date: Wed May 11 20:29:59 2011 +0200 x86_64: add TODO for R_X86_64_RELATIVE Signed-off-by: Bernhard Reutner-Fischer commit 7d8c08baf43d27aac22a29e55c1108f31b8d7595 Author: Bernhard Reutner-Fischer Date: Wed May 11 19:52:16 2011 +0200 libubacktrace: mv unwind.h to include Fixes compilation if NPTL is off. I hope this doesn't break ARM EABI but cannot check ATM. Signed-off-by: Bernhard Reutner-Fischer commit bbb07be58509856b4629d7b2a4aa09dbddcb6828 Author: Bernhard Reutner-Fischer Date: Wed May 11 19:16:17 2011 +0200 Revert "libubacktrace: fix config-symbol handling" This reverts commit 7a080cd149c7b25d415d76506510d55b34819fc2. This symbol is in fact different (as it is set no 'n'). commit d3ddb92ea03c89fe7d56a0bcbfbe64743bc51210 Author: Bernhard Reutner-Fischer Date: Wed May 11 13:12:14 2011 +0200 add pipe2() Signed-off-by: Bernhard Reutner-Fischer commit 6af34270fa28a4274576a6d068e6a83346480f2e Author: Bernhard Reutner-Fischer Date: Wed May 11 12:05:20 2011 +0200 socketcalls: add stubs Signed-off-by: Bernhard Reutner-Fischer commit 74a2c71153b910ee4773866ee30be84730a4d5b8 Author: Bernhard Reutner-Fischer Date: Wed May 11 11:31:45 2011 +0200 accept4: Implement cancellation .. and add proper prototype, move it into it's own obj and other such cleanups. Signed-off-by: Bernhard Reutner-Fischer commit 46e3df937b05fa291470e975cd836c5435aa0ecc Author: Thierry Reding Date: Wed May 11 08:40:58 2011 +0200 Implement accept4 system call. Signed-off-by: Thierry Reding Signed-off-by: Bernhard Reutner-Fischer commit 7a080cd149c7b25d415d76506510d55b34819fc2 Author: Bernhard Reutner-Fischer Date: Fri May 6 19:07:12 2011 +0200 libubacktrace: fix config-symbol handling Config symbals that are not set are empty, not 'n'. commit afeef5ca3930a22b90bed7717464f117fcca78f0 Author: Bernhard Reutner-Fischer Date: Wed May 11 09:37:35 2011 +0200 buildsys: Turn on strict aliasing for everyone Signed-off-by: Bernhard Reutner-Fischer commit bfbab32be6d74de0717c7f5fbdd90edfd2839169 Author: Bernhard Reutner-Fischer Date: Tue May 10 21:22:25 2011 +0200 ldso: commentary typo fix Signed-off-by: Bernhard Reutner-Fischer commit e48bd60ce9a70d190acfee7db98c0f163a2c5fdb Author: Bernhard Reutner-Fischer Date: Tue May 10 20:19:46 2011 +0200 getcwd: Fix memory-leak in error path Signed-off-by: Bernhard Reutner-Fischer commit 025ec197fe9d069c6d705e6f7d1509bb9dc1ce56 Author: Bernhard Reutner-Fischer Date: Tue May 10 20:09:36 2011 +0200 __uc_malloc: Fix memory-leak in error path Signed-off-by: Bernhard Reutner-Fischer commit 974d3140577ac740c8db2f1ad9635c4ba591361e Author: Filippo Arcidiacono Date: Fri May 6 16:49:28 2011 +0200 libdl: fix local symbol's address handling in dladdr Fix dladdr to correctly handle local function's address so backtrace_symbols print only the function address for these function, instead of showing the name of nearest one. Indeed the dladdr walk through the hash table to find the nearest symbol, that doesn't contain local symbols. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 3e68c52b941636714d2599ea8adda9520ec2de23 Author: Bernhard Reutner-Fischer Date: Tue May 10 10:03:58 2011 +0200 */crtn.S: Remove .size directive for _init and _fini These are split across objects so setting size does not (and never did) work since the expression cannot be computed at assembly time. This avoids errors from recent (> 2.21) gas. Signed-off-by: Bernhard Reutner-Fischer commit 074930dd7f2a18a7013cdb72cc38136f3be39c40 Author: Timo Teräs Date: Wed Apr 20 13:59:15 2011 +0300 posix_fadvise64: fix x86 implementation Commit 73d59554144f429b1cf0d4d7fa7de42bdf59ad92 completely broke the x86 implementation of posix_fadvise64. It moved the first the assembly code retn instruction gets missing depending on the Technically the file has two implementaions for posix_fadvise64, one when __NR_fadvise64_64 is available, and second one if only __NR_fadvise64 is there. Fix the #ifdef's to be proper for that. Signed-off-by: Timo Teräs Signed-off-by: Khem Raj commit 5cf382c0f98d1943bcf51ffa8bde6103e1f102ab Author: Bernhard Reutner-Fischer Date: Thu May 5 09:33:14 2011 +0200 i386: fix .size of _init/_fini binutils-2.21 barf on .size that do not evaluate to const, so use the section size and not a function that is not visible here. Signed-off-by: Bernhard Reutner-Fischer commit 2297e6e1e075070d6e62dfe7cccfab600de12870 Author: Bernhard Reutner-Fischer Date: Thu May 5 09:27:15 2011 +0200 x86_64: fix .size of _init/_fini binutils-2.21 barf on .size that do not evaluate to const, so use the section size and not a function that is not visible here. Signed-off-by: Bernhard Reutner-Fischer commit 07464c3e7156f4c8dfcac673c74f19b700b1b3b5 Author: Bernhard Reutner-Fischer Date: Thu May 5 09:19:16 2011 +0200 Revert "*/crt?.S: remove .size directives" Removing them generally was not a good idea This reverts commit 233c504cd940d9802226b6a3a092368b86978f5e. commit 233c504cd940d9802226b6a3a092368b86978f5e Author: Bernhard Reutner-Fischer Date: Wed May 4 10:01:24 2011 +0200 */crt?.S: remove .size directives sed -i -e '/\.size[[:space:]]/d' $(grep -l "\.size" libc/sysdeps/linux/*/crt*.[sSc]) Signed-off-by: Bernhard Reutner-Fischer commit 4916fd889ec1c60710faa528a3ccdb50973198e2 Author: Henning Heinold Date: Fri Apr 29 13:58:02 2011 +0200 libubacktrace: fix backtrace support on arm-eabi, which needs libgcc_eh linked too Signed-off-by: Henning Heinold Signed-off-by: Carmelo Amoroso commit 408763f32676fa60e74cb202486be4b17a43974e Author: Denys Vlasenko Date: Tue May 3 17:29:35 2011 +0200 getaddrinfo.c: fix incorrect check for ERANGE from gethostbyaddr_r Also, freeaddrinfo(NULL) is ok, no need to check parameted for NULL before calling it. Signed-off-by: Denys Vlasenko commit 05238889b2851aafda667b4d5e3b7e627ea2bed6 Author: Denys Vlasenko Date: Tue May 3 17:28:19 2011 +0200 getaddrinfo.c: improve code readability. No functional changes Signed-off-by: Denys Vlasenko commit fa6546e89e109a249795b889e32573eb85358935 Author: Bernhard Reutner-Fischer Date: Tue May 3 16:40:31 2011 +0200 string: remove unused variable Signed-off-by: Bernhard Reutner-Fischer commit c5f87c865e72d527c85b879be67b5a6fc0cab349 Author: Bernhard Reutner-Fischer Date: Tue May 3 16:36:15 2011 +0200 x86_64: silence warning if !TLS TODO: fix all other arches Signed-off-by: Bernhard Reutner-Fischer commit fa08223a332b825895e820a2b1d1c3418f358b18 Author: Bernhard Reutner-Fischer Date: Tue May 3 16:24:08 2011 +0200 buildsys: prettify ssp.c handling Signed-off-by: Bernhard Reutner-Fischer commit 8d09a50a044638fde2ed3e1a1c4d3c7c5a3cce5c Author: Bernhard Reutner-Fischer Date: Tue May 3 16:15:30 2011 +0200 madvise is LINUX_SPECIFIC Signed-off-by: Bernhard Reutner-Fischer commit 074c5fcc9800847947d1819cb44cac962a19b1a5 Author: Filippo Arcidiacono Date: Tue May 3 09:32:53 2011 +0200 test_nptl: fix expected result for tst-cputimer[123] Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit eba2360222e8e8b9218942e25ef12664bc153f2e Author: Filippo Arcidiacono Date: Mon May 2 12:59:18 2011 +0200 test_nptl: fix expected result for tst-clock2 test tst-clock2 should return 0 when _SC_THREAD_CPUTIME option isn't available, instead of treating it as an error. Further set the expected ret value as 0 avoiding to hide any real failures in case of THREAD_CPUTIME feature available. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit ed9977bf65b608ffe9772f1cc4809fe335f44d57 Author: Bernhard Reutner-Fischer Date: Mon May 2 10:15:41 2011 +0200 buildsys: make $(LOCAL_INSTALL_PATH) phony Could depend on the individual files too but this makes sure that nothing is missed. Signed-off-by: Bernhard Reutner-Fischer commit 049aebd7eb798bca4e0fb3c0532328ad9d85cc7c Author: Bernhard Reutner-Fischer Date: Mon May 2 10:10:47 2011 +0200 ether_aton: reject invalid input fixes PR2227 Signed-off-by: Bernhard Reutner-Fischer commit 63e3a411b1e4ae6c8c9132405f80f6c6bdf90183 Author: Bernhard Reutner-Fischer Date: Sun May 1 18:00:04 2011 +0200 tests: disable ether tests if !HAS_SOCKET Signed-off-by: Bernhard Reutner-Fischer commit 23135f442dc220b496e2a4af3366cc2795587ec7 Author: David A Ramos Date: Sun May 1 17:28:31 2011 +0200 inet: add ether_aton testcase Signed-off-by: Bernhard Reutner-Fischer commit 221464c9c4227810de9f027c3ace63805480d723 Author: Bernhard Reutner-Fischer Date: Fri Apr 29 14:14:27 2011 +0200 sysconf: clock_getres depends on HAS_REALTIME Bug was introduced in revision a202cf6f. Signed-off-by: Bernhard Reutner-Fischer commit 3818c3a0b6465dcc4952a13fde83d22716a82ffc Author: Bernhard Reutner-Fischer Date: Fri Apr 29 14:05:54 2011 +0200 __rt_sigwaitinfo: depends on HAS_REALTIME Signed-off-by: Bernhard Reutner-Fischer commit 04dc3d139266d582f64db811013100e283ae189a Author: Carmelo Amoroso Date: Wed Apr 27 09:29:44 2011 +0200 buildsys: minor fixes in Makefile.arch for C6X Just a tidy-up by removing commented-out lines. Signed-off-by: Carmelo Amoroso commit 4698e59ab3a0f3a92c04bc7942054c943b201706 Author: Carmelo Amoroso Date: Wed Apr 27 09:20:48 2011 +0200 buildsys: minor fixes in Makefile.arch for microblaze Do not include Makefile.commonarch directly from within arch specific Makefile, as it is already done in parent Maefile.in. Signed-off-by: Carmelo Amoroso commit e798b95d133c2707d8b0d6a3386e5e1564b5f459 Author: Carmelo Amoroso Date: Tue Apr 26 13:54:13 2011 +0200 libubacktrace: enabled for all archs indeed. Signed-off-by: Carmelo Amoroso commit 542c67dd8e8b742b5dff8f8a509e5f0752ec9b25 Author: Austin Foxley Date: Fri Apr 22 16:21:30 2011 -0700 sparc: don't access fp registers when configured for no fpu Signed-off-by: Austin Foxley commit 7b5b79f09f0bffe1fccda00d4c5cdf7a7be45413 Author: Carmelo Amoroso Date: Fri Apr 22 12:55:43 2011 +0200 libubacktrace: generic implementation based dwarf Use the initial implementation for SH4 based on dwarf for all archs. Indeed there are not obvious reason for which it should not work in general. Signed-off-by: Carmelo Amoroso commit a4aa01c128b04c7174d57a28f61656f966d2bd6c Author: Salvatore Cro Date: Wed Apr 20 12:49:25 2011 +0200 Added fts support for traversing UNIX file hierarchies. It is required by libdwfl in elfutils package. Signed-off-by: Salvatore Cro Signed-off-by: Bernhard Reutner-Fischer commit 3a411b5d8a6c6311778e22280706047cd1a8c8d4 Author: Salvatore Cro Date: Fri Apr 8 17:56:22 2011 +0200 test: fix tst-tls13 expected result and timeout tst-tls13 is expected to return 0 when passing. Set higher timeout to avoid failure on slow archs. Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit 4580f142b4b1ce176320fe5c2c5bee09871a01e7 Author: Kevin Cernekee Date: Sat Apr 16 10:02:00 2011 -0700 dl-startup: fix typos in block comment Signed-off-by: Kevin Cernekee Signed-off-by: Carmelo Amoroso commit b228ddac5b221b7c474ed902bad124934e61a527 Author: Maksim Rayskiy Date: Fri Apr 15 10:25:40 2011 -0700 MIPS LDSO: pass sym_ref parameter to _dl_find_hash() to support PROTECTED symbols _dl_find_hash() relies on sym_ref parameter to check if the looked-up symbol is protected. The code fixes a case when _dl_perform_mips_global_got_relocations() was calling _dl_find_hash() without providing sym_ref parameter. The bug was causing hangs if a library exporting non-protected symbol was earlier in link order than library with the same symbol declared as protected. Signed-off-by: Maksim Rayskiy Signed-off-by: Carmelo Amoroso commit f6450b67cc92027352367be299cc28dd29cd8486 Author: Bernhard Reutner-Fischer Date: Thu Apr 14 09:59:26 2011 +0200 buildsys: do_rm ARCH_HEADERS Signed-off-by: Bernhard Reutner-Fischer commit d37cda884e573638aa3fafcb7505d733cf8d9eae Author: Bernhard Reutner-Fischer Date: Wed Apr 13 19:38:40 2011 +0200 resolv: really fix res_close not to hang with ipv6 Fix goof in previous commit. Signed-off-by: Bernhard Reutner-Fischer commit 7da4d1e7553a766f2ddc6a9a7d36423c1cf68a80 Author: Bernhard Reutner-Fischer Date: Wed Apr 13 10:26:38 2011 +0200 buildsys: do not use $(and) make-3.80 does not have $(and) and $(or), so workaround for now. Signed-off-by: Bernhard Reutner-Fischer commit a4a4912b180c03e5f0ca7d6f05be97492b6983e1 Author: Kevin Cernekee Date: Sat Apr 9 19:55:07 2011 -0700 buildsys: fix GNU make v3.80 compatibility again GNU make 3.80 cannot handle "$(and)" or "$(or)" from commit 18e7136e (buildsys: use kbuild style). Replace them with ifeq/ifneq. Signed-off-by: Kevin Cernekee Signed-off-by: Bernhard Reutner-Fischer commit c277cc3c99a2499183fed84cdeb25c45a06f141d Author: Bernhard Reutner-Fischer Date: Tue Apr 12 09:39:20 2011 +0200 resolv: fix res_close not to hang with ipv6 Timo Teräs writes: The memory release loop is missing an obvious counter increment. Signed-off-by: Bernhard Reutner-Fischer commit feb7ce46ef24f74ebf0235f10127bd49f0c7e675 Author: Bernd Schmidt Date: Mon Apr 11 13:21:23 2011 +0200 Support dynamic assignment of DSBT_INDEX For DSBT targets (C6X only at this point), we'd like to support the case where the user did not specify --dsbt-index at link time when building a shared library. The dynamic linker can still assign an index at runtime and fix up the DSBT_INDEX relocs, at the cost of startup time and memory space. Signed-off-by: Bernd Schmidt commit eff2d0ba5890b517ef5bc9d0269d6149556c12c8 Author: Bernd Schmidt Date: Mon Apr 11 13:19:05 2011 +0200 Fix malloc alignment In commit 3e0a1f388, Richard tried to fix malloc alignments by using alignof (double __attribute_aligned__(sizeof (size_t))). This doesn't work, since attribute_aligned overrides the alignment rather than providing a minimum. On C6X, malloc returns four-byte aligned values rather than the necessary eight-byte alignment. It's simpler to use a comparison and pick the bigger of the two values, so that's what I've done. Signed-off-by: Bernd Schmidt commit 56ea76b6bf190bffdc07aba90e4b25dfc096027b Author: Bernd Schmidt Date: Mon Apr 11 13:13:18 2011 +0200 Fix nommu handling of DT_TEXTREL We have a problem with DT_TEXTREL shared libraries on nommu machines. The dynamic linker's strategy is to map the text segment read-only first, then look for DT_TEXTREL, and use mprotect to change protections if necessary. This fails on nommu, since a nommu kernel can decide to share the memory for private read-only file mappings, and mprotect doesn't (can't) do anything about this sharing. Existing nommu targets apparently have no need for this, but on C6X, we may need to assign library indices at run-time if no --dsbt-index option was passed to the linker at build time. Hence, the following patch, which instead of using mprotect, redoes the mapping with PF_W set. Signed-off-by: Bernd Schmidt commit 85f4b028d767fc390a7b866d2f58d58be489242d Author: Kevin Day Date: Wed Mar 30 04:51:22 2011 -0700 utils/ldd: Check for returned pointer from strrchr not the value it holds Signed-off-by: Kevin Day Signed-off-by: Khem Raj commit 9b5df2295b4a3cfc63a15b6490f2b61dcf7c1be9 Author: Thorsten Glaser Date: Sat Mar 26 15:11:51 2011 +0000 cris: add provide arch-specific vfork implementation vfork must be called with nothing at all on the stack, so implementing it via syscall() does not work. Signed-off-by: Thorsten Glaser Signed-off-by: Waldemar Brodkorb Signed-off-by: Mike Frysinger commit 251f2266bf24b1b396f59eef60d0acf41fdd02e4 Author: Peter S. Mazinger Date: Fri Mar 18 15:37:35 2011 +0100 lutimes.c, stubs.c: fix compiling lutimes, if __NR_utimensat is not defined while there, provide stubs for functions depending on utimensat syscall. Reported-by: Sedat Dilek Signed-off-by: Peter S. Mazinger Signed-off-by: Khem Raj commit 0c18923cbc0123a2c940cb659b765ad1b303974c Author: Bernhard Reutner-Fischer Date: Wed Mar 16 20:20:32 2011 +0100 bump version to 0.9.32-rc3-git Signed-off-by: Bernhard Reutner-Fischer commit e172884f39f960ed3cf879fb66c6f4fc1846c42d Author: Bernhard Reutner-Fischer Date: Wed Mar 16 20:11:13 2011 +0100 release 0.9.32-rc3 Signed-off-by: Bernhard Reutner-Fischer commit 2f9445814cb01b460a1426d41e05c738a4a37f86 Author: Bernhard Reutner-Fischer Date: Wed Mar 16 20:09:43 2011 +0100 memalign: include sys/param.h for MAX libc/stdlib/malloc/memalign.c:22:1: warning: "MAX" redefined In file included from ./libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:25, from ./include/bits/libc-lock.h:36, from ./include/bits/stdio-lock.h:23, from ./include/bits/uClibc_mutex.h:71, from libc/stdlib/malloc/malloc.h:135, from libc/stdlib/malloc/memalign.c:18: ./include/sys/param.h:75:1: warning: this is the location of the previous definition Signed-off-by: Bernhard Reutner-Fischer commit e25a95a7a3c9f5bb3a38106422b12f83bf58d119 Author: Khem Raj Date: Mon Mar 14 22:45:33 2011 -0700 arm/bits/atomic.h: Include common/bit/atomic.h for thumb1 This restores the behavior for thumb1 builds and yet uses the new atomic.h for arm and thumb2 modes. Signed-off-by: Khem Raj commit 1b3f056d4aa2726f872f2ee85f3f391a784e19e4 Author: Peter S. Mazinger Date: Thu Mar 10 13:15:10 2011 +0100 wctype.h: fix libc_hidden_proto for iswupper and add it for iswspace Old typo, became visible due to other changes. Signed-off-by: Peter S. Mazinger commit 6fb9aa575e35f59c224acd48006b9c7a7063099c Author: Peter S. Mazinger Date: Thu Mar 10 13:13:26 2011 +0100 add libc_hidden_proto for wcs[n]casecmp_l Signed-off-by: Peter S. Mazinger commit 6f633b7aef2af2801d059acda48b424fc12c71ac Author: Peter S. Mazinger Date: Thu Mar 10 13:02:19 2011 +0100 really fix missing __libc_drand48_data Signed-off-by: Peter S. Mazinger commit c725e8ba5f049686ed7318d6b4710308677462c9 Author: Peter S. Mazinger Date: Thu Mar 10 12:59:15 2011 +0100 Revert "missing prototype of __libc_drand48_data fixed" This reverts commit e2cea9b9edabe885b9bf2586f9541ffb8fe93f3f. Signed-off-by: Peter S. Mazinger commit e2cea9b9edabe885b9bf2586f9541ffb8fe93f3f Author: Peter S. Mazinger Date: Thu Mar 10 11:43:07 2011 +0100 missing prototype of __libc_drand48_data fixed Signed-off-by: Peter S. Mazinger commit 24a14a0bb867f02ba87b498ee64e3ed6ce33b27a Author: Peter S. Mazinger Date: Thu Mar 10 11:34:38 2011 +0100 time.c, time.h: remove unused hidden strftime/strptime Signed-off-by: Peter S. Mazinger commit fcde46eae5c16948c71f71d0b8fb82019f60f51f Author: Peter S. Mazinger Date: Thu Mar 10 11:33:51 2011 +0100 nanosleep.c: remove duplicated libc_hidden_proto Signed-off-by: Peter S. Mazinger commit 14b0a648ca751773fe28dd98f2c031bf6287e52a Author: Peter S. Mazinger Date: Thu Mar 10 11:06:25 2011 +0100 ctype.c, ctype.h: remove commented parts that were banned for removal after 0.9.31 Signed-off-by: Peter S. Mazinger commit 3e223e6c18912091bf75b77f9c7ae2ded0063037 Author: Peter S. Mazinger Date: Thu Mar 10 10:50:01 2011 +0100 _wctype.c, wctype.h: remove unused isw* and wctype_l hidden functions Signed-off-by: Peter S. Mazinger commit 5ab9845ea03ba2c356e58617daeab6b306959380 Author: Peter S. Mazinger Date: Thu Mar 10 00:49:01 2011 +0100 time.c, wchar.h: remove unused hidden wcsftime Signed-off-by: Peter S. Mazinger commit 25a349893513aa257718aa92c3e8755b9d89eb7e Author: Peter S. Mazinger Date: Thu Mar 10 00:01:10 2011 +0100 str[n]casecmp.c: fix hidden usage Provide visible str[n]casecmp[_l], wcs[n]casecmp[_l]. Signed-off-by: Peter S. Mazinger commit abd6c6c29f82ddcc7c86c67519b79d2381622ed9 Author: Peter S. Mazinger Date: Wed Mar 9 23:20:16 2011 +0100 remove unused hidden functions Signed-off-by: Peter S. Mazinger commit 3ec2f90152de3b11266bc0d3f4fa6a41b3c52374 Author: Peter S. Mazinger Date: Wed Mar 9 22:37:05 2011 +0100 frv/memset.S: add missing libc_hidden_def Signed-off-by: Peter S. Mazinger commit e60342da428076ae6d3097950a3c5454bab84160 Author: Peter S. Mazinger Date: Wed Mar 9 21:55:39 2011 +0100 memmem.c, string.h: remove unused hidden memmem It is used only by gen_collate, not included into libc. Signed-off-by: Peter S. Mazinger commit 01b480ad1454ee3664ffcb8b3ecf0d89ccb7d56b Author: Peter S. Mazinger Date: Wed Mar 9 21:40:01 2011 +0100 _collate.c: remove duplicated libc_hidden_proto() for strcoll*/wcscoll* Signed-off-by: Peter S. Mazinger commit 1350fdff4b950d42771d6ea7b246e2d269e2bd72 Author: Peter S. Mazinger Date: Wed Mar 9 21:30:53 2011 +0100 wchar.h, _collate.c, strlcpy.c: use a common prototype of __wcslcpy Signed-off-by: Peter S. Mazinger commit f4ec824864b8ea68af8953669f789656cc05143d Author: Peter S. Mazinger Date: Wed Mar 9 21:11:47 2011 +0100 ctype.c, _collate.c, str[n]casecmp.c, strlcpy.c: remove unused hidden functions Signed-off-by: Peter S. Mazinger commit 98538deba691281535e3dc0839710b8630e02ac8 Author: Peter S. Mazinger Date: Wed Mar 9 20:19:49 2011 +0100 stdlib.c, _strtod.c, stdlib.h: remove unused hidden functions Signed-off-by: Peter S. Mazinger commit 935151992d9385c54a44033d5bf8102ff10fb50f Author: Bernd Schmidt Date: Wed Mar 9 16:06:59 2011 +0100 Select ARCH_HAS_NO_MMU for C6X. Signed-off-by: Bernd Schmidt commit 3b5e53eaf0c94051969974aab6c0e89bdb424f9c Author: Bernd Schmidt Date: Wed Mar 9 16:05:33 2011 +0100 Add a missing macro to C6X syscalls.h. We need _syscall_noerr0 to fix compilation of getuid.c. Signed-off-by: Bernd Schmidt commit e5d4a571e1e8850b36bbfb246270b63dab0c2a3d Author: Mark Salter Date: Sun Mar 6 17:44:00 2011 -0500 cleanup hardcoded syscall numbers Signed-off-by: Mark Salter Signed-off-by: Bernd Schmidt commit be36fa013e821e6fba87bfbc8bdf4f5e73b545cb Author: Mark Salter Date: Sat Mar 5 19:46:48 2011 -0500 support c6x kernel using generic stat.h Signed-off-by: Ken Cox Signed-off-by: Mark Salter Signed-off-by: Bernd Schmidt commit 5f98b70a92187756a2b76eaaf679958c36d59d00 Author: Mark Salter Date: Sat Mar 5 22:03:21 2011 -0500 support generic kernel posix_types.h Signed-off-by: Mark Salter Signed-off-by: Bernd Schmidt commit 3992402e7a00ee4f617582c09215a855fb212bf9 Author: Mark Salter Date: Sat Mar 5 11:17:54 2011 -0500 use clone syscall for vfork Signed-off-by: Mark Salter Signed-off-by: Bernd Schmidt commit 0c31aab44ec14a3c287ce766676d9a6f495a0751 Author: Mark Salter Date: Sat Mar 5 11:13:16 2011 -0500 remove unused vfork.c Signed-off-by: Mark Salter Signed-off-by: Bernd Schmidt commit cb96f5c1b34a36864b0da389599b95408cc9b4a2 Author: Mark Salter Date: Thu Sep 9 14:40:03 2010 -0400 sunrpc: fix spurious fall-through Fix spurious fall-through. Signed-off-by: Mark Salter Signed-off-by: Bernd Schmidt commit 3ae11e90f822a766cc0b97d7f5eb12556685e8f0 Author: Bernd Schmidt Date: Wed Mar 9 15:14:37 2011 +0100 Add C6X-specific sys/ptrace.h The debugger needs some C6X-specific ptrace operations to get information about the DSBT binaries; similar to what's done on FD-PIC targets. Signed-off-by: Bernd Schmidt commit dad0315108b60d47af25aa46a7f11084c15d821f Author: Peter S. Mazinger Date: Wed Mar 9 15:19:10 2011 +0100 arc4random.c, stdlib.h: get rid of hidden arc4random_stir The function is used only in one file, make an internal static version for this Signed-off-by: Peter S. Mazinger commit 3fa004b7d2d9a3648aa95b093000259a123fa2d8 Author: Peter S. Mazinger Date: Wed Mar 9 15:14:48 2011 +0100 regcomp.c, aeabi_mb_cur_max.c: use unconditionally MB_CUR_MAX from stdlib.h Signed-off-by: Peter S. Mazinger commit cf67a3699e98c57b3a06e5dd4c7e70baa648db6a Author: Peter S. Mazinger Date: Wed Mar 9 15:06:17 2011 +0100 fnmatch.c: use MB_CUR_MAX from stdlib.h included earlier Signed-off-by: Peter S. Mazinger commit d57b631e82529b2c880f5d7e4fbcd88042803f80 Author: Peter S. Mazinger Date: Wed Mar 9 15:05:00 2011 +0100 stdlib.h: move MB_CUR_MAX = 1 from wchar-stub.h Signed-off-by: Peter S. Mazinger commit 7aea441c8a240bd5a0717ec09ae8efc4878cd377 Author: Peter S. Mazinger Date: Wed Mar 9 14:48:45 2011 +0100 move prototype for __drand48_iterate and __libc_drand48_data to stdlib.h Move them to a common header guarded by _LIBC Signed-off-by: Peter S. Mazinger commit 1903a3babc27a717dcc2de743c3e70f673178b9f Author: Peter S. Mazinger Date: Wed Mar 9 14:45:04 2011 +0100 stdlib.c: remove duplicate libc_hidden_proto for strtoul/strtoul_l Signed-off-by: Peter S. Mazinger commit 576b6864660aba3d65f0fb42b7aaeaaae3e6a478 Author: Peter S. Mazinger Date: Wed Mar 9 14:18:15 2011 +0100 _strtod.c: only strtod hidden version is needed Do not provide hidden strtod_l, wcstod and wcstod_l Signed-off-by: Peter S. Mazinger commit 65e4d45a77ca147fe0988e2b3c452196c490a11c Author: Peter S. Mazinger Date: Wed Mar 9 13:36:36 2011 +0100 disable _POSIX2_LOCALEDEF uClibc does not provide the localedef utility Signed-off-by: Peter S. Mazinger commit 1dd9275091d6cbb14d6b149770fc90cef53577cf Author: Peter S. Mazinger Date: Wed Mar 9 13:32:30 2011 +0100 remove trailing ';' from _syscallX() Signed-off-by: Peter S. Mazinger commit 92895c04f3033834ee512942014a9e643ba579a5 Author: Peter S. Mazinger Date: Wed Mar 9 13:10:41 2011 +0100 bits/statvfs.h: update, adding ST_RELATIME Signed-off-by: Peter S. Mazinger commit 26b1a5e02bc9702cd16c36ee980ed6a1cde3315a Author: Peter S. Mazinger Date: Wed Mar 9 13:07:05 2011 +0100 add bits/atomic.h for hppa Signed-off-by: Peter S. Mazinger commit 369cc066a46fba5455be15e0403a7c8bcdd84c22 Author: Peter S. Mazinger Date: Wed Mar 9 12:35:27 2011 +0100 bits/statvfs.h: the common one is good for alpha and sparc Signed-off-by: Peter S. Mazinger commit 41647059ec1945a258a9ee26638a1c0e4d181eaa Author: Peter S. Mazinger Date: Wed Mar 9 12:31:15 2011 +0100 bits/kernel_stat.h: no need for _LIBC guard, the file is not installed on target Signed-off-by: Peter S. Mazinger commit 51349317457d45038d68464a02e8ccd6a5d4ca8d Author: Peter S. Mazinger Date: Wed Mar 9 12:20:28 2011 +0100 bits/kernel_stat.h: use the same guard on all archs Signed-off-by: Peter S. Mazinger commit 117fbd4310fa600d0449d4268b4e6ee833471e1a Author: Peter S. Mazinger Date: Wed Mar 9 09:54:15 2011 +0100 types.h: remove __ipc_pid_t Remove __ipc_pid_t, not needed internally, we do not support pre glibc-2.2 version of shmid_ds structure. Signed-off-by: Peter S. Mazinger commit 82098ab9b853c33ee8ade61c9510b295cc696de1 Author: Peter S. Mazinger Date: Wed Mar 9 09:23:48 2011 +0100 guard *_chk() related stuff with UCLIBC_HAS_FORTIFY Guard x86_64 memset_chk/memcpy_chk be guarded by UCLIBC_HAS_FORTIFY. Compile ssp.c if one of SSP/FORTIFY is defined. Guard __chk_fail() with UCLIBC_HAS_FORTIFY and move its prototype to libc-internal.h. Disable _FORTIFY_SOURCE if UCLIBC_HAS_FORTIFY is not set. The config option itself is omitted on purpose, headers need to be reviewed and generic *_chk() functions need to be first provided. Signed-off-by: Peter S. Mazinger commit eb9cca27b385873c6788b18a13d918c873540866 Author: Tobias Klauser Date: Tue Mar 8 09:34:25 2011 +0100 nios2: Correct guard #defines in bits/kernel_types.h The guards in posix_types.h are called _ASM_NIOS2_POSIX_TYPES_H, so correctly use them here. Otherwise we wont be able to build uClibc with headers exported from the current nios2 kernel. Signed-off-by: Tobias Klauser Signed-off-by: Khem Raj commit 526af41956be03b56e1bf33ec144e797256c1255 Author: William Pitcock Date: Tue Mar 8 02:12:11 2011 -0600 nptl: fix compilation on x86_64 This commit gives us a fully functioning NPTL on x86-64 by using the GOTOFF macro as needed. Signed-off-by: William Pitcock Signed-off-by: Khem Raj commit eb68c5d7a4e76ab06443d42aaf2d9a72dd059a04 Author: Peter S. Mazinger Date: Tue Mar 8 17:23:30 2011 +0100 shm.h: fix vax's bits/shm.h Do not use __ipc_pid_t, since that is not visible after install. Provide and use shmatt_t. Add missing __END_DECLS. Signed-off-by: Peter S. Mazinger commit 3225a1935c46932de26bea2989f145098ef8bf6d Author: Peter S. Mazinger Date: Tue Mar 8 15:50:01 2011 +0100 Makefile.in: remove uClibc_fpmax.h independently of any config option Signed-off-by: Peter S. Mazinger commit 094e03a6600f0029aa045431f9bac1bd32b3193d Author: Peter S. Mazinger Date: Tue Mar 8 14:01:04 2011 +0100 resolv.h: disable unneeded prototypes Signed-off-by: Peter S. Mazinger commit d79710b3219420d4813479cf6542f31124fd1d33 Author: Peter S. Mazinger Date: Tue Mar 8 14:00:06 2011 +0100 Makefile.in: remove uClibc_uwchar.h and uClibc_va_copy.h on install Signed-off-by: Peter S. Mazinger commit 5dffed7dd1a413f3965af702fa7ecd79809d1988 Author: Peter S. Mazinger Date: Tue Mar 8 12:56:13 2011 +0100 Makerules: respect HARDWIRED_ABSPATH in interp.c Build LDSO path according to the HARDWIRED_ABSPATH setting While there, remove duplicated slashes in interp.c Signed-off-by: Peter S. Mazinger commit 2ea26d2c32507f11733a0d62e5723de26ea464ba Author: Peter S. Mazinger Date: Tue Mar 8 12:49:10 2011 +0100 try to fix duplicated slashes in the generated lib*.so files (round 2) sed s://:/:g on libc.so/libpthread.so if HARDWIRED_ABSPATH is defined Signed-off-by: Peter S. Mazinger commit 28bf003710d82135d0fe9f413c1df61c981f903c Author: Carmelo Amoroso Date: Tue Mar 8 11:39:48 2011 +0100 Revert "buildsys: prefer the form HEADERS_RM-$()" This reverts commit 07044019e6260991729926645e7d221f38376f9d. Signed-off-by: Carmelo Amoroso commit 07044019e6260991729926645e7d221f38376f9d Author: Carmelo Amoroso Date: Mon Mar 7 18:31:19 2011 +0100 buildsys: prefer the form HEADERS_RM-$() Fix removal of sgtty.h using HEADERS_RM-$() syntax. Sort it alphabetically. Signed-off-by: Carmelo Amoroso commit 5c38edaeca35c3b3631d28acc43c96f3970d9d48 Author: Peter S. Mazinger Date: Mon Mar 7 17:39:14 2011 +0100 locale.c: export newlocale only if XLOCALE is defined newlocale is used by setlocale, so we need the hidden version even if XLOCALE is not defined Signed-off-by: Peter S. Mazinger commit 19373021defb3b917ba9617c3f45b22ab8da26dd Author: Peter S. Mazinger Date: Mon Mar 7 17:28:57 2011 +0100 locale.c, locale.h: no need for hidden duplocale Signed-off-by: Peter S. Mazinger commit cda3f2658389330999ad35390ed2676a7dc37325 Author: Peter S. Mazinger Date: Sun Mar 6 17:08:38 2011 +0100 simplify ffs* code Remove __libc_ffs*, unneeded Signed-off-by: Peter S. Mazinger commit 1f08001dd7c51ce09b39310604e4baa5a973629c Author: Peter S. Mazinger Date: Sun Mar 6 17:02:56 2011 +0100 remove unused ARCH_CFLAGS and ARCH_LDFLAGS Signed-off-by: Peter S. Mazinger commit 80f5587940c2cd110d06c615db252c8122a3c697 Author: Peter S. Mazinger Date: Sun Mar 6 15:40:09 2011 +0100 Revert "try to fix duplicated slashes in the generated lib*.so files" This reverts commit 624be66cb9b350d5c6538fca8592cdb3a4c23d37. Signed-off-by: Peter S. Mazinger commit 2a19c1339d6bf46fe0f90fbd4e8dca6646d111ed Author: Bernd Schmidt Date: Wed Feb 23 00:14:42 2011 +0100 Implement ffsl and ffsll. 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 Acked-by: Bernhard Reutner-Fischer commit 9b1507df250e90b74099e0d05170d7d95060b016 Author: Mark Salter Date: Wed Mar 2 21:12:48 2011 +0100 Add sanity checks to ld.so DSBT support 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 Signed-off-by: Bernd Schmidt commit 46d6a24872b7fa2717f8f71b5e0598a14d38e1f6 Author: Aurelien Jacquiot Date: Wed Feb 23 13:04:59 2011 +0100 The C6X port This adds support for the TI C6X family of processors. Signed-off-by: Mark Salter Signed-off-by: Aurelien Jacquiot Signed-off-by: Bernd Schmidt commit 817f685f4c65ed1af6eef79749b1f158eedd5bfc Author: Bernd Schmidt Date: Wed Feb 23 02:57:49 2011 +0100 Allow ABIs where SP points below the stack frame. 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 commit 95adc01517efce365da4e40e0d2a081ec4497928 Author: Mark Salter Date: Wed Feb 23 12:56:43 2011 +0100 Add support for DSBT ELF to ld.so 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 Signed-off-by: Aurelien Jacquiot Signed-off-by: Bernd Schmidt commit f4eebb6146ea3f6917481d5d24f3d99e97236399 Author: Bernd Schmidt bernds_cb1@t-online.de Date: Wed Mar 2 18:22:01 2011 +0100 Add Makefile support for DSBT ELF. 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 Signed-off-by: Bernhard Reutner-Fischer commit 2a0c568ddc7b6b142dc049d8cc9cf32eb38e2321 Author: Peter S. Mazinger Date: Fri Mar 4 18:28:26 2011 +0100 fix locale build 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 commit ad7e468ca0aefd1adfebc7a87c249ef330e2362d Author: Peter S. Mazinger Date: Fri Mar 4 13:18:27 2011 +0100 fix removal of sgtty.h Signed-off-by: Peter S. Mazinger commit 37525c04e45bb37bbc1532e11b5ab821a10f3cf4 Author: Carmelo Amoroso Date: Fri Mar 4 13:04:13 2011 +0100 nptl: fix use of IS_IN_LIBPTHREAD macro IS_IN_LIBPTHREAD should be IS_IN_libpthread instead. Signed-off-by: Carmelo Amoroso commit 4e431d5f5cbdde5e4330c2961b084471de14c101 Author: Peter S. Mazinger Date: Thu Mar 3 16:23:05 2011 +0100 remove obsoleted and incorrect comment Signed-off-by: Peter S. Mazinger commit 5ebef433698a13e5171f4b7dca04f2006bd92468 Author: Peter S. Mazinger Date: Thu Mar 3 16:04:03 2011 +0100 provide internal hidden version of __fcntl_nocancel guard the prototype with _LIBC, it is only for internal use Signed-off-by: Peter S. Mazinger commit 96c9a8f7d00cdf6bb7968a2390b9d87da8a45e2d Author: Peter S. Mazinger Date: Thu Mar 3 15:06:47 2011 +0100 add _dl_errno support to errno.h, cleanup 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 commit 1f19ef8f9316e52f4940c34be3e056a8a41540e6 Author: Peter S. Mazinger Date: Thu Mar 3 13:52:34 2011 +0100 do not enforce FORCE_SHAREABLE_TEXT_SEGMENTS on sh4 Signed-off-by: Peter S. Mazinger commit a36065a4fe6dcd6fc1847da9d063894e45c4a71e Author: Peter S. Mazinger Date: Thu Mar 3 13:20:21 2011 +0100 sgtty.h is useless, remove it on STRICT_HEADERS Signed-off-by: Peter S. Mazinger commit fae4a5832519033c8c378e4cb4dadb96e5be1692 Author: Peter S. Mazinger Date: Thu Mar 3 13:08:54 2011 +0100 paths.h: add _PATH_GSHADOW Signed-off-by: Peter S. Mazinger commit 63a16d7e6832b65769e7c2be0aed39b8ff8cf741 Author: Peter S. Mazinger Date: Thu Mar 3 12:44:18 2011 +0100 guard nl_catd structure and related constants with STRICT_HEADERS Signed-off-by: Peter S. Mazinger commit b776a692f8cc95c03853fcaf43833f9477ad8c36 Author: Peter S. Mazinger Date: Thu Mar 3 12:35:29 2011 +0100 better guard of IPV6 related stuff 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 commit cb4625abd32512d02d18be7b6e173ec2d7877c17 Author: Peter S. Mazinger Date: Thu Mar 3 12:17:42 2011 +0100 do not care about libc-internal.h, remove hp-timing.h Signed-off-by: Peter S. Mazinger commit b526c7807f0a54054c4b12edef58b521fe0ab4c7 Author: Peter S. Mazinger Date: Thu Mar 3 11:41:44 2011 +0100 strcpy: remove unneeded includes from the generic version Signed-off-by: Peter S. Mazinger commit a37f5fd55332b72c7e8ca5436ab6cd04617985a7 Author: Peter S. Mazinger Date: Thu Mar 3 11:37:16 2011 +0100 update some headers 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 commit 152e66242f2af7cd26e29d59a31f8bb8479595e5 Author: Peter S. Mazinger Date: Thu Mar 3 00:37:29 2011 +0100 update some headers Signed-off-by: Peter S. Mazinger commit 587d7092180a5f2053906b87ea2b25b2bf6b34c6 Author: Peter S. Mazinger Date: Wed Mar 2 22:42:47 2011 +0100 make it possible to compile with -std=gnu99/c99 and use extern inlines When compiled with -std=gnu99/c99 __GNUC_GNU_INLINE__ is not defined Signed-off-by: Peter S. Mazinger commit ca8f0d9cf39e60851e17f0c6dd5f3e4f51b64f5b Author: Peter S. Mazinger Date: Wed Mar 2 22:30:10 2011 +0100 simplify guard of uClibc internals Simplify guard of uClibc internals, since _LIBC sections are removed on install. Signed-off-by: Peter S. Mazinger commit 863b99c6dbe860ed88724294a037591ffb2cca59 Author: Peter S. Mazinger Date: Wed Mar 2 22:24:26 2011 +0100 remove libc-internal.h on install Remove libc-internal.h on install, I think internal is a typo. Signed-off-by: Peter S. Mazinger commit 5e22e71adfef5ad46119cea98fccf4ae998ad0d8 Author: Peter S. Mazinger Date: Wed Mar 2 21:59:58 2011 +0100 remove ucontext.h and guard sigstack structure with SUSV4_LEGACY and 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 commit 8116ca7baec0ff8c9bc35a2920aa36549e6004a4 Author: Peter S. Mazinger Date: Wed Mar 2 15:31:00 2011 +0100 make parse_printf_format() depend on UCLIBC_HAS_GLIBC_CUSTOM_PRINTF we already remove the printf.h header if this option is disabled Signed-off-by: Peter S. Mazinger commit 83c1854b97d79e2b67065b1a2651b0d11d8a8f6b Author: Peter S. Mazinger Date: Wed Mar 2 15:06:51 2011 +0100 remove error handling from some syscalls Remove error handling from getegid/getgid/geteuid/getuid/getppid/getpid/getpgrp Use strong_alias if fallbacks are needed Signed-off-by: Peter S. Mazinger commit 45dafbdb4e221f600895aa70a69e2e306093bd90 Author: Peter S. Mazinger Date: Sun Feb 27 00:25:56 2011 +0100 fix dependency on ADVANCED_REALTIME 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 commit 5ecbf1730329be5e04229fb1ea23f4bc0bc3d2a3 Author: Peter S. Mazinger Date: Sun Feb 27 00:20:58 2011 +0100 fix stubs We use enosys_stub only in this file so make it static Signed-off-by: Peter S. Mazinger commit 370e40a5d94efb44d6b8adbca6fcaa1262793f0b Author: Peter S. Mazinger Date: Sat Feb 26 22:13:19 2011 +0100 initialize 2 variables to get rid of compiler warning Signed-off-by: Peter S. Mazinger commit 2e9d2266c0cea250f7a87dc6aa2b02d0bd5a0aea Author: Peter S. Mazinger Date: Sat Feb 26 21:49:38 2011 +0100 Correct ssp code 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 commit f00e553e4b084007781df5e4b5accc2e152da231 Author: Peter S. Mazinger Date: Sat Feb 26 19:41:29 2011 +0100 add missing prototypes Add some missing prototypes Signed-off-by: Peter S. Mazinger commit 380b5c5b31bdbf5e171ce035009e5e53b0ea230d Author: Peter S. Mazinger Date: Sat Feb 26 19:33:21 2011 +0100 use common sigthread.h NPTL build did not use the correct bits/sigthread.h, use a common version avoiding this. Signed-off-by: Peter S. Mazinger commit 1fc68eae4846de4a1e276e68aee743ef731f3e91 Author: Peter S. Mazinger Date: Sat Feb 26 19:31:39 2011 +0100 add missing prototypes Add some missing prototypes Signed-off-by: Peter S. Mazinger commit d15e625b3c53c0059644d7b8323b49005f84fb36 Author: Peter S. Mazinger Date: Sat Feb 26 19:28:53 2011 +0100 style update Style update avoiding compile warnings Signed-off-by: Peter S. Mazinger commit de71e42c04a7d35cf663b1c84ac1de5b6b93b052 Author: Peter S. Mazinger Date: Sat Feb 26 19:26:30 2011 +0100 syntax fixes Avoid compile warnings about the use of undefined constants Signed-off-by: Peter S. Mazinger commit 099b65127dd434846ca75d5fb11c2db303ed77a6 Author: Peter S. Mazinger Date: Sat Feb 26 19:23:10 2011 +0100 avoid warnings on _STACK_GROWS_* usage Signed-off-by: Peter S. Mazinger commit df25e26ca756038711354a32f7765ee6fa75b2ec Author: Peter S. Mazinger Date: Sat Feb 26 19:20:18 2011 +0100 syntax fix Signed-off-by: Peter S. Mazinger commit 624be66cb9b350d5c6538fca8592cdb3a4c23d37 Author: Peter S. Mazinger Date: Sat Feb 26 19:15:32 2011 +0100 try to fix duplicated slashes in the generated lib*.so files 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 commit 60d28a6cda74226e0532a58336a83dae0af347fb Author: Peter S. Mazinger Date: Sat Feb 26 19:09:46 2011 +0100 initialize tls_tpnt to NULL on all archs Initialize tls_tpnt to NULL on all archs instead of 0. Signed-off-by: Peter S. Mazinger commit 33c5506e97dc04a46fb7e06c03de144b66788520 Author: Peter S. Mazinger Date: Sat Feb 26 18:52:21 2011 +0100 disable build warnings in utils Disable some build warnings in utils. Signed-off-by: Peter S. Mazinger commit 9fa4711e364e9aa779d6b8d12220bbb63dbb1f3d Author: Peter S. Mazinger Date: Sat Feb 26 18:45:19 2011 +0100 guard IPv6 stuff disable IPv6 related stuff if feature is disabled. Signed-off-by: Peter S. Mazinger commit a82ba03b6ff449bdfdae4ad360c2ab59bda09ef4 Author: Peter S. Mazinger Date: Sat Feb 26 18:28:19 2011 +0100 add UCLIBC_STRICT_HEADERS config option Add config option to disable the visibility of structures/constants that should not be visible unless a feature is enabled. Signed-off-by: Peter S. Mazinger commit 41615c3fe7fe4bbcdd83975876e0108a09301f4a Author: Peter S. Mazinger Date: Sat Feb 26 18:15:29 2011 +0100 include features.h include features.h to make the next ifdef work. Signed-off-by: Peter S. Mazinger commit 435471db8561e4686e5921b7f719ab6d5a0d06f7 Author: Carmelo Amoroso Date: Thu Mar 3 09:22:15 2011 +0100 ldso: use ADDR_ALIGN instead of hard-coded value Use ADDR_ALIGN to align the minvma when loading shared libraries instead of the hard coded 0xffffU value. This fixes teh stand/alone support on ARM as reported in bug #3133. Signed-off-by: Sven Ola Signed-off-by: Carmelo Amoroso commit be88a80858ea4febcc621f87166fbf4c1753e513 Author: Carmelo Amoroso Date: Mon Feb 7 18:03:36 2011 +0100 nptl:arm: add a wrapper for .cfi_sections pseudo-ops ARM disables by default the support for ASM CFI directives. Anyway using an old version of binutils that does not support some new pseudo-op, the build fails as below: AS libpthread/nptl/sysdeps/unix/sysv/linux/close.oS libpthread/nptl/sysdeps/unix/sysv/linux/close.S: Assembler messages: libpthread/nptl/sysdeps/unix/sysv/linux/close.S:9: Error: unknown pseudo-op: `.cfi_sections' The problem is that the .cfi_sections pseudo should be wrapped by a macro that expands to nothing when the CFI is off. Signed-off-by: Carmelo Amoroso CC: Khem Ray commit 7a583ea370974998b4584595b9a4088fc070df1f Author: Mike Frysinger Date: Mon Feb 21 17:19:35 2011 -0500 linuxthreads.old: fix nommu initial thread stack detection Because the nommu address space is flat, and the application stack can literally be located anywhere, we cannot rely on the assumptions that the mmu port gets away with. Namely, that the first thread's stack lives at the top of memory and nothing will be created above it. Currently, the code rounds the current stack up a page and sets that as the "top" of the stack, and then marks the "bottom" of the stack as "1". Then as new threads are created, this assumption is further refined by slowly backing off the "bottom" when a new stack is created within the range of the initial stack. Simple ascii example (tid0 is the initial thread): 1 thread: [bos tid0 stack tos] 2 threads: [ tid0 stack ] [tid1 stack] 3 threads: [ tid0 stack ] [tid1 stack] [tid2 stack] As you can kind of see, this algorithm operates on one basic assumption: the initial top of stack calculation is the absolute top of the stack. While this assumption was fairly safe in the original nommu days of yore where the only file format was FLAT (which defaults to a 4KiB stack -- exactly 1 page), and memory was fairly tight, we can see that this falls apart pretty quickly as soon as the initial stack is larger than a page. The issue that crops up now is simple to hit: start an application with an 8KiB stack, execute some functions that put pressure on the stack so that it exceeds 4KiB, then start up some threads. The initial tos will be rounded up by a page, but this is actually the middle of the stack. Now when the initial thread returns from its functions (thus unwinding the stack) and tries to call something which calls back into libpthread, the thread_self() func fails to detect itself as the initial thread as the current stack is now above the tos. The __pthread_find_self() func kicks in, walks all the thread arrays, fails to find a hit, and then walks into uninitialized memory for the thread descriptor. Use of this garbage memory has obvious results -- things fall down & go boom. To address this, I extend the current algorithm to automatically scale back both the bottom and the top stack limits of the initial thread. We use the current stack pointer at "thread boot time" only as a single known point. The initial thread stack bottom is set to the bottom of memory and the initial thread stack top is set to the top of memory. Then as we create new stack threads, we figure out whether the new stack is above or below the single known good address, and then scale back either the tos or the bos accordingly. Reviewed-by: Steven J. Magnani Signed-off-by: Mike Frysinger commit 73d59554144f429b1cf0d4d7fa7de42bdf59ad92 Author: Mike Frysinger Date: Thu Jul 23 01:11:38 2009 -0400 unify stub logic Signed-off-by: Mike Frysinger commit 9112a2398ec58b32cd1a1c6feae195bd8f9a46a2 Author: Mike Frysinger Date: Tue Feb 22 16:23:23 2011 -0500 bfin: fix fp reference in _JMPBUF_UNWINDS We want to access the frame pointer, so do so directly rather than "overflowing" the pregs array and ending up at the fp member. This fixes the Blackfin build warnings: libpthread/linuxthreads.old/ptlongjmp.c: In function 'pthread_cleanup_upto': libpthread/linuxthreads.old/ptlongjmp.c:35: warning: array subscript is above array bounds libpthread/linuxthreads.old/ptlongjmp.c:56: warning: array subscript is above array bounds Signed-off-by: Mike Frysinger commit 435f73337eff129943249b0d59aad50c8df5bd2e Author: Mike Frysinger Date: Mon Feb 21 21:29:58 2011 -0500 tempname: fix int precision warnings The printf precision takes an integer, not a size_t. Otherwise we get: libc/misc/internals/tempname.c: In function '___path_search': libc/misc/internals/tempname.c:116: warning: field precision should have type 'int', but argument 3 has type 'size_t' field precision should have type 'int', but argument 5 has type 'size_t' Signed-off-by: Mike Frysinger commit 9bc14fb42980b738abfcd8be8cffcca0937b5220 Author: Bernhard Reutner-Fischer Date: Tue Feb 22 18:12:26 2011 +0100 nptl: imit waitpid just for MIPS O32 Signed-off-by: Bernhard Reutner-Fischer commit 3ac213101204750950a129e1a245c4730525287f Author: Mike Frysinger Date: Mon Feb 21 20:25:29 2011 -0500 ldso: fix fdpic builds Commit 33cb7f0b4 tried to add a small optimization for skipping unnecessary .dynamic adjustments, but did so by referencing an opaque type. While this works for non-fdpic targets (since the type can be cast to an integer), it falls apart for fdpic targets where the type is actually a structure. Since FDPIC can't support this optimization without walking a series of linked structures, just skip it. Signed-off-by: Mike Frysinger commit 128e290b1e4204ac33b4cad7fc6189447f029311 Author: Steve Kilbane Date: Mon Feb 21 19:44:42 2011 -0500 bfin: add support for new cacheflush syscall Newer gcc's will generate a call to cacheflush when updating jump tables, and that has to be done in kernel space (to avoid hardware anomalies). So make sure uClibc provides that symbol. Signed-off-by: Steve Kilbane Signed-off-by: Mike Frysinger commit f8355584a335a2a2dc03842f19ba9f1b587b2f5c Author: Steve Kilbane Date: Mon Feb 21 19:43:32 2011 -0500 bfin: fix sram/dma syscall definitions Once we pull in the header, we're forced to declare the syscall with all the right types. Signed-off-by: Steve Kilbane Signed-off-by: Mike Frysinger commit b3144c7169fe374b74172b55dfa547290b20fa9f Author: Mike Frysinger Date: Mon Feb 21 19:38:39 2011 -0500 bfin: add missing GNU-stack markings to __longjmp Signed-off-by: Mike Frysinger commit 0f4516e32c3a2186e6b6f074cfc6a57bde90e9cc Author: Bernhard Reutner-Fischer Date: Wed Feb 16 19:31:06 2011 +0100 buildsys: fix inverted logic with thread impls Signed-off-by: Bernhard Reutner-Fischer commit 18e7136e79a89ba5e978f0dc445a8fcf8d619a40 Author: Bernhard Reutner-Fischer Date: Mon Feb 14 20:54:57 2011 +0100 buildsys: use kbuild style Signed-off-by: Bernhard Reutner-Fischer commit e5651d24e38e0a96f9f8ab7a44e34deb08e11084 Author: Bernhard Reutner-Fischer Date: Sun Feb 13 18:31:27 2011 +0100 buildsys: remove wrong file Somehow Makefile.in ended in there, remove it. Signed-off-by: Bernhard Reutner-Fischer commit a8f3b642f90ae425313b91ee8250e16aa971b8ff Author: Bernhard Reutner-Fischer Date: Sun Feb 13 16:45:43 2011 +0100 arm: use EABI per default Signed-off-by: Bernhard Reutner-Fischer commit 2c1c5db993c28e96b47a77148a4635931384810d Author: Bernhard Reutner-Fischer Date: Sun Feb 13 16:19:12 2011 +0100 regex: remove set but not used variable Signed-off-by: Bernhard Reutner-Fischer commit 133bc4376ac6c1042a88d9129f850158dbaed029 Author: Bernhard Reutner-Fischer Date: Sun Feb 13 16:09:00 2011 +0100 ldso: remove now unused variable Signed-off-by: Bernhard Reutner-Fischer commit cdd129dbfe1234c41c7ebee538314417a757b8e8 Author: Bernhard Reutner-Fischer Date: Sun Feb 13 15:56:30 2011 +0100 nptl: fix typo in buildsys 0f85b228 used 'filter-pout' instead of 'filter-out'. Fix that. Signed-off-by: Bernhard Reutner-Fischer commit b6d971cbda6e769525c6f03c182323f39d791000 Author: Bernhard Reutner-Fischer Date: Sun Feb 13 15:50:48 2011 +0100 FORMAT_FDPIC_ELF: only for FRV and BFIN Signed-off-by: Bernhard Reutner-Fischer commit bb8551685e2efc42c65a01479b9f9bb8b860da01 Author: Philip Craig Date: Tue Feb 8 16:11:38 2011 +1000 Fix memory leak in dlopen()/dlclose(). The linked list of library dependencies created by dlopen() was not being freed by dlclose(). Signed-off-by: Philip Craig Signed-off-by: Bernhard Reutner-Fischer commit 32814a2b15829df3a144391f5b8bd46e755f85f5 Author: Kevin Cernekee Date: Thu Feb 10 14:30:55 2011 -0800 Fix GNU make v3.80 compatibility Commits 1f6601a and 094d82d introduced the "else ifeq" construct, which requires GNU make v3.81 or higher. This breaks the build on RHEL4 hosts. Signed-off-by: Kevin Cernekee Signed-off-by: Bernhard Reutner-Fischer commit da2d70ed69b57d63243a7b1e05ac7d43e91778ab Author: Bernhard Reutner-Fischer Date: Fri Feb 11 17:26:19 2011 +0100 arm: use CAS gcc builtin if SI-mode pattern is available Signed-off-by: Bernhard Reutner-Fischer commit 70dd77fa63a3df3c6dd38bd73c54598004d1b54e Author: Bernhard Reutner-Fischer Date: Wed Feb 9 20:47:27 2011 +0100 TODO: update Signed-off-by: Bernhard Reutner-Fischer commit d0aa7016ee1a95849a5a448083d8f8e675d80b5b Author: Bernhard Reutner-Fischer Date: Wed Feb 9 20:21:12 2011 +0100 i386: extend IMA guards to also cover LTO See GCC PR47577; TODO: Remove them. Signed-off-by: Bernhard Reutner-Fischer commit 9a9a6365d5c5abb0fe3ec6cc09542e9c7e1d3bec Author: Jones Desougi Date: Thu Jun 10 15:04:51 2010 +0200 *printf: Violation of precision with null string When a string format is processed and the argument is NULL, this yields "(null)" regardless of precision. This does not make sense, precision should not be exceeded. A simple test shows that glibc outputs nothing if precision is smaller than six and the attached patch implements this same behaviour. Consider the not uncommon case of strings implemented like this: struct string { int len; char *ptr; }; There is often no nultermination and they may be printed like this: printf("%.*s", string.len, string.ptr); If len is 0 then ptr may be anything, but NULL is a common value. Obviously the empty string would be expected, not "(null)". Signed-off-by: Jones Desougi Signed-off-by: Bernhard Reutner-Fischer commit 6f810c757e5b14a97f05652972e91f95e321a404 Author: Peter Korsgaard Date: Wed Feb 2 17:58:38 2011 +0100 sync bits/socket.h PF_* / AF_* values with 2.6.38-rc3 A number of new address / protocol families have been added over the years, so sync with Linux 2.6.38-rc3, adding CAN, ISDN, Phonet, Zigbee, .. which are starting to be used by applications. Signed-off-by: Peter Korsgaard Signed-off-by: Bernhard Reutner-Fischer commit 6a0aa4add30eecf76b9d14ad3f204e4017f9f22c Author: Bernhard Reutner-Fischer Date: Wed Feb 9 20:08:20 2011 +0100 arm: mv nptl specific atomic impl to common place Thanks to Nitin Garg for notincing! Signed-off-by: Bernhard Reutner-Fischer commit 6349a663038dbe7b59467c5bd06cd5f5dc91c867 Author: Denys Vlasenko Date: Sun Feb 6 23:51:23 2011 +0100 fix a problem with hidden getutent in non-threaded builds Signed-off-by: Denys Vlasenko commit 269f901e62106e2d36acf4c2b79a9a5ec6d684ff Author: Nitin Garg Date: Tue Feb 1 19:30:23 2011 -0600 arm: fix the static link problem for ARM due to undefined __tls_get_addr Signed-off-by: Nitin Garg Signed-off-by: Carmelo Amoroso commit 44b8aaf488b7356a893f5ce8f4b43b86334463d9 Author: Tobias Klauser Date: Tue Feb 1 17:38:07 2011 +0100 nios2: Name architecture correctly in endian.h header Nios II is not i386 :-) Signed-off-by: Tobias Klauser Signed-off-by: Carmelo Amoroso commit 094d82d3b3e8f8c8460a802b7a9548f3ae4fda46 Author: Khem Raj Date: Sat Jan 29 09:14:53 2011 -0800 nptl/mips64: Fix build when using mips64 and ABIs other than o32 Signed-off-by: Khem Raj commit 9657b26d293370032604891a361d944b8bf0b234 Author: Richard Braun Date: Fri Jan 28 18:18:54 2011 +0100 mips: avoid segmentation fault when RLD_MAP is 0 Signed-off-by: Richard Braun Acked-by: Joakim Tjernlund Signed-off-by: Khem Raj commit 3158d66d7060639225153b4cc9e373046f200ef6 Author: Filippo Arcidiacono Date: Tue Jan 25 12:50:23 2011 +0100 libc: fix linker script generation for libubacktrace.so Fix libc.so linker script generation to add libubacktrace AS_NEEDED entry using MULTILIB_DIR instead of hard-coded "lib". Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit a7c33ecabcead542e54c0c3514a92f4155add5b6 Author: Bernhard Reutner-Fischer Date: Thu Jan 20 09:15:21 2011 +0100 stdio: fix diagnostic message harmless copy'n paste error in #error Signed-off-by: Bernhard Reutner-Fischer commit b5dd2e706c1a098b2e8cd8df10500a3dde350efc Author: Carmelo Amoroso Date: Fri Jan 21 08:22:32 2011 +0100 bump version to 0.9.32-rc2-git Signed-off-by: Carmelo Amoroso commit 541f53cf24819079242079c5da79d9c5df9a27a8 Author: Carmelo Amoroso Date: Thu Jan 20 15:49:47 2011 +0100 release 0.9.32-rc2 Signed-off-by: Carmelo Amoroso commit 6d5e1c5ee7a3c307251c4be7076982f5a1f1769d Author: Will Newton Date: Thu Jan 20 15:31:14 2011 +0100 nptl: Fix __USER_LABEL_PREFIX__ concatenatio The current C macro magic does not correctly concatenate the __USER_LABEL_PREFIX__ string on architectures where it has a non-empty value. We need to use __stringify to get the desired behaviour. Signed-off-by: Will Newton Signed-off-by: Carmelo Amoroso commit 5c02df4f734011cccc65441e5dae2f5c18447f39 Author: Will Newton Date: Thu Jan 20 15:26:14 2011 +0100 nptl: fix start_thread() for _STACK_GROWS_UP This patch adds a working implementation of pthread_create for architectures where STACK_GROWS_UP. Signed-off-by: Matt Fleming Signed-off-by: Carmelo Amoroso commit 8fb5b1cffd576ba9cec8c42df028e8afd6933dcd Author: Carmelo Amoroso Date: Wed Jan 12 12:07:39 2011 +0100 ldso: get rid of _dl_lookup_hash Now _dl_find_hash and _dl_lookup_hash are exactly the same, we can get rid of the _dl_lookup_hash, reverting the _dl_find_hash from a wrapper of _dl_lookup_hash to its original role. Signed-off-by: Carmelo Amoroso commit aaf4cbd98fda76af93ebea5241f65291ff6bcaac Author: Salvatore Cro Date: Wed Jan 12 10:27:16 2011 +0100 Add protected symbols support for all architectures Protected symbols are global symbols for which interposition is not allowed. We manage them in generic _dl_lookup_hash function. To handle protected symbols we need to get a reference to the module that defines the symbol itself. So we pass a new parameter 'struct symbol_ref' to the __dl_lookup_hash that is defined as below: struct symbol_ref { const ElfW(Sym) *sym; struct elf_resolve *tpnt; }; The tpnt field is used as an ouput parameter and refers to the module which defines the protected symbol. Further it can be used as output parameter for TLS relocations and FDPIC case. The sym field is instead used as an input parameter to detect the visibility of the symbol we are looking-up. In this way we get rid of different signatures for _dl_lookup_hash, allowing to remove the _dl_find_hash wrapper. This new structure is also suitable for prelink integration. Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit c70ac1d9b290e70cbc789b0abb47337f8aa9faef Author: Carmelo Amoroso Date: Thu Jan 20 14:47:46 2011 +0100 Revert "ldso/arm: Correct protected symbol resolution" This reverts commit 48fb264beaac8114e5ac3e80e70dda473fbce96d. The generic implementation will cover all the architectures handling the protected symbols in _dl_lookup_hash [ldso/ldso/dl-hash.c] Signed-off-by: Carmelo Amoroso commit 83daa843d8d165857453a491e366bd13d360b0d4 Author: Carmelo Amoroso Date: Thu Jan 20 14:47:14 2011 +0100 Revert "ldso_sh: add support for protected symbols to SH" This reverts commit 74407db52d3953c7f3c6b8a53661cfc96cb07e22. The generic implementation will cover all the architectures handling the protected symbols in _dl_lookup_hash [ldso/ldso/dl-hash.c] Signed-off-by: Carmelo Amoroso commit 68115c38cef4bddb52928e58cdefcb45855bc6f4 Author: Carmelo Amoroso Date: Thu Jan 20 14:46:44 2011 +0100 Revert "ldso/i386: support protected symbols" This reverts commit ba38f0cec27b91cc7c605417ad047c4dc77d732f. The generic implementation will cover all the architectures handling the protected symbols in _dl_lookup_hash [ldso/ldso/dl-hash.c] Signed-off-by: Carmelo Amoroso commit 387b2e49cbb6aedcc6136fb18fb232dada563cf6 Author: Khem Raj Date: Sat Jan 15 16:21:43 2011 -0800 cris: Fix build issues Thanks Waldemar Brodkorb for reporting Signed-off-by: Khem Raj commit 8fdc17c2ba1322712604d88dca48157068e6aadb Author: Roman I Khimov Date: Thu Dec 23 11:57:49 2010 +0300 syslog: fix 'everyone logs with user facility' It's been found that on uclibc-based system most of the programs log with 'user' facility despite the calls to openlog() with other facilities explicitly set. Most but not all. Investigating that I've found that the ones logging with proper facilities used LOG_NDELAY in openlog(). The problem is that LogFacility is overwritten in openlog_intern and LOG_USER is passed to it from vsyslog() no matter what the program set with openlog(). Signed-off-by: Roman I Khimov Signed-off-by: Bernhard Reutner-Fischer commit e0d2b8e59beba49d6c2bdcf24257cc1834ce2b26 Author: Bernhard Reutner-Fischer Date: Tue Jan 11 19:46:56 2011 +0100 __psfs_parse_spec: always use long int for %p closes bug #3037 Signed-off-by: Bernhard Reutner-Fischer commit 8764f2e75c875757529aa81e5cd96e17e6f6e5e4 Author: Carmelo Amoroso Date: Wed Jan 5 14:38:13 2011 +0100 buildsys: headers target should not depend on sysnum.h The generation of the sysnum.h has to be a prerequisite of 'pregen' target instead of headers, because it needs the compiler already available. The so called C bootstrap headers are required to build the compiler by invoking 'make headers', so the 'headers' target cannot relies itself on the compiler to be invoked. Signed-off-by: Carmelo Amoroso commit 6a171a2bfc2326e57501c9e50bc28f0a8f820252 Author: Carmelo Amoroso Date: Thu Jan 6 08:28:34 2011 +0100 buildsys: fix make release target According to git man page the syntax for git archive should have the as last argument. Indeed using git 1.5.5.6 the tarball was not properly created. Newer version (i.e. 1.6.3.3) works fine even if HEAD comes before other option. For backward compatibility use a syntax that is fine with older git. Signed-off-by: Carmelo Amoroso commit 8958a63759c2ae23b47e76efeed1b7fc1f22728c Author: Carmelo Amoroso Date: Wed Jan 5 17:22:25 2011 +0100 nptl: get rid of the last preprocessor warning when __ASSUME_TGKILL is not defined A missing change in the previous commit. Signed-off-by: Carmelo Amoroso commit b4a3345ea8f19d7be5d45e183a97f44854fc5998 Author: Bernhard Reutner-Fischer Date: Wed Jan 5 09:06:10 2011 +0100 remove uClibc_ctype.h if !LOCALE Signed-off-by: Bernhard Reutner-Fischer commit e5ac9973e93c96804eb9ed7f865853e522f1baca Author: Bernhard Reutner-Fischer Date: Wed Jan 5 09:03:28 2011 +0100 Revert "Makefile.in: Add header to 'all' target" The respective source has to depend on a given set of headers. Depending all on headers is papering over an eventual missing other dependency, so reverting. This reverts commit 4d81f2a74578f819285b131c682e8d2f6c315c4e. commit 488e56e0d9fca517e62a96d2eae5e1ef9fdb38bc Author: Carmelo Amoroso Date: Tue Jan 4 14:16:50 2011 +0100 nptl: get rid of preprocessor warning when __ASSUME_TGKILL is not defined A sample of the warning reported while building for ARM that has not __ASSUME_TGKILL defined. libpthread/nptl/sysdeps/unix/sysv/linux/raise.c: In function 'raise': libpthread/nptl/sysdeps/unix/sysv/linux/raise.c:33:5: warning: "__ASSUME_TGKILL" is not defined Signed-off-by: Carmelo Amoroso commit 4ac7ad3543dd6d7780e71af80fa5c45414451719 Author: Khem Raj Date: Sat Jan 1 22:59:00 2011 -0800 libc/inet/netlinkaccess.h: Use the types from kernel Signed-off-by: Khem Raj commit 90e38b925cc5d023bbdccbc8a4a401b0ed282c21 Author: Austin Foxley Date: Wed Dec 29 17:49:59 2010 -0800 sparc: fix linking issue with __syscall_error.c Finally got around to testing out latest master and noticed that some buildsystem work last summer broke shared-builds of nptl on sparc. A version of __syscall_error.c needs to be linked into both libpthread and librt Signed-off-by: Austin Foxley commit e6164d4b527865f4c81544ad18bfd634117d595b Author: Konrad Eisele Date: Tue Dec 14 13:49:17 2010 +0100 sparc: check for log double support in gcc To compile the quad float emulation library gcc needs __LONG_DOUBLE_128__ macro defined. Check first, if not supported then revert to the qp_ops.c stubs Signed-off-by: Konrad Eisele Signed-off-by: Khem Raj commit 2a416f277e43be8301f1fdcdca7515b1e2a4508c Author: Matt Fleming Date: Mon Nov 15 15:34:18 2010 +0000 linuxthreads: Fix compilation breakage With commit "resolv.c: add support for per thread res_state" (aab4df0fb51660300559f5f29290709db2f7bfee) _res symbol is now marked as hidden in an attempt to make the resolver per-thread. Signed-off-by: Matt Fleming Signed-off-by: Bernhard Reutner-Fischer commit 8b359ad87079dc715b46cc322440871f49d2a500 Author: Khem Raj Date: Tue Dec 21 19:29:50 2010 -0800 libpthread/nptl_db: Append options to LDFLAGS based on if LD is set to gcc driver or ld itself Signed-off-by: Khem Raj commit 4d81f2a74578f819285b131c682e8d2f6c315c4e Author: Khem Raj Date: Sat Dec 18 21:51:06 2010 -0800 Makefile.in: Add header to 'all' target Stage bits/uClibc_ctype.h when locales are enabled Signed-off-by: Khem Raj commit 0cc3811abda8152f406d5ebca191735cb7359075 Author: Khem Raj Date: Sat Dec 18 21:08:58 2010 -0800 extra/locale/Makefile: Consider the case of building out of sourcedir Signed-off-by: Khem Raj commit 9e5335ed874515b33aa296c1cd8e7a8b640472c9 Author: Khem Raj Date: Sat Dec 18 08:09:25 2010 -0800 sem_open.c/sem_unlink.c: Use INTUSE macro to get proper function call to __pthread_once We need to use __pthread_once_internal if available this macro is therefore used to notify that. Signed-off-by: Khem Raj commit f3a594f390abe7d4a3f1b544424b31613d559c88 Author: Khem Raj Date: Sat Dec 18 08:08:05 2010 -0800 nptl: If DOPIC is set then we missed a rule to generate .os variants for pt-*.c files Signed-off-by: Khem Raj commit fc91a4155d265a189ae6aa50b63640d8da7b3609 Author: Khem Raj Date: Fri Dec 17 00:54:50 2010 -0800 install_headers: Fix the header installation when using out of source build ( O=/x/y/z ) Signed-off-by: Khem Raj commit d3a751c8c067f55a1a88a1bda3b73d2b7617b0d6 Author: Bernhard Reutner-Fischer Date: Fri Dec 17 20:05:56 2010 +0100 bump version to 0.9.32-rc1-git Signed-off-by: Bernhard Reutner-Fischer commit f7222d84d3d5ae5d5efbf320ce9959020ec07993 Author: Bernhard Reutner-Fischer Date: Fri Dec 17 20:05:17 2010 +0100 release 0.9.32-rc1 Signed-off-by: Bernhard Reutner-Fischer commit 6ac247452e646c2187f2f559143c8c087b0542e0 Author: Christian Bruel Date: Fri Dec 17 09:58:25 2010 +0100 libm_sh: add optimised assembly implementation of lroundf and lrintf * libc/sysdeps/linux/sh/sysdep.h: Add LOCAL macro * libm/sh/sh4/Makefile.arch: Include asm source in the build * libm/sh/sh4/s_lrintf.S [NEW]: optimised asm lrintf * libm/sh/sh4/s_lroundf.S [NEW]: optimised asm lroundf Signed-off-by: Christian Bruel Signed-off-by: Carmelo Amoroso commit c61707353e16b8e22cab1a150cc3a6bf9b178e1c Author: Carmelo Amoroso Date: Fri Dec 17 08:30:33 2010 +0100 libm_powerpc: update buildsys to use TARGET_SUBARCH Update the powerpc buildsys of libm to use the TARGET_SUBARCH. Further fix the e500 Makefile.arch by adding the definition of libm_ARCH_fpu_DIR that was actually missing. Signed-off-by: Carmelo Amoroso commit 5a1453f20c9ba7023f1836bdcd5ab06963f927a1 Author: Carmelo Amoroso Date: Fri Dec 17 08:11:12 2010 +0100 libm_sh: Move fenv functions into sh4 sub-folder Indeed fenv funxtions are SH4 specific, so move them into an SH4 specific sub-folder. Signed-off-by: Carmelo Amoroso commit 6c6720bb831b14c77d3eb8f5f7061e095df6ea47 Author: Carmelo Amoroso Date: Wed Dec 15 18:00:16 2010 +0100 sh_fpu: Do not allow inclusion of fpu_control on not SH4 core Instead of emitting a warning even when compiling for SH4, stop compilation with an #error directive when not on SH4 core. Signed-off-by: Carmelo Amoroso commit 640220faf25659eb4c15b78cf8869251dbadbd16 Author: Giuseppe Cavallaro Date: Mon Dec 13 11:39:36 2010 +0100 sh: fix memcpy saving/restoring FR12-FR15 registers This patch fixes a bug in the memcpy that doesn't save/restore the FR12-FR15 registers (callee save registers in ST40 ABI) while copying many cache lines with FPU in single paired precision mode and by using all FPU registers (DR and XD). Signed-off-by: Giuseppe Cavallaro Reviewed-by: Carmelo Amoroso Signed-off-by: Carmelo Amoroso commit 1f674977c0f3ea1e67deea93fa8f4e795cc869ad Author: Timo Teräs Date: Tue Dec 7 11:27:29 2010 +0200 nptl: fix Unwind_Resume PLT calls My change a49b3a18e463cbe8c94c41501e386e7f4c61609e fixed two Unwind_Resume calls to go via PLT to avoid text relocations for PIC builds. However, it looks the reason for upstream not using PLT calls is that ebx gets clobbered. So we need to reload it. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit a1aaae7b8731a25b7dd8b6a58713dcfc339c3c44 Author: Thomas Petazzoni Date: Sat Dec 4 10:29:42 2010 +0100 getconf: only use specs that are available On older glibc (like 2.7), the _SC_V7_* symbols are not defined, making the build of current uClibc fail on Debian Lenny systems and other systems using a fairly old glibc. So we make sure to only use the specs names that are defined by the host C library. Signed-off-by: Thomas Petazzoni Signed-off-by: Bernhard Reutner-Fischer commit e2903ddb06b1f50cb4ac9af0b035c74ed6b9d30f Author: Natanael Copa Date: Tue Aug 24 08:19:27 2010 +0000 create DEVEL_PREFIX/MULTILIB_DIR dir rather than DEVEL_PREFIX/lib This fixes issue with GNU Make 3.82 when running: make install DESTDIR=$someplace Signed-off-by: Natanael Copa Signed-off-by: Khem Raj commit a70fd5d6a76ba29d9428fb4a31c57ae50534b661 Author: Austin Foxley Date: Wed Dec 1 15:32:41 2010 -0800 Config.sparc: remove warning about shared libs on v7 Signed-off-by: Austin Foxley commit 78009d25addb8487702f902ed4ad581a5004bfe9 Author: Natanael Copa Date: Fri Nov 26 14:49:56 2010 +0000 libc: fix strtoq 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 Signed-off-by: Bernhard Reutner-Fischer commit c5db8f051be9846485911e973f26943c114c66fb Author: Filippo Arcidiacono Date: Mon Nov 29 23:31:49 2010 +0100 libc_sh: add __tls_get_addr to static libc (SH) 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 Signed-off-by: Carmelo Amoroso commit bfeeeb57588f6a58d6a154fbc59b30fb48e27956 Author: Carmelo Amoroso Date: Wed Dec 1 17:04:05 2010 +0100 Revert "libc_tls: Do not include generic libc-tls from arch specific 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 Signed-off-by: Carmelo Amoroso commit 0c468129356f5ce6780e7369c271d74631ae03ba Author: Carmelo Amoroso Date: Mon Nov 29 22:21:52 2010 +0100 libc_tls: Do not include generic libc-tls from arch specific implementation 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 commit 5dea871ac73ef4608022c058b50adc946917f9b9 Author: Carmelo Amoroso Date: Sun Nov 28 20:44:21 2010 +0100 libc_utmp: Fix getutmp and getutmpx for x86_64 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 commit a11fcabb4a6a1a384363329ebdb3569a1df246f8 Author: Bernhard Reutner-Fischer Date: Wed Nov 24 23:03:03 2010 +0100 Revert "ldso: silence warning about unused tls var if !tls" This reverts commit 23fa805150d573a913cad69d34c06f3b2ce54270. Signed-off-by: Bernhard Reutner-Fischer commit 157400bfd96564424fc932e289cff99578e166b9 Author: Bernhard Reutner-Fischer Date: Wed Nov 24 23:02:11 2010 +0100 Config: default ia32 to i486 NPTL requires i486 on ia32 since i386 doesn't provide required lll Signed-off-by: Bernhard Reutner-Fischer commit f3a07d80c83f965fc3f459d19efa25a5b2a0c093 Author: Bernhard Reutner-Fischer Date: Wed Nov 24 22:46:02 2010 +0100 libc: silence warning about implicit declaration of memset in system() Signed-off-by: Bernhard Reutner-Fischer commit 23fa805150d573a913cad69d34c06f3b2ce54270 Author: Bernhard Reutner-Fischer Date: Wed Nov 24 22:33:01 2010 +0100 ldso: silence warning about unused tls var if !tls Signed-off-by: Bernhard Reutner-Fischer commit d58d8413ca908febbdeba92231bd17dc1dccbe04 Author: Bernhard Reutner-Fischer Date: Wed Nov 24 21:06:38 2010 +0100 config_parser: hide symbols Our impl has diverged from busybox' so make sure nobody else uses it. Signed-off-by: Bernhard Reutner-Fischer commit f58a8c2df355f807e21dc678ff6cbe7042308819 Author: Bernhard Reutner-Fischer Date: Wed Nov 24 20:54:51 2010 +0100 test: ignore some more binaries Signed-off-by: Bernhard Reutner-Fischer commit 86b4bf7d3194a06281f053be341031d9196874c2 Author: Bernhard Reutner-Fischer Date: Wed Nov 24 20:51:46 2010 +0100 wchar: bug #1471: fix cornercase in mbrtowc Signed-off-by: Bernhard Reutner-Fischer commit 673f444013915fe2cfd30019b27bf3b8d1d34a4e Author: Bernhard Reutner-Fischer Date: Wed Nov 24 20:21:58 2010 +0100 buildsys: add make {,install_}startfiles This builds and installs the crt files. Signed-off-by: Bernhard Reutner-Fischer commit 2cd5c90fc784c83c85f4af32565d5b5219aed30a Author: Bernhard Reutner-Fischer Date: Wed Nov 24 20:20:47 2010 +0100 test/math: bessel depend on XSI_MATH Signed-off-by: Bernhard Reutner-Fischer commit c2acd989048e58dcde5c5088211b0a0e40fc0f76 Author: Philip Nye Date: Fri Nov 19 16:50:35 2010 +0000 resolv.c fails for /etc/hosts lookups 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 Signed-off-by: Bernhard Reutner-Fischer commit 22bf234a7119559901adfedc9991876af01eb64c Author: Konrad Eisele Date: Thu Nov 18 10:32:37 2010 -0800 Disables the automatic disable of shared library for sparc-v7. 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 Signed-off-by: Austin Foxley commit e428bff6b2825a5081ae2f081471e5e3921a2e9f Author: Austin Foxley Date: Thu Nov 18 10:20:43 2010 -0800 Adding quad float gcc intrinsic implementation for SPARC 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 Signed-off-by: Austin Foxley commit c452a58e65a2600ab1e9a7be2e5a6e4cae0e8b2a Author: Natanael Copa Date: Thu Nov 11 15:54:19 2010 +0000 ntpl: fix static linking by not leaking SSP_ALL_CFLAGS 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 Signed-off-by: Bernhard Reutner-Fischer commit 871ea0e8c0052d8ba03303d7f52118d7c2a3480c Author: Bernhard Reutner-Fischer Date: Wed Nov 10 20:10:46 2010 +0100 nptl: use correct unwind header for unwind-forcedunwind Signed-off-by: Bernhard Reutner-Fischer commit a9605f9bee384d9cb3d30ec1461aa59cdb8f6908 Author: Steven J. Magnani Date: Wed Nov 10 19:41:45 2010 +0100 microblaze: build infrastructure Fix Microblaze config and makefiles. Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit 87fd5816c9a14c4457cb69afaece1d28e66256fa Author: Steven J. Magnani Date: Wed Nov 10 19:37:26 2010 +0100 microblaze: thread support Header files needed to build linuxthreads.old for microblaze. Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit 1a93a9e7559da068bf177aa5c0addf7c2214e314 Author: Steven J. Magnani Date: Wed Nov 10 19:33:52 2010 +0100 microblaze: optimized memcpy/memmove Port optimized memcpy/memmove from the kernel. Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit dd8572189cde0425a9c09b57d1d05f53a24c0365 Author: Steven J. Magnani Date: Wed Nov 10 19:32:27 2010 +0100 microblaze: misc headers Other header files for uClibc compilation. Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit bc71df2efbf1a007365b7c3841da781bdfdafce2 Author: Steven J. Magnani Date: Wed Nov 10 19:32:13 2010 +0100 microblaze: kernel headers Sync kernel header definitions with those used in recent mainline kernels. Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit 20dc758d24f3e6fc19c3d8a3a029a32072cd6a29 Author: Steven J. Magnani Date: Wed Nov 10 19:31:11 2010 +0100 microblaze: Restore soft-float Software floating point for microblaze. Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit 975ce6359486ec3d2905e57d11ef22088b04b85f Author: Steven J. Magnani Date: Wed Nov 10 19:30:02 2010 +0100 microblaze: vfork/clone interface Fix the microblaze vfork() and clone() implementations. Add support for clone2(). Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit 54f73a98f6b841f05484e2275c860ae61d49aae2 Author: Steven J. Magnani Date: Wed Nov 10 19:27:57 2010 +0100 microblaze: syscall interface 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 Signed-off-by: Bernhard Reutner-Fischer commit 2be86fb41e29def10eec97e5f663cc8147227358 Author: Steven J. Magnani Date: Wed Nov 10 19:25:30 2010 +0100 microblaze: Fix crt bootstrap 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 Signed-off-by: Bernhard Reutner-Fischer commit 4dc998596f0ed8c9f1da6dc57a5640e3928cc12b Author: Steven J. Magnani Date: Wed Nov 10 19:23:45 2010 +0100 microblaze: Fix setjmp/longjmp Some state and registers are missing from setjmp/longjmp handling. Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit ffc5c7769dff075629e27a351b5c403e50a9f57d Author: Denys Vlasenko Date: Tue Nov 2 07:44:35 2010 +0100 ldso/include/dl-hash.h: suppress compiler warning. no code changes 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 commit 4d7ff2915e5b1050ad16c2ad57ba98c19d6d79d6 Author: Denys Vlasenko Date: Tue Nov 2 07:35:01 2010 +0100 ldouble_wrappers: make code less verbose via WRAPPER2 macro Tested: ran testsuite Signed-off-by: Denys Vlasenko commit fff9dae7eb2e9e9a81f73a955d921e7f0e1e9bb5 Author: Denys Vlasenko Date: Tue Nov 2 07:24:50 2010 +0100 ldouble_wrappers: remove i386-specific optimization 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 commit 4d537e8547b8d623e1847cd80d3da455dc52ff85 Author: Denys Vlasenko Date: Sun Oct 31 15:58:18 2010 +0100 libm: disable tail jump trick if __SSP_ALL__ (was using wrong conditional) Thanks, Timo! Signed-off-by: Denys Vlasenko commit 8b34cac8748067dbebc99f1b8450c5de91661db5 Author: Denys Vlasenko Date: Sun Oct 31 04:36:02 2010 +0100 libm: fix tgamma to actually do return true gamma function Signed-off-by: Denys Vlasenko commit 7e308604ee0aa67bc37f37d6f69ed41481c427a0 Author: Denys Vlasenko Date: Sun Oct 31 03:03:38 2010 +0100 libm: improve readability of math.h; expand comments and docs Signed-off-by: Denys Vlasenko commit 195931714a882765af150167115dcc9077da2213 Author: Denys Vlasenko Date: Sun Oct 31 03:02:00 2010 +0100 libm: remove int_WRAPPER_C99 macro, add test which checks that I did not break it Signed-off-by: Denys Vlasenko commit d726ada135fa7324b44b47d1d5fcf3f5317d343c Author: Denys Vlasenko Date: Sun Oct 31 01:42:08 2010 +0200 libm: revert wrong ldouble wrapper hack "fix" Signed-off-by: Denys Vlasenko commit 86bb6c482282b56bdcf69b2836d5fca09265336f Author: Denys Vlasenko Date: Sun Oct 31 01:23:34 2010 +0200 libm: fix false positives in double tests Signed-off-by: Denys Vlasenko commit e9807e243b454b06f279d7593abaeb74c73aef1e Author: Denys Vlasenko Date: Sun Oct 31 00:45:06 2010 +0200 libm: fix remaining failures in test-float 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 commit 4435b3ae24b6f76892b7c06c300687c23fab2729 Author: Denys Vlasenko Date: Sat Oct 30 23:45:41 2010 +0200 libm: fix rint/scalb testcase failures 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 commit ae73aafe99fa6bb5e7422f2bdedea39f03ead72c Author: Denys Vlasenko Date: Sat Oct 30 21:25:35 2010 +0200 libm: fix powf testcase failures 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 commit 0b73115a0961fca9e042e02ed644cb85e251cbb6 Author: Denys Vlasenko Date: Sat Oct 30 20:30:14 2010 +0200 libm: fix scalb testsuite failures Signed-off-by: Denys Vlasenko commit 8f6064f5ce689226a528026f196a10c5ba7500d5 Author: Denys Vlasenko Date: Sat Oct 30 20:19:20 2010 +0200 libm: fix testuite failure in modf 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 commit 1631ebd26712b2f5f41285c8cada819bebed294c Author: Denys Vlasenko Date: Sat Oct 30 19:40:35 2010 +0200 test/math/*: unbreak 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 commit 69c3616ade8e268708ef24e5b091f94f2ffe08d4 Author: Denys Vlasenko Date: Sat Oct 30 15:06:20 2010 +0200 sleep: include Linus' email in the comment Signed-off-by: Denys Vlasenko commit 18e0f7e66e06b3b128e3d0a8837909f7f474ab69 Author: Denys Vlasenko Date: Fri Oct 29 04:01:27 2010 +0200 sleep: document testing result on 2.4.x kernels Signed-off-by: Denys Vlasenko commit fed8640bceb8fe937efaceaf2ca506b03f76f621 Author: Denys Vlasenko Date: Fri Oct 29 03:44:57 2010 +0200 sleep: add comment with test program for SIG_IGNed SIGCHLD Signed-off-by: Denys Vlasenko commit fe713659049ac9127b58f2268004037e83e2cac4 Author: Bernhard Reutner-Fischer Date: Wed Oct 27 22:18:23 2010 +0200 Fix msync() redefinition for noMMU build 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 commit 9a4c8a3f2c753f4cee4bcbe23d28e23bbdb99e40 Author: Alexander Gordeev Date: Thu Oct 7 18:54:24 2010 +0400 mips: fix errno setting after syscall If there was an error during syscall then after it's completion a3 register holds a non-zero value and v0 holds an actual error code which should be saved in errno. This can be achieved by calling __syscall_error with the value from v0 as a parameter. So this value should be stored in a0, but the appropriate assembly instructions are missing. Fixed this now by adding "move a0, v0". I think it was once fixed by 58c5f8ba4cdf62342d05a546d15404cbbb3c4e07 but then something went wrong. Again... Signed-off-by: Alexander Gordeev Signed-off-by: Bernhard Reutner-Fischer commit 162cfaea20d807f0ae329efe39292a9b22593b41 Author: Denys Vlasenko Date: Fri Oct 22 17:01:05 2010 +0200 *: inline constant __sig{add,del}set and __sigismember text data bss dec hex filename - 318 4 0 322 142 libc/pwd_grp/lckpwdf.o + 312 4 0 316 13c libc/pwd_grp/lckpwdf.o - 166 0 1 167 a7 libc/stdlib/abort.o + 157 0 1 158 9e libc/stdlib/abort.o - 42 0 0 42 2a libc/sysdeps/linux/common/pause.o + 27 0 0 27 1b libc/sysdeps/linux/common/pause.o Signed-off-by: Denys Vlasenko commit 4bbf7dfe44bb83391b12ac94ca478df71fcf3dd7 Author: Denys Vlasenko Date: Fri Oct 22 16:52:41 2010 +0200 remove superfluous libc_hidden_proto(memcpy) and #include Signed-off-by: Denys Vlasenko commit e9b9c97c33c52e9eafaf6bf6d682e43ecfa3aea7 Author: Denys Vlasenko Date: Fri Oct 22 15:46:04 2010 +0200 sleep: tiny code shrink ...or rather, it WILL BE code shrink when gcc become clever enough to not emit a second, useless XORing of ebx: 31 db xor %ebx,%ebx 85 c0 test %eax,%eax 74 11 je 73 <__GI_sleep+0x73> 31 db xor %ebx,%ebx <=== ?! Signed-off-by: Denys Vlasenko commit 251a3c19cb4bba47fcd38c697b3d7679b3edb137 Author: Denys Vlasenko Date: Fri Oct 22 15:24:13 2010 +0200 sleep: employ __USE_EXTERN_INLINES (with necessary fixes) __USE_EXTERN_INLINES was unused and had bit-rotted, had to fix it when it didn't work as intended at first. text data bss dec hex filename - 168 0 0 168 a8 libc/unistd/sleep.o + 146 0 0 146 92 libc/unistd/sleep.o Signed-off-by: Denys Vlasenko commit 62fb840ea00d9d10446959d290d93a45065220f4 Author: Denys Vlasenko Date: Fri Oct 22 15:22:40 2010 +0200 sleep: check "SIGCHLD is SIG_IGN'ed" first. Saves two syscalls in common case text data bss dec hex filename - 197 0 0 197 c5 libc/unistd/sleep.o + 168 0 0 168 a8 libc/unistd/sleep.o Signed-off-by: Denys Vlasenko commit f53db356f53686cb0e4ddb25946b8cff9e82453d Author: Timo Teräs Date: Fri Oct 22 13:58:13 2010 +0200 libm/x86: use call instead of jump for wrappers GCC can emit prologue/epilogue code for the functions in various different cases: - frame pointers - PIC build (to load ebx for indirect calls/jumps) - forced stack smashing protection If we used jump in such cases, we'd corrupt the call stack and crash. Signed-off-by: Timo Teräs Signed-off-by: Denys Vlasenko commit 5e8d3975e2cb45df16038e2a99c74abfb252d44a Author: Denys Vlasenko Date: Fri Oct 22 13:48:57 2010 +0200 sleep: remove commented-out code. no code changes It can be easily reconstructed, since it's obvious Signed-off-by: Denys Vlasenko commit c403e32526bc99e886d58a09e11a4f3043af8040 Author: Denys Vlasenko Date: Thu Oct 21 18:19:35 2010 +0200 sleep: code shrink Use less stack by using same "sigset_t set" object for new and saved signal set, remove redundant clearing of set, and do not save/restore errno around sigprocmask(SIG_SETMASK) - it never changes it. While at it, improve comments and make code style consistent across sleep.c file. text data bss dec hex filename - 242 0 0 242 f2 libc/unistd/sleep.o + 197 0 0 197 c5 libc/unistd/sleep.o Signed-off-by: Denys Vlasenko commit 71dcf8f4401b27f2b7446601a6d0dbcddc0aa8b4 Author: Denys Vlasenko Date: Tue Oct 19 15:07:00 2010 +0200 vfprintf.c: reduce a chunk of #ifdef forest and remove one goto inside it No code changes according to objdump. Signed-off-by: Denys Vlasenko commit 984e74b6df47fe33622a06e6995324f706b8f936 Author: Denys Vlasenko Date: Tue Oct 19 14:46:05 2010 +0200 _vfprintf.c: de-obfuscate badly twisted fragment. no code changes. objdump confirms that I did not mess it up. Signed-off-by: Denys Vlasenko commit 7da684a4613809f430ed6f157f059c35c782da9e Author: Denys Vlasenko Date: Tue Oct 19 14:37:40 2010 +0200 vfprintf.c: remove endif comments which clog up the source. no code changes Example: --ppfs->maxposarg; Verified with objdump that no code is changed Signed-off-by: Denys Vlasenko commit 7add20c8200f9fb02743cd1b24b15b6201294fbf Author: Denys Vlasenko Date: Tue Oct 19 14:07:51 2010 +0200 vfprintf.c: de-obfuscate if(with nested assignments). no logic changes God knows this file is hard to read as-is, some readability improvement is in order. Signed-off-by: Denys Vlasenko commit 7b74c6bab0fc39325a5b9a978a3d8ab73009e5d3 Author: Natanael Copa Date: Thu Oct 14 06:35:10 2010 +0000 getproto: increase line buffer size, simlify and fix alias handling We increase line buffer size, reduce MAXALIASES and make sure we don't segfault when there are too manuy aliases in /etc/protocols. Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit 3dc83600855e3754a9046495751758624ac5bfb7 Author: Natanael Copa Date: Thu Oct 14 06:35:09 2010 +0000 getnet: simplify alias handling and reduce MAXALIASES Reduce MAXALIASES to something lower. There will probably never be need for more than 1 alias but we allow a few extra. While here we alos fix segfault when there are too many aliases. Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit 2631ae8aab71c350273fa2d7a787bfcbff258029 Author: Natanael Copa Date: Thu Oct 14 06:35:08 2010 +0000 getservice: fix handling of long lines Don't try to be smart by dynamically realloc buffersize as it doesn't work. Instead, be simple and allocate a buffer big enough. This fixes a memory leak when calling getserv{ent,byname,byport} multiple times. To save memory we reduce number of max aliases. We seldomly will need more than 1 anyways. While here, fix segfault that happened if there were too many aliases. Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit 6e74339e7d762857579169068b060a4fd3f345c4 Author: Natanael Copa Date: Thu Oct 14 06:35:07 2010 +0000 parse_config: discard rest of incomplete line If line is longer then size of given buffer and buffer is not allocated by the config parser itself, then discard rest of line. Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit c7c7ea92be00a9b5b48d1243bb75d32390263159 Author: Natanael Copa Date: Thu Oct 14 06:35:06 2010 +0000 config parser: always initialize line pointer We must always initialize line pointer since data pointer might have changed due to a realloc (in getserv.c for example). Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit 5cb23c3c734fad8fcfcd09eef34f666f04a0af5e Author: Natanael Copa Date: Thu Oct 14 06:35:05 2010 +0000 getservice: getservent_r must return ERANGE when buffer is too small This fixes issue introduced by 72e1a1ce186c39f07282398e2af9eb0253e60f15 This should also fix the following testcase to exit with error rather than cause an endless loop. int main(void) { if (getservbyname("non-existing", "udp") == NULL) err(1, "getservbyname"); return 0; } Reported by Pirmin Walthert http://lists.uclibc.org/pipermail/uclibc/2010-August/044277.html Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit 54187ed0f082d145955a932f67259668dd038f65 Author: Natanael Copa Date: Thu Oct 14 06:35:04 2010 +0000 config parser: do not assume that realloc return same pointer We need to update the parser->line pointer on realloc and do not initialize the token array til after the potensial realloc in bb_get_chunk_with_continuation(). While here, also replace a realloc() with malloc() where pointer always is NULL. Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit c50d27fa8b1f62ebf9853a641dcf38a90ed33d38 Author: Austin Foxley Date: Fri Oct 1 16:06:23 2010 -0700 sparc: pipe.S return value of pipe on success is supposed to be 0 Signed-off-by: Austin Foxley commit 74407db52d3953c7f3c6b8a53661cfc96cb07e22 Author: Salvatore Cro Date: Thu Sep 23 12:01:20 2010 +0200 ldso_sh: add support for protected symbols to SH Protected symbols should not be overridden by symbols from other modules. Such symbols are exported i.e. globally visible, but references from whithin defining modules are satisfied locally. Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit 78e6de06e7148f43453e73836bc29ab8ea5e0c16 Author: Carmelo Amoroso Date: Wed Sep 22 12:13:21 2010 +0200 libc: Sort HEADERS_RM alphabetically No functional changes, just a code tidy-up. Please keep them sorted in future changes. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 0f85b228aa3f5ea797e10e69deae54ea898cb44a Author: Carmelo Amoroso Date: Mon Sep 20 15:03:17 2010 +0200 nptl: Fix libpthread build when UCLIBC_LINUX_SPECIFIC is disabled NPTL library needs both madvise and statfs symbols, that are guarded by UCLIBC_LINUX_SPECIFIC option. This fix provides these symbols too when NPTL is used, indipendently by UCLIBC_LINUX_SPECIFIC choice. Otherwise libpthread link fails as below: LD libpthread-0.9.32-git.so libpthread/nptl/libpthread_so.a(pthread_create.oS): In function `__free_tcb': pthread_create.c:(.text+0x1184): undefined reference to `madvise' libpthread/nptl/libpthread_so.a(sem_open.oS): In function `__where_is_shmfs': sem_open.c:(.text+0x764): undefined reference to `statfs' collect2: ld returned 1 exit status make: *** [lib/libpthread.so] Error 1 Signed-off-by: Carmelo Amoroso commit ef65e97083363ffaeeb5fcf3a37d074b74eafb0d Author: Carmelo Amoroso Date: Wed Jun 30 08:32:15 2010 +0200 libc: Handle cancellation in non multiplexed socket calls For those archs that provide non multiplexed socket calls it possible to implement the lib C wrappers without calling the multi-purpose __socketcall. For a subset of these functions that are cancellation point, it needs to correctly handle cancellation. Signed-off-by: Francesco Rundo Signed-off-by: Carmelo Amoroso commit 58b60840580453cd6057de5899f3414ebc7a47cb Author: Carmelo Amoroso Date: Thu Sep 16 14:52:11 2010 +0200 nptl: Remove nptl/sysdeps/generic directory from include list All archs have now moved their generic sysdep.h header from sysdeps/generic to sysdeps/common directory, so it is possible to remove the sysdeps/generic directory from the include list. Signed-off-by: Carmelo Amoroso commit f3149e573862ffa69297abd2934b48617415c97d Author: Carmelo Amoroso Date: Tue Jul 20 07:45:19 2010 +0200 nptl_sh: Fix compiler warning due to shadowed variable Signed-off-by: Carmelo Amoroso commit 26606098c2eb57d288b2e0edca471c71d0d7fa51 Author: Carmelo Amoroso Date: Thu Sep 16 12:22:34 2010 +0200 libc: Add canonicalize_file_name function Add canonicalize_file_name function and its related tests. Required by elfutils and coreutils (readlink). Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit a9e2521be8c96d2b22339253a0a335e0063b66e5 Author: Carmelo Amoroso Date: Thu Sep 16 11:49:20 2010 +0200 test: Update gitignore to take into account new tests added. Signed-off-by: Carmelo Amoroso commit 33cb7f0b4ae63f56523a20bd13e897c0cb97d73d Author: Filippo Arcidiacono Date: Tue Jul 27 17:45:26 2010 +0200 ldso: Do not adjust dynamic section entries unnecessarily Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 447c70a5dc04e85f96c2ae477ce851fdfdd8c719 Author: Salvatore Cro Date: Fri Sep 10 10:55:43 2010 +0200 tests: Added new nptl tests tests: Added several nptl tests from glibc 2.10.1 Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit a27dd6924e7964d92b49f4d5ebe2e68cfb2742dd Author: Salvatore Cro Date: Thu Sep 9 16:10:21 2010 +0200 sh: update the memcpy adding a new loop with aggressive prefetching After exploring different prefetch distance-degree combinations in this new update of the memcpy function, a new loop has been added for moving many cache lines with an aggressive prefetching schema. Prefetch has been removed when move few cache line aligned blocks. As final result, this memcpy gives us the same performances for small sizes (we already had!) and better numbers for big copies. In case of SH4-300 CPU Series, benchmarks show a gain of ~20% for sizes from 4KiB to 256KiB. In case of the SH4-200, there is a gain of ~40% for sizes bigger than 32KiB. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Carmelo Amoroso commit 599c74a4d7e9bbe68b946d65aef2725821ea3fe9 Author: Salvatore Cro Date: Thu Sep 9 16:08:54 2010 +0200 sh: move data without fetching cache block within the memset With this patch the movca.l instruction is used within the memset. The current memset implementation only uses the FPU and there is an real gain for all the sizes. Adding the movca.l instruction numbers always are better than the generic code. There is a big gain for size greater than 64 KiB but number are worst for 4-32KiB sizes compared with the implementation without movca.l. Time Memory Bandwidth (Mbytes) ------------------------------------------------- Generic SH4 SH4 (FPU) (FPU+movca.l) ------------------------------------------------- 512 1143 1998 1596 1 KiB 1273 2567 1915 2 KiB 1350 2993 2128 4-32KiB 1391 3262 2252 64KiB-16MiB 170 186 *830* Signed-off-by: Giuseppe Cavallaro Signed-off-by: Carmelo Amoroso commit 4b88e6e858b55def2ef0392278ddf81835f2ac45 Author: Salvatore Cro Date: Thu Sep 9 16:01:04 2010 +0200 libc: Fix cancellation handling in some C functions According to POSIX.1-2008 standard, the following syscalls shall be cancellation points : waitid, sleep, fdatasync, ppoll. Further, if generic syscall is not available and stubs are configured, provide the stub implementation for function. Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit 37eb913ed8c4798b736e678f4dbd9f4a91a68f74 Author: Salvatore Cro Date: Thu Sep 9 15:45:44 2010 +0200 libubacktrace: Provide uClibc with backtrace functions A new shared object, libubacktrace.so.0 is added to uClibc to provide backtrace functions to support application self-debugging. This set of functions requires to dynamically load libgcc_s.so so they need to call dlopen/dlsym that are provided by libdl. For this reason they cannot be included into libc.so.0 but are provided by a new library. User application that wants to use backtrace needs to be compiled with -fexceptions option and -rdynamic to get full symbols printed and must be linked against libubacktrace.so Signed-off-by: Carmelo Amoroso commit 7ac7be14eb4c8927fddffbe01fed74c605bf8597 Author: Salvatore Cro Date: Thu Sep 9 15:38:15 2010 +0200 misc: utmpx based logging support misc: Added support for accessing user accounting database based on utmpx structure. Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit 77f573c668505a3a408b3e8fb877b8f76bbdd6f6 Author: Natanael Copa Date: Thu Sep 9 14:03:10 2010 +0200 nptl: fix static linking We need dl-tls.c for static libc or we will get missing symbols when linking thinkgs like openssl static. Signed-off-by: Natanael Copa Signed-off-by: Carmelo Amoroso commit 2fa334ae70ea22babaa2ab0d4e938b70989700fe Author: Salvatore Cro Date: Thu Sep 9 08:20:44 2010 +0200 tests: nptl tests dependencies cleanup tests: some cleanings on nptl tests' dependencies. Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit de5cc86bc0c01dc849ce8b72a0407595ed3f8217 Author: Will Newton Date: Mon Sep 6 15:59:21 2010 +0100 ldso: Fix compilation for x86_64 without TLS support. Add an #ifdef to avoid using TLS structures when TLS is not enabled. Signed-off-by: Will Newton Signed-off-by: Carmelo Amoroso commit 22e1466e367213304640da7697d75760a0883046 Author: Abdoulaye Walsimou Gaye Date: Mon Sep 6 00:45:10 2010 +0200 misc: Fix build error about missing PAGE_SIZE This patch fixes the following build error: CC libc/misc/internals/__h_errno_location.os CC libc/misc/internals/parse_config.os libc/misc/internals/parse_config.c: In function 'bb_get_chunk_with_continuation': libc/misc/internals/parse_config.c:77: error: 'PAGE_SIZE' undeclared (first use in this function) libc/misc/internals/parse_config.c:77: error: (Each undeclared identifier is reported only once libc/misc/internals/parse_config.c:77: error: for each function it appears in.) make[2]: *** [libc/misc/internals/parse_config.os] Error 1 Signed-off-by: Abdoulaye Walsimou Gaye Signed-off-by: Carmelo Amoroso commit 2d276198b4b9987ee8ac62cd680d6027077a65ef Author: Carmelo Amoroso Date: Tue Aug 24 00:14:00 2010 +0200 libc: Provide both getpgid and __getpgid symbols Indeed unistd.h header does export '__getpgid' by default, while uClibc provide only 'getpgid' implementation. The 'getpgid' symbol is exported by standard header if __USE_XOPEN_EXTENDED is defined. This patch alignes uClibc implementation with standard header (matching with glibc behaviour). Signed-off-by: Carmelo Amoroso commit d6d1bd2bbd2d4445b8e3cb1cb9d8d1aad817ba7f Author: Timo Teräs Date: Wed May 12 10:32:48 2010 +0300 Fix resolver broken in NPTL build The combination of commit aab4df0fb51660300559f5f29290709db2f7bfee resolv.c: add support for per thread res_state commit cca45baf8353d1e338d232f5bdb2d1d6b357f1da /etc/resolv.conf: support "timeout:n" and "attempts:n" options .. and NPTL results in broken resolver in very annoying ways. Now, it seems that most of the uclibc code does not work well if res_state is TLS variable. Technically, this is the correct thing to do since this gives proper per-thread resolving behavior, and it also makes the config options overridable per thread. This probably what apps expect as glibc does it too. But alas, most places use _res to sync up static global variables which results in breakage. It gets more or less randomly selected which threads options get applied. Also in case of multiple servers it looks like the retry logic is shared between all threads, e.g. two concurrent resolutions can make other resolvers skip nameservers due to shared "last_ns_num". And finally the timeout/attempts commit breaks the accumulated stuff horribly. What happens is: 1. multithreaded application startups, initializes resolver, resolves things just fine 2. resolv.conf gets changed, application calls res_init after res_init uclibc will call res_sync on all resolver functions to refresh globals from the TLS variable _res 3. res_init was called only in one thread, so other thread's _res contains all zeroes (yes, this is correct app usage: res_init should be called only from one thread) 4. threads not calling res_init get broken resolver due to timeout being set to zero Now, one proper solution would be to: 1. make __open_nameservers return the configuration options 2. pass the config options struct to res_sync_func so it can do the proper overrides from per-thread _res 3. remove the related globals and use locally config options from __open_nameservers But technically, the correct thing (as in glibc does this) is: - res_init increases global "res_init timestamp" - use _res (or pointer within there) for resolver retries etc. get proper per-thread behavior - resolvers functions call "maybe_init" which reinitialize the TLS'ed resolver state (e.g. reload resolv.conf) if their res_init timestamp is out dated As an immediate emergency kludge fix, the following might do: resolv: fix options handling for TLS _res If _res is in TLS (NPTL), it might not get initialized. Assume zeroes mean default values. Signed-off-by: Timo Teräs Signed-off-by: Denys Vlasenko commit 5a24d88fbb6ff820ac0d0ccd316efe02ef268c9d Author: Denys Vlasenko Date: Thu Aug 26 12:40:28 2010 +0200 _uintmaxtostr: fix indentation (spaces->tabs), no code changes Signed-off-by: Denys Vlasenko commit fa2ee53058b5102b7d3922a057e6d6b85ca830ff Author: Bernhard Reutner-Fischer Date: Thu Aug 19 19:07:43 2010 +0200 resolv: simplify MAXALIAS handling Signed-off-by: Bernhard Reutner-Fischer commit 72e1a1ce186c39f07282398e2af9eb0253e60f15 Author: Bernhard Reutner-Fischer Date: Thu Aug 19 19:06:26 2010 +0200 getserv: fix reading services lines w > 80 chars e.g. getservbyname() Signed-off-by: Bernhard Reutner-Fischer commit 39da92a8c926ce73b5b3792bf8c9da3cff6f4d64 Author: Bernhard Reutner-Fischer Date: Wed Aug 18 16:03:23 2010 +0200 add header guard Signed-off-by: Bernhard Reutner-Fischer commit c78e53b6a4e15b50aca2b666a49b146bf380d927 Author: Bernhard Reutner-Fischer Date: Wed Aug 18 15:52:29 2010 +0200 buildsys: Do not error on GNUHASH for clean targets Signed-off-by: Bernhard Reutner-Fischer commit 2dbcb892846c6c5fd6962c155b7a5bb354d11ca5 Author: Bernhard Reutner-Fischer Date: Tue Aug 17 17:47:09 2010 +0200 testsuite: nptl/tst-basic5 depends on SUSV4_LEGACY Signed-off-by: Bernhard Reutner-Fischer commit c33b304eefddf75509dc40b5cf6ddda4b40ee37f Author: Timo Teräs Date: Fri Aug 6 13:31:35 2010 +0300 nptl: fix calling convention for __pthread_mutex_cond_lock The assembly versions of pthread_cond_wait calls __pthread_mutex_cond_lock and __pthread_mutex_cond_lock_adjust using internal calling convention (which differs from default calling convention at least on x86). Thus these two functions must be defined with internal_function or the call sequence goes wrong. __pthread_mutex_cond_lock resides in sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c, but it does evil macro definitions and includes pthread_mutex_lock.c, so we need to add some extra kludge to pthread_mutex_lock.c to get the prototypes correctly. Signed-off-by: Timo Teräs Signed-off-by: Bernhard Reutner-Fischer commit ace0878b0b708e1b04e9e7a62f26c1dc3b9295b5 Author: Timo Teräs Date: Fri Aug 6 11:34:11 2010 +0300 config parser: fix memory corruption fgets will happily write over allocated area limits. Adjusted the buffer size according to how much is already read. Also increase the maximum default line length, as 80 is slightly small. It might be better if bb_get_chunk_with_continuation would reallocate the line buffer if it was not user given. Signed-off-by: Timo Teräs Signed-off-by: Bernhard Reutner-Fischer commit 7a450ac87de9007fe5e7b738934f73fc14cabec7 Author: Bernhard Reutner-Fischer Date: Fri Aug 6 00:00:16 2010 +0200 nptl i686: avoid cpp problems with thunk section Signed-off-by: Bernhard Reutner-Fischer commit 7591f62fd5b81b2df9c0680ece8773defc378dac Author: Bernhard Reutner-Fischer Date: Thu Aug 5 23:52:14 2010 +0200 Revert "nptl i686: fix pthread_cond_wait.S compilation" This reverts commit f71c0d8af11252f119fad04938ddd5501a7df21a. commit f65e66078b9f4d2d7f0fc336dee36e78fc467c0f Author: Bernhard Reutner-Fischer Date: Mon Mar 1 14:40:45 2010 +0100 resolver: switch to config parser Signed-off-by: Bernhard Reutner-Fischer commit 14c25c92be68a13d3ac94bdc46b16ba2590de4c9 Author: Bernhard Reutner-Fischer Date: Sun Feb 28 14:16:56 2010 +0100 getnet: switch to config parser Signed-off-by: Bernhard Reutner-Fischer commit 52f5c760d2a707c474cebc19d290f5a1f4ffb3d9 Author: Bernhard Reutner-Fischer Date: Fri Feb 5 11:45:25 2010 +0100 getproto: switch to config parser Signed-off-by: Bernhard Reutner-Fischer commit d2b29ac7a035467e406d0a61847580d80b5fa041 Author: Bernhard Reutner-Fischer Date: Mon Feb 1 00:07:07 2010 +0100 usershell: switch to config parser Signed-off-by: Bernhard Reutner-Fischer commit a3a2b777bf34baaea4010ab768918783ff408634 Author: Bernhard Reutner-Fischer Date: Sat Jan 30 12:10:13 2010 +0100 switch getservice to config parser Signed-off-by: Bernhard Reutner-Fischer commit 18af37f89cda98ba12521cbf0dd15e4537402134 Author: Bernhard Reutner-Fischer Date: Sat Jan 23 14:15:33 2010 +0100 sysconf: implement _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN perusing the config parser Signed-off-by: Bernhard Reutner-Fischer commit 8faa445d364dda147146e2036f6460a5347736f0 Author: Bernhard Reutner-Fischer Date: Sun Jan 17 17:07:22 2010 +0100 add config parser Signed-off-by: Bernhard Reutner-Fischer commit 6ff4fcbfe507605b2796eb8e7e44c7e8e4b33a28 Author: Henning Heinold Date: Thu Aug 5 18:22:12 2010 +0200 math: isnan is a C99 feature Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Henning Heinold commit a49b3a18e463cbe8c94c41501e386e7f4c61609e Author: Timo Teräs Date: Thu Aug 5 13:21:33 2010 +0300 nptl: fix x86 assembly PIC relocations Unwind_Resume needs to be called via PLT. Most calls are already proper, this fix the remaining two problems. Signed-off-by: Timo Teräs Signed-off-by: Bernhard Reutner-Fischer commit 0d289184bf512efb27d805f993e6e2c76f0fe8b3 Author: Bernhard Reutner-Fischer Date: Thu Aug 5 15:50:23 2010 +0200 buildsys: check_gcc warning flags Signed-off-by: Bernhard Reutner-Fischer commit a5dee57033f7d9987858d2c0514f4e687ece2874 Author: Bernhard Reutner-Fischer Date: Wed Aug 4 09:14:15 2010 +0200 utils: add pregen requisite Signed-off-by: Bernhard Reutner-Fischer commit 766829d0b8ef0665e044159e3823c181fbfb8175 Author: Bernhard Reutner-Fischer Date: Mon Aug 2 19:51:27 2010 +0200 nptl: _POSIX_IPV6 depends on UCLIBC_HAS_IPV6 Signed-off-by: Bernhard Reutner-Fischer commit 581203ebad402d1b2ed64c8ba67cc93273527a57 Author: Bernhard Reutner-Fischer Date: Fri Jul 30 12:51:01 2010 +0200 nptl: fix LFS handling Signed-off-by: Bernhard Reutner-Fischer commit a969b3f3c08eb1f681328293472c51e4a8ce5b4f Author: Natanael Copa Date: Fri Jul 30 08:05:04 2010 +0000 nptl: do not define _POSIX_SPAWN since its not implemented Building things like vlc checks if _POSIX_SPAWN is defined. Since posix_spawn is not implemented we dont define it. Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Natanael Copa commit 05ef2d67dcfca516e49e133d9f7e3c62feed2358 Author: Ingo van Lil Date: Wed Jul 28 14:52:08 2010 +0200 Immediately try next nameserver on recv() failure If there is a problem communicating with a nameserver the __dns_lookup() function will not immediately advance to the next nameserver but instead continue waiting until the timeout expires. This will cause a 30 second delay even if no nameserver is configured in resolv.conf and no DNS is running on localhost. Signed-off-by: Ingo van Lil Acked-by: Roman I Khimov Signed-off-by: Bernhard Reutner-Fischer commit cafbb2a0a0ac469393dc3192ba67ffbe1ddb5d4e Author: Mike Frysinger Date: Tue Jul 27 02:13:40 2010 -0400 malloc: simplify MAP_UNINITIALIZE ifdef logic Signed-off-by: Mike Frysinger commit fd826c72f8362d054c2d0064bff2b0830d2f29d1 Author: Mike Frysinger Date: Tue Jul 27 01:48:22 2010 -0400 new helper funcs for alloca/malloc with mmu/nommu The rpc rcmd code has some ugly ifdef mazes to handle mmu/nommu differences just to select alloca or malloc. Unify those with some helper macros in a new header, and then convert the rcmd code over to it. This is all geared towards fixing the getdents helper functions which only use alloca() atm. Now that we have helper functions, convert the getdents functions over too. Signed-off-by: Mike Frysinger Reviewed-by: Steven J. Magnani commit 4e38c284bc8b3bff95543f246f3e0d3ee5a045ab Author: Bernhard Reutner-Fischer Date: Tue Jul 27 17:05:59 2010 +0200 remove trailing comma in enum Signed-off-by: Bernhard Reutner-Fischer commit bf735eb494ce184345c23ead87d7e05810c4d886 Author: Bernhard Reutner-Fischer Date: Tue Jul 27 13:46:00 2010 +0200 silence warning about incompatible types with _dl_init_static_tls Signed-off-by: Bernhard Reutner-Fischer commit ba97a399c28c081a65c7f2389c3a4b0cf66ee33a Author: Bernhard Reutner-Fischer Date: Tue Jul 27 13:45:17 2010 +0200 buildsys: tweak quoting of V= Signed-off-by: Bernhard Reutner-Fischer commit 8a08aeeaa08bdad0ac577a9c7840f01cab1122c1 Author: Steven J. Magnani Date: Wed Jun 9 09:02:21 2010 -0500 malloc-simple: Make calloc() return zeroed memory The 0.9.31 release included a change to malloc-simple to request uninitialized memory from noMMU kernels. Unfortunately, the corresponding calloc() code assumed that memory returned by malloc() was already zeroed, which leads to all kinds of nastiness. Signed-off-by: Steven J. Magnani Signed-off-by: Bernhard Reutner-Fischer commit 8642946bd00e0c6dff9f08d84a63d32ce6648538 Author: Vladimir Zapolskiy Date: Wed Jun 2 10:27:16 2010 +0400 lutimes: add lutimes support This patch adds lutimes library call support. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bernhard Reutner-Fischer commit c6d6237819037168a6923ac080e348e54615422c Author: Vladimir Zapolskiy Date: Tue Jun 1 23:22:57 2010 +0400 endian.h: add BSD convertions between big/little-endian byte order This patch adds support for convertion of values between host and big-/little-endian byte order. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bernhard Reutner-Fischer commit 85b7ea33088fa16d319adbd228fc152f5b9da730 Author: David A Ramos Date: Tue Jul 27 13:10:15 2010 +0200 Fix ctime() standard compliance bug fixes issue2209: ctime() was updated in 0.9.31 to call localtime_r() instead of localtime() to avoid using a static buffer. Unfortunately, this change replaces the static buffer (which is zeroed out on initialization) with an uninitialized local buffer. In the common case, this has no effect. However, with a sufficiently large time_t value, the value returned differs from that returned by asctime(localtime(t)), and thus violates the ANSI/ISO standard. An example input is (on a 64-bit machine): time_t t = 0x7ffffffffff6c600; Signed-off-by: Bernhard Reutner-Fischer commit 94889eacb194f5a61a99e296acbd1685788242d9 Author: Mike Frysinger Date: Mon Jul 26 21:39:07 2010 -0400 enable fcntl nocancel prototype for all threads The cancel logic always uses this function even when !NPTL, so always enable the prototype to avoid warnings. Signed-off-by: Mike Frysinger commit 002c7227d4c73edc5b422c2f7f3ef42d9e775efe Author: Mike Frysinger Date: Mon Jul 26 21:32:51 2010 -0400 daemon: drop cruft incorrectly re-introduced by nptl merge This likes to break nommu systems. Signed-off-by: Mike Frysinger commit ed4dac9d09e6a997c6d33e6b796fe7ddffa3d344 Author: Mike Frysinger Date: Mon Jul 26 21:26:21 2010 -0400 bfin: pull in common/sysdep.h Fixes random build errors in linux/common/. Signed-off-by: Mike Frysinger commit 57e1e47345c1c7e924fdc66c95a1532783191503 Author: Mike Frysinger Date: Mon Jul 26 21:15:55 2010 -0400 msync: skip if syscall is missing Some arches skip the msync syscall as it is useless (like nommu). So don't require it to build. Signed-off-by: Mike Frysinger commit 7f136d048bf25d4f97bb90c294979a22d0efc5d8 Author: Mike Frysinger Date: Mon Jul 26 21:13:20 2010 -0400 nommu: fix building of fork.c when stubs are disabled We scrub the fork() prototype for nommu/no stubs, so attempting to get its type isn't going to work. Signed-off-by: Mike Frysinger commit fb599a12a30598f13e50f63fbc0db8919678bbc3 Author: Mike Frysinger Date: Mon Jul 26 20:05:22 2010 -0400 bfin: add exec stack markings to assembly files Signed-off-by: Mike Frysinger commit 0b291e93bc26836686d8a8a2033cdd59e2fc55f2 Author: Filippo Arcidiacono Date: Mon Jul 26 15:45:47 2010 +0200 ldso: Fix DL_BOOT_COMPUTE_DYN macro Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 37aec506502e14dcddd6ca190929bbc8d33d8e07 Author: Khem Raj Date: Thu Jul 22 19:53:19 2010 -0700 Rules.mak: ARM926T is really an armv5t and arm9e core. Signed-off-by: Khem Raj commit 48df53fd029ce8ccb9c254bd4a0f6c9bafca5196 Author: Khem Raj Date: Wed Jul 21 23:54:15 2010 -0700 arm/crt1.S: Avoid dependency on PC+4 or PC+8 * fix a problem with Thumb PIE binaries, where the GOT was located incorrectly because of an offset 8 Signed-off-by: Khem Raj commit 48fb264beaac8114e5ac3e80e70dda473fbce96d Author: Khem Raj Date: Wed Jul 21 23:51:40 2010 -0700 ldso/arm: Correct protected symbol resolution * Protected symbols should not be overridden with symbols from other modules. Signed-off-by: Khem Raj commit fb6ca14d4d53657a4cde0d3f881f02c0d54fe17b Author: Khem Raj Date: Mon Jul 19 00:44:45 2010 -0700 ldso/mips: pltgot should array not address of array to dynamic info. * This change was introduced in commit 9381d622e2411a35a5fd73a5a573eb269e2dd9c9 which rendered uclibc not booting on mips targets. Restoring it makes it work again. Signed-off-by: Khem Raj commit 48d3643f218a9257f78a5363b4bbbb6edaaabc66 Author: Khem Raj Date: Thu Jul 15 10:18:59 2010 -0700 arm: Macros in sysdeps/linux/arm also needed to be changed to accept _a1 to __a1 renaming. Signed-off-by: Khem Raj commit b6a444a72e587272cdeca6d7148a9249a037df6f Author: Bernhard Reutner-Fischer Date: Thu Jul 15 14:22:56 2010 +0200 nptl: (librt) powerpc32's PSEUDO_RET needs __syscall_error Signed-off-by: Bernhard Reutner-Fischer commit 01d14e299c20dc1d79180de27cfe5971e0b8f720 Author: Bernhard Reutner-Fischer Date: Wed Jul 14 21:57:53 2010 +0200 silence shadow warnings Signed-off-by: Bernhard Reutner-Fischer commit 3199c47d7077410fe837f096de8ed70bdcf3e56d Author: Bernhard Reutner-Fischer Date: Wed Jul 14 20:00:52 2010 +0200 nptl: remove superfluous =1 from defines Signed-off-by: Bernhard Reutner-Fischer commit ecc762828cd06189eec73713731788f97b4bb891 Author: Bernhard Reutner-Fischer Date: Wed Jul 14 19:44:03 2010 +0200 nptl: x86_64: fix compilation of unwinder Signed-off-by: Bernhard Reutner-Fischer commit f71c0d8af11252f119fad04938ddd5501a7df21a Author: Roman I Khimov Date: Wed Jul 14 17:19:29 2010 +0400 nptl i686: fix pthread_cond_wait.S compilation __i686 is a gcc-defined macro, so i686 build failed with: libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S: Assembler messages: libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:572: Error: junk at end of line, first unrecognized character is `1' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:573: Error: junk at end of line, first unrecognized character is `1' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:574: Error: junk at end of line, first unrecognized character is `1' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:575: Error: junk at end of line, first unrecognized character is `.' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:576: Error: junk at end of line, first unrecognized character is `1' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:579: Error: expected comma after name `' in .size directive Signed-off-by: Roman I Khimov Signed-off-by: Bernhard Reutner-Fischer commit 87c1f3f912593910b978b51d62f549e4dc32e8fb Author: Khem Raj Date: Fri Jul 9 11:23:36 2010 -0700 include/param.h: Dont use ARG_MAX from kernel headers * Use getrlimit for ARG_MAX in sysconf on nptl. * Define NCARGS directly instead of ARG_MAX Signed-off-by: Khem Raj commit 42fb51e0d4e7ab9fe8ff2be3a7405acb8d44e9b2 Author: Khem Raj Date: Wed Jul 7 12:19:56 2010 -0700 arm: Silence warning about shadow declarations libc/inet/socketcalls.c: In function ‘__libc_recvfrom’: libc/inet/socketcalls.c:229:1: warning: declaration of ‘_sys_result’ shadows a previous local libc/inet/socketcalls.c:229:1: warning: shadowed declaration is here Signed-off-by: Khem Raj commit 13f9f3229bd7623352927f3b0de17e2b3f7a3ecc Author: Bernhard Reutner-Fischer Date: Tue Jul 6 19:56:10 2010 +0200 nptl: disregard generated tcb-offsets.c thanks to khem for noticing Signed-off-by: Bernhard Reutner-Fischer commit c1ed2279c93615cfa47380c7007b2b145a1966a4 Author: Khem Raj Date: Tue Jul 6 10:50:39 2010 -0700 nptl: Filter out gen_tcb-offsets.c from CSRC for libpthread. Signed-off-by: Khem Raj commit 9381d622e2411a35a5fd73a5a573eb269e2dd9c9 Author: Bernhard Reutner-Fischer Date: Thu Jul 1 10:28:46 2010 +0200 nptl: fix buildsys Now automatically picks the correct (arch and subarch specific) impls in favour of generic impls. make O=/tmp/objs PREFIX=/my/sysroot -j works now as expected (both out-of-tree as well as parallel-safe). Signed-off-by: Bernhard Reutner-Fischer commit eaae6e6776ad091a5b84c3fb09f26ff01bda2f18 Author: Bernhard Reutner-Fischer Date: Sun Jun 13 09:52:45 2010 +0200 nptl: fix subdirs handling Signed-off-by: Bernhard Reutner-Fischer commit c06619d7ab2ebbbc93427ca6a49dcc8d479db549 Author: Bernhard Reutner-Fischer Date: Sat Jun 12 13:29:14 2010 +0200 nptl: simplify buildsys Signed-off-by: Bernhard Reutner-Fischer commit a8f396655b8cca3518ac20d07246d91eb138ce07 Author: Austin Foxley Date: Tue Jul 6 08:30:00 2010 -0700 Revert "don't make __errno_location / __h_errno_location hidden" This reverts commit 0d6ee549bc86fd330672a79d9a87d2c3825eea67. We need to find a solution that will work in shared and static libraries Signed-off-by: Austin Foxley commit 0d6ee549bc86fd330672a79d9a87d2c3825eea67 Author: Peter Korsgaard Date: Mon Jul 5 14:12:22 2010 +0200 don't make __errno_location / __h_errno_location hidden Closes #2089 (https://bugs.busybox.net/show_bug.cgi?id=2089) __errno_location / __h_errno_location access has to go through the PLT like malloc/free, so the linuxthread variants gets used instead when compiling with -pthread. Based on http://github.com/mat-c/uClibc/commit/328d392c54aa5dc2b8e7f398a419087de497de2b Signed-off-by: Peter Korsgaard Signed-off-by: Austin Foxley commit dfb389dea84f667bc890c5a188f38dc41b9ed9c6 Author: Austin Foxley Date: Sat Jul 3 09:26:16 2010 -0700 remove extra comma in lock macro Signed-off-by: Austin Foxley commit aa67771881d65373da448ad5f7a8393f3a1d9469 Author: Timo Teräs Date: Wed Jun 30 14:46:37 2010 +0300 more workarounds for GCC PR32219 Commit 2e53dd645d5348f207cec7f8595969dc566c5a55 workarounds GCC bug when accessing _locale_init and _stdio_init. We need the same fix for __errno_location and __h_errno_location otherwise we crash calling null with static and non-threaded builds. Signed-off-by: Timo Teräs Signed-off-by: Bernhard Reutner-Fischer commit 8b48f745be1e086d6e486bbb8167e770f3d1fbc5 Author: Khem Raj Date: Wed Jun 30 04:10:37 2010 -0700 mips/syscall-error: Choose the correct version for setting up errno. * Current function is a C protype and PSEUDO macro does not transfer syscall return parameters to correct argument registers for a C function. This causes problem with syscalls setting wrong value for errno when they encounter an error. * Fixes PR/2089 for mips/nptl Signed-off-by: Khem Raj commit 913b76abdd824ee3a6dbbc1527470ebcb8c06a65 Author: Khem Raj Date: Wed Jun 30 04:09:20 2010 -0700 nptl/errno: Use a separate __errno_location for libpthread. Signed-off-by: Khem Raj commit 7576366386a8a0c71d1efdda3f8cd8e1724a8c23 Author: Khem Raj Date: Wed Jun 30 04:06:26 2010 -0700 nptl/generic: Build generic libc-tls.c for non-mips architectures. * mips has it own variant. * we dont need to build dl-tls.c here its already built as part of ldso. Signed-off-by: Khem Raj commit 38830bf257298bec1291ef4d09ebcc1dbf92eae0 Author: Khem Raj Date: Tue Jun 29 07:57:23 2010 -0700 arm/nptl: Use the old C version of _Unwind_Resume in thumb mode. Signed-off-by: Khem Raj commit b87e4a4826b3508b759172d81b5b236e507f88d2 Author: Bernhard Reutner-Fischer Date: Tue Jun 29 00:00:59 2010 +0200 remove redundant args to do_ln Signed-off-by: Bernhard Reutner-Fischer commit 957157deebd5eea63eaa8993f47740c2b2cd2592 Author: Bernhard Reutner-Fischer Date: Fri Jun 25 10:12:58 2010 +0200 test/nptl: move eintr.c to where it belongs Signed-off-by: Bernhard Reutner-Fischer commit 7f775c0329bbfc5788d23bbd6f554fbcfbc2b5c0 Author: Bernhard Reutner-Fischer Date: Fri Jun 25 10:10:16 2010 +0200 test: silence shadow warning Signed-off-by: Bernhard Reutner-Fischer commit 005050625f006b5e0938b726cfa1d6984c1b2c3f Author: Bernhard Reutner-Fischer Date: Thu Jun 24 15:50:02 2010 +0200 nptl: arm: make it compile again blame 6cbeaa5dd11a1b506a8a97b4dfb4e632240f9953 Signed-off-by: Bernhard Reutner-Fischer commit 1dc2afe522b1c6d23c4d16b23e083cc38c69da55 Author: Bernhard Reutner-Fischer Date: Thu Jun 24 15:10:48 2010 +0200 use uniform form of C99 keywords Signed-off-by: Bernhard Reutner-Fischer commit 59f3d4df3b644583311e89e84cc3fbae6aec8b32 Author: Bernhard Reutner-Fischer Date: Mon Jun 21 11:05:53 2010 +0200 intl, nptl_db: fix prerequisites Signed-off-by: Bernhard Reutner-Fischer commit 9160ed2054fb8f453835e8c99f653c5f1adfa6a5 Author: Bernhard Reutner-Fischer Date: Sun Jun 20 12:16:49 2010 +0200 buildsys: add brief mode; show defines and ld-flags Signed-off-by: Bernhard Reutner-Fischer commit 19a5f9f94448b44d12799f559f09776ff503d958 Author: Bernhard Reutner-Fischer Date: Sun Jun 20 11:20:11 2010 +0200 libc: silence warnings about undefined cpp tokens Signed-off-by: Bernhard Reutner-Fischer commit 638c2396a2a7c0481bea536775544364fbde6fa8 Author: Bernhard Reutner-Fischer Date: Mon Jun 21 11:25:11 2010 +0200 fix race condition when generating linker scripts Signed-off-by: Bernhard Reutner-Fischer commit 6cbeaa5dd11a1b506a8a97b4dfb4e632240f9953 Author: Khem Raj Date: Wed Jun 23 16:30:54 2010 -0700 arm/nptl: Sync unwinding with glibc. Signed-off-by: Khem Raj commit 84fa9cf6cb8d8b59a0d2fc889fd78ce6a9309420 Author: Khem Raj Date: Wed Jun 23 15:02:53 2010 -0700 arm/nptl: sysdep-cancel.h needs syscall handing for EABI * Synced with eabi version of sysdep-cancel.h from glibc. we have been using OABI version which does not work Signed-off-by: Khem Raj commit 5f88296d3bdef19bb5456baa0d0ff4697398be3b Author: Abdoulaye Walsimou Gaye Date: Tue Jun 22 16:36:41 2010 +0200 MIPS: Fix build error with linuxthreads.old This patch avoid the following build error: AS libc/sysdeps/linux/mips/vfork.os In file included from libc/sysdeps/linux/mips/vfork.S:22: ./libc/sysdeps/linux/mips/sysdep.h:41:20: error: regdef.h: No such file or directory libc/sysdeps/linux/mips/vfork.S: Assembler messages: libc/sysdeps/linux/mips/vfork.S:40: Warning: Unrecognized register name `sp' libc/sysdeps/linux/mips/vfork.S:40: Warning: Bad .frame directive libc/sysdeps/linux/mips/vfork.S:40: Error: junk at end of line, first unrecognized character is `s' libc/sysdeps/linux/mips/vfork.S:44: Error: illegal operands `dsubu sp,FRAMESZ' libc/sysdeps/linux/mips/vfork.S:45: Error: bad or irreducible absolute expression libc/sysdeps/linux/mips/vfork.S:65: Error: illegal operands `daddu sp,FRAMESZ' libc/sysdeps/linux/mips/vfork.S:69: Error: illegal operands `li a0,0x4112' libc/sysdeps/linux/mips/vfork.S:70: Error: illegal operands `move a1,sp' libc/sysdeps/linux/mips/vfork.S:73: Error: illegal operands `li v0,(5000+55)' libc/sysdeps/linux/mips/vfork.S:78: Error: illegal operands `bnez a3,.Lerror' libc/sysdeps/linux/mips/vfork.S:88: Error: illegal operands `dla t9,__syscall_error' libc/sysdeps/linux/mips/vfork.S:90: Error: illegal operands `jr t9' Signed-off-by: Abdoulaye Walsimou Gaye Signed-off-by: Austin Foxley commit ef487a35f428da6240003dca23b9d29908e2285e Author: Mirko Vogt Date: Mon Jun 21 20:23:14 2010 +0200 avoid using c99 syntax Signed-off-by: Mirko Vogt Signed-off-by: Austin Foxley commit 6306cfe1713ad02c9c3d4b7940191bc95d27b14f Author: Austin Foxley Date: Mon Jun 21 09:55:46 2010 -0700 get rid of needless c99 construct Signed-off-by: Austin Foxley commit a7642511b08b0b8a4012bab67cb8aa554992df6b Author: Bernhard Reutner-Fischer Date: Thu Jun 17 19:49:54 2010 +0200 nptl: i386 needs atomic.h for atomic_exchange_acq Signed-off-by: Bernhard Reutner-Fischer commit 7453d422c9b9febd886df0a2fafdea55297328b9 Author: Bernhard Reutner-Fischer Date: Thu Jun 17 19:46:29 2010 +0200 nptl: fix order of includes for out-of-tree builds Signed-off-by: Bernhard Reutner-Fischer commit 150a0c95535578ac5ebabdeda59e5399d3bb44e1 Author: Bernhard Reutner-Fischer Date: Thu Jun 17 19:44:58 2010 +0200 libc: define cfi_personality and cfi_lsda required for proper, current subarch handling Signed-off-by: Bernhard Reutner-Fischer commit 486fbd8d6695a874fb023571919d483629b4964f Author: Bernhard Reutner-Fischer Date: Thu Jun 17 19:27:00 2010 +0200 librt: fix linking WRT pthreads 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 commit 6af28ff46002a5d3b860155f505ecc411a229b26 Author: Carmelo Amoroso Date: Thu Jun 17 19:10:26 2010 +0200 libc: Fix non-NPTL threads build This patch fixes some issues building uclibc with linuxthreads, that seem to have been introduced by the NPTL changes. Signed-off-by: Andrew Stubbs Signed-off-by: Carmelo Amoroso commit 729293867378c80b4e534a7ff3d68ac936f03824 Author: Bernhard Reutner-Fischer Date: Thu Jun 17 18:40:14 2010 +0200 librt: simplify handling LDFLAGS plus a few cosmetic touch-ups Signed-off-by: Bernhard Reutner-Fischer commit 83b76076b82adbac62df5e093ad3a552347b5416 Author: Bernhard Reutner-Fischer Date: Tue Jun 15 23:46:53 2010 +0200 libm: typo fix NO_LONG_DOUBLE variant of gamma_r Signed-off-by: Bernhard Reutner-Fischer commit 3e0b19f27bba5c47cfe4ea836ef94aad687c14b4 Author: Carmelo Amoroso Date: Mon Jun 14 09:39:44 2010 +0200 sh4: Fixes for SH-4 without an FPU 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 Signed-off-by: Carmelo Amoroso commit 3acd3c649d8a1cd0e662e0125547290a58773c09 Author: Bernhard Reutner-Fischer Date: Sun Jun 13 10:57:58 2010 +0200 handle i386 TARGET_SUBARCH so we can pick the correct nptl locking impls Signed-off-by: Bernhard Reutner-Fischer commit 10339740506424abe8e3a3ecdd979aa10ae592ca Author: Bernhard Reutner-Fischer Date: Sun Jun 13 09:47:54 2010 +0200 nptl: fix symlinking headers Signed-off-by: Bernhard Reutner-Fischer commit 2679c354bd9345dfe2e2b9d78ec64a0dad642215 Author: Bernhard Reutner-Fischer Date: Sat Jun 12 15:40:56 2010 +0200 nptl: avoid spurious rebuilds of libpthread*.a Signed-off-by: Bernhard Reutner-Fischer commit dcde81f05d263c325f5fd810ce97deda1f50099c Author: Bernhard Reutner-Fischer Date: Sat Jun 12 15:40:21 2010 +0200 nptl: handle PTHREADS_DEBUG_SUPPORT properly Signed-off-by: Bernhard Reutner-Fischer commit 1a21381a06d0aacfeff809824ca9398569653520 Author: Bernhard Reutner-Fischer Date: Sat Jun 12 15:37:31 2010 +0200 nptl: fix race condition when generating libpthread.so Signed-off-by: Bernhard Reutner-Fischer commit 5c9c0dd546159019fd753aa0806a8d55200cff11 Author: Bernhard Reutner-Fischer Date: Fri Jun 11 20:23:09 2010 +0200 hcreate_r: silence warning in helper func Signed-off-by: Bernhard Reutner-Fischer commit bf705da4ac2df55e75026fd4bb4843c5bc7668fb Author: Bernhard Reutner-Fischer Date: Fri Jun 11 20:15:56 2010 +0200 wordexp: silence warning Signed-off-by: Bernhard Reutner-Fischer commit be7bc0ba87633a1e5fc2f00358137d905126e787 Author: Bernhard Reutner-Fischer Date: Fri Jun 11 19:33:09 2010 +0200 nptl: remove relocation in pthread_rwlock_init() Signed-off-by: Bernhard Reutner-Fischer commit 13433395f2fd808006cd07b05b79cae193c6ecb9 Author: Bernhard Reutner-Fischer Date: Fri Jun 11 19:22:42 2010 +0200 silence some warnings about missing prototypes Signed-off-by: Bernhard Reutner-Fischer commit 8642c931a3ef2e944871b32b293df872eb7a1ae0 Author: Bernhard Reutner-Fischer Date: Fri Jun 11 19:20:50 2010 +0200 testsuite: disable some tests for !LFS Signed-off-by: Bernhard Reutner-Fischer commit 164632713b320eb022629696fefff2cf7c38d485 Author: Bernhard Reutner-Fischer Date: Fri Jun 11 15:49:26 2010 +0200 nptl: fix wrong path to nptl_db Signed-off-by: Bernhard Reutner-Fischer commit 0c5262ec8dde8fe5ccc59713e8aefbeac670161b Author: Bernhard Reutner-Fischer Date: Fri Jun 11 15:35:57 2010 +0200 lxdialog: fix ncursesw include detection Signed-off-by: Bernhard Reutner-Fischer commit e76d6c8738aea33317c8d7bb57e4b1acff111edb Author: Bernhard Reutner-Fischer Date: Fri Jun 11 12:10:14 2010 +0200 buildsys: fix clean vs. headerclean Signed-off-by: Bernhard Reutner-Fischer commit b42f780c8198db68a18ae6bdcb3bb284fe073dfb Author: Bernhard Reutner-Fischer Date: Fri Jun 11 11:50:48 2010 +0200 buildsys: conceal install_headers Signed-off-by: Bernhard Reutner-Fischer commit 335ec554eaa99d419924bafe317d5bd5fb97099b Author: Bernhard Reutner-Fischer Date: Fri Jun 11 11:08:59 2010 +0200 buildsys: fix lib/ directory prerequisite Signed-off-by: Bernhard Reutner-Fischer commit e3e0b26c1c44416750464ff76ba0b4136954adee Author: Roman I Khimov Date: Wed May 26 15:13:01 2010 +0400 libm: unbreak scalbn for 64-bit processors Obvious typo. Signed-off-by: Roman I Khimov Signed-off-by: Bernhard Reutner-Fischer commit 7878be7ba604be53b52f0f5852eae69773e8da7f Author: Bernhard Reutner-Fischer Date: Thu Jun 10 22:26:29 2010 +0200 testsuite: .gitignore symlink Signed-off-by: Bernhard Reutner-Fischer commit 6af7f177138cf98e24979762addfbcaebb352bd1 Author: Bernhard Reutner-Fischer Date: Thu Jun 10 22:24:43 2010 +0200 testsuite: do not run inet tests if !ipv4 && !ipv6 Signed-off-by: Bernhard Reutner-Fischer commit 0f0cf7ec49719ab3c357813689bf1095234d6533 Author: Bernhard Reutner-Fischer Date: Thu Jun 10 22:20:17 2010 +0200 lgamma: fix sign handling add testcase from http://sourceware.org/bugzilla/show_bug.cgi?id=4407 Signed-off-by: Bernhard Reutner-Fischer commit 0671149ee68ee76d357c6dade14249fc9858d934 Author: Roman I Khimov Date: Thu Jun 10 22:17:04 2010 +0200 libm: unhide signgam 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 Signed-off-by: Bernhard Reutner-Fischer commit 0ee65752ee4c023a70d134919ec7604273e46cdb Author: Bernhard Reutner-Fischer Date: Tue Jun 8 23:21:09 2010 +0200 do not generate garbled interp for parallel make Signed-off-by: Bernhard Reutner-Fischer commit 85998f8b7b0b50729c3b0bc491aa995f799e5637 Author: Bernhard Reutner-Fischer Date: Tue Jun 8 23:05:48 2010 +0200 nptl: fix for !ipv4 && !ipv6 Signed-off-by: Bernhard Reutner-Fischer commit 94a99ff6131111381e7f803e10638ab547c40c2f Author: Khem Raj Date: Mon Jun 7 12:46:01 2010 -0700 mips/socket.h: add SOCK_CLOEXEC and SOCK_NONBLOCK definitions for mips * __ss_aligntype is defined to unsigned long int Signed-off-by: Khem Raj commit 139b8f0c673fed465d27f99c98568e5d5e1b9b72 Author: Denys Vlasenko Date: Fri Jun 4 13:36:30 2010 +0200 strverscmp: I forgot to export it Result was: strverscmp.o: 000000ec T __GI_strverscmp i.e. no plain "strverscmp"! Signed-off-by: Denys Vlasenko commit 38f4774eeefdfae24b82efaf61925015d21fe314 Author: Khem Raj Date: Wed Jun 2 10:17:40 2010 -0700 ldso/mips: Fix relocation parsing so that they work on both mips32/mips64 Signed-off-by: Khem Raj Signed-off-by: Rob Landley commit a2e5630af426f85fdd8721b2820786d9bd2aa695 Author: Vladimir Zapolskiy Date: Tue Jun 1 20:02:54 2010 +0400 inotify: add inotify_init1 system call support This patch introduces support for inotify_init1 system call, found since Linux 2.6.27. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Khem Raj commit 83333e9c873e4eca6b2c945f7770b1f5373b0427 Author: Vladimir Zapolskiy Date: Tue Jun 1 20:02:39 2010 +0400 bits/socket.h: add SOCK_CLOEXEC and SOCK_NONBLOCK support 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 Signed-off-by: Khem Raj commit b2c4199f0fd53c009858e7ce27f932a4ac92bc60 Author: Natanael Copa Date: Mon May 24 09:07:45 2010 +0200 utils: Fix ldd segfault 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 Signed-off-by: Carmelo Amoroso commit e029f5e73de2c195d0a87e5816f28fb09594e80f Author: Khem Raj Date: Wed May 19 15:59:50 2010 -0700 mips: Add vfork to libc * 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 commit be6735eb6ba46d1a21a421acdac26be8ec213062 Author: Khem Raj Date: Wed May 19 15:32:30 2010 -0700 mips/bits/pthreadtypes.h: Re-include sgidefs.h * This was dropped accidently in last merge removal meant a lot of warnings about undefined _ABI64. Signed-off-by: Khem Raj commit 7350a372e22e5813f1417e388e8651b05174a664 Author: Timo Teräs Date: Mon May 17 11:01:49 2010 +0300 static build: define pthreads wrappers only for threaded builds Otherwise we get compiler errors due to undefined prototypes as noticed by Denys. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 02b44fe054665a21351fa5840b75ac585085618c Author: Austin Foxley Date: Mon May 17 07:15:24 2010 -0700 some (all?) archs don't define asm, so use builtin __asm__ Signed-off-by: Austin Foxley commit 6f1daaaf2d94c1e6184add44eda38b0781b88cf0 Author: Rob Landley Date: Sun May 16 16:41:36 2010 -0500 Fix fcntl64 for 64 bit targets. 64 bit targets often don't have a separate fcntl64() system call, because they don't need one. Signed-off-by: Rob Landley Signed-off-by: Austin Foxley commit 2e53dd645d5348f207cec7f8595969dc566c5a55 Author: Denys Vlasenko Date: Mon May 17 15:56:19 2010 +0200 workaround GCC PR32219 we ended up calling 0 Fixes bug #1033 Signed-off-by: Denys Vlasenko Signed-off-by: Bernhard Reutner-Fischer commit ff5e74a838c53fa350df2bb5f173fbed814db84c Author: Denys Vlasenko Date: Sun May 16 06:39:16 2010 +0200 resolv.h: fix wring indentation of #ifdef/#endif pairs Signed-off-by: Denys Vlasenko commit 008ebd962932863acfbc70e83f3018902ebbf88a Author: Khem Raj Date: Tue May 11 14:07:04 2010 -0700 utils/Makefile.in: Define GETCONF_DIR for host builds of getconf. Signed-off-by: Khem Raj commit e4cf1aceb0e76187a6143218a73a1187b6681613 Author: Khem Raj Date: Sun May 9 23:00:39 2010 -0700 powerpc/Makefile.arch: Add objclean and headers_clean targets for NPTL. Signed-off-by: Khem Raj commit e3dec33ba03ef7080a39444388a01e59135bb3aa Author: Khem Raj Date: Wed May 5 22:50:19 2010 -0700 powerpc: Add TLS and NPTL support Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer commit d2ab6ee38dd6ef107bac77f485ab1bb35b177e6c Author: Khem Raj Date: Fri May 7 12:39:08 2010 -0700 mips/Makefile.arch: Remove -f option to $(do_awk) Signed-off-by: Khem Raj commit 7f16871e1d09f10e94192781ae6b317537742131 Author: Timo Teras Date: Fri May 7 17:19:20 2010 +0300 resolv: various memory corruption and off by one fixes Fixes resolution of names with AAAA entries and gethostbyaddr issues. Signed-off-by: Timo Teras Signed-off-by: Austin Foxley commit 685a6f283e98657104b71a7d694c99f19e454afa Author: Timo Teras Date: Fri May 7 17:19:19 2010 +0300 static build: fix internal locking weaks to get pulled in always 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 Acked-by: Roman I Khimov Signed-off-by: Austin Foxley commit 0b7acfa800444525498442032b47bfd7d066c72b Author: Roman I Khimov Date: Tue May 4 14:00:47 2010 +0400 ldso: fix x86_64 R_X86_64_TPOFF64 and R_X86_64_DTPOFF64 relocations R_X86_64_TPOFF64 revealed by trivial testcase: =================================================================== #include #include 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 #include #include #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 Signed-off-by: Austin Foxley commit c1505e73d00ed26b7c250e331b213e63a948b1dd Author: Andy Gibbs Date: Wed May 5 08:49:18 2010 +0200 Fix gen_wc8bit support for finding a UTF8 locale on host. 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 Signed-off-by: Bernhard Reutner-Fischer commit e928e223fd44f0002c035773f9c40d8aad78323c Author: Roman I Khimov Date: Fri Apr 30 18:18:32 2010 +0400 nptl: use arch-specific pthread_cond_timedwait and pthread_cond_wait on x86_64 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 Signed-off-by: Austin Foxley commit bb1a6cbd0ef6965e7a3eb65a4d8284c38be2fc19 Author: Roman I Khimov Date: Fri Apr 30 18:18:31 2010 +0400 nptl: use arch-specific cancellation routines for x86_64 They were present in sources, but not compiled in. Generic routines are broken badly on x86_64, even basic threading test like pthread/ex1 didn't work with them. Signed-off-by: Roman I Khimov Signed-off-by: Austin Foxley commit 57d82892913019352bf8e35c5a3e9965e1df0e6b Author: Roman I Khimov Date: Sun May 2 23:45:27 2010 +0400 nptl: fix sem_open with O_CREAT Temporary file name template passed to __gen_tempname had no "XXXXXX" in it, so __gen_tempname returned EINVAL which led to sem_open failure. Fixes NPTL tests tst-sem4, tst-sem7, tst-sem8, tst-sem9. Signed-off-by: Roman I Khimov Signed-off-by: Austin Foxley commit e769b83bc129210a25198c7de73272d8632923fa Author: Denys Vlasenko Date: Thu Apr 29 17:22:45 2010 +0200 time.c: fix unreadable code style: assignments within if(), misplaced comments No logic changes Signed-off-by: Denys Vlasenko commit 87327f43e4ea65d63ceab0985cf814e22940579a Author: Denys Vlasenko Date: Thu Apr 29 17:17:18 2010 +0200 optional /etc/localtime support This patch teaches uclibc to use /etc/localtime. This is possible since recent TZif2 file format contains TZ-like ASCII string at the end. Signed-off-by: Denys Vlasenko commit f26c5f6952ce9bf8edec9c1571c47addb1bcc442 Author: Austin Foxley Date: Wed Apr 28 11:34:32 2010 -0700 include dlfcn.h in ldso.h to get RTLD_NODELETE definition Signed-off-by: Austin Foxley commit 0748262682e3cffc7fccc266ac7632f48f56a0ee Author: Austin Foxley Date: Wed Apr 28 10:35:55 2010 -0700 fix a few build errors for the no threads case Signed-off-by: Austin Foxley commit 72210a8474a3633dc36e1972fe9e8b66eef7d49e Author: Tony Wu Date: Wed Apr 28 17:56:03 2010 +0800 Fix typo (OPTIMIZATIONS -> OPTIMIZATION) Signed-off-by: Tony Wu Signed-off-by: Austin Foxley commit 23df492e35cf3206b89c699229b35b9cb17791ee Author: Gabor Juhos Date: Tue Apr 6 17:56:11 2010 +0200 MIPS: restore INLINE_SYSCALL macro The MIPS specific INLINE_SYSCALL macro has been renamed to INLINE_SYSCALL_NCS with: 763bbf9e9a27426c9be8322dca5ddf2cb4dbc464 syscall: unify part 2: NCS variety Declare common NCS (non-constant syscall) variants and convert the existing ports over to this. This change breaks system calls. The code generated with using of the new macro does not obey the restartable syscall convention used by the linux kernel. When it tries to restart the syscall the errno value is not being replaced by the syscall number. This causes weird behaviour of the 'ping' command in busybox for example: root@OpenWrt:/# ping 192.168.1.254 PING 192.168.1.254 (192.168.1.254): 56 data bytes 64 bytes from 192.168.1.254: seq=0 ttl=128 time=6.292 ms ping: recvfrom: Function not implemented 64 bytes from 192.168.1.254: seq=1 ttl=128 time=0.719 ms ping: recvfrom: Function not implemented 64 bytes from 192.168.1.254: seq=2 ttl=128 time=0.489 ms ping: recvfrom: Function not implemented 64 bytes from 192.168.1.254: seq=3 ttl=128 time=0.486 ms ping: recvfrom: Function not implemented 64 bytes from 192.168.1.254: seq=4 ttl=128 time=0.487 ms ping: recvfrom: Function not implemented 64 bytes from 192.168.1.254: seq=5 ttl=128 time=0.939 ms ping: recvfrom: Function not implemented 64 bytes from 192.168.1.254: seq=6 ttl=128 time=0.971 ms ping: recvfrom: Function not implemented 64 bytes from 192.168.1.254: seq=7 ttl=128 time=0.488 ms ping: recvfrom: Funct^C Signed-off-by: Gabor Juhos Signed-off-by: Austin Foxley commit c06dab26652af40a8780790e48bcef1c64aaeb83 Author: Andreas Schultz Date: Tue Apr 27 08:43:43 2010 -0700 nptl: mips needs updated clone() implementation Signed-off-by: Andreas Schultz Signed-off-by: Austin Foxley commit 6b5c1209608589b4ac210c6ab46d034bd221a752 Author: Roman I Khimov Date: Tue Apr 27 15:19:15 2010 +0400 libc/x86_64: use ELF-compatible definitions for assembler Fixes open/read/write/close breakage with NPTL on x86_64 (due to missing '.type' declaration). Done this way because there are already ELF-style definitions in assemebler code for x86_64 and looks like HAVE_ELF is not defined and used this days. Or the other way around, it'd be a bit strange for x86_64 not to have ELF. Signed-off-by: Roman I Khimov Signed-off-by: Austin Foxley commit a60ebd0f0790b2ce6bff161e0b3bdbca5e491a4b Author: Roman I Khimov Date: Tue Apr 27 15:22:07 2010 +0400 libc/regex: fix internal_function declarations Build failed with | In file included from libc/misc/regex/regex.c:59: | libc/misc/regex/regexec.c:315: error: conflicting types for 're_search_2_stub' | libc/misc/regex/regexec.c:44: note: previous declaration of 're_search_2_stub' was here | libc/misc/regex/regexec.c:358: error: conflicting types for 're_search_stub' | libc/misc/regex/regexec.c:49: note: previous declaration of 're_search_stub' was here .... etc Signed-off-by: Roman I Khimov Signed-off-by: Austin Foxley commit 07c2a96aeb358cab9f4ae18735a93dc16e8e0727 Author: Roman I Khimov Date: Tue Apr 27 18:04:24 2010 +0400 libpthread/x86_64: fix clean Signed-off-by: Roman I Khimov Signed-off-by: Austin Foxley commit 00891d9cf07efd992023f255164bba93d657ece4 Author: Austin Foxley Date: Sun Apr 25 22:06:36 2010 -0700 enable building __fcntl_nocancel, as it used unconditionally now also sync up not-cancel.h headers between all three thread libraries Signed-off-by: Austin Foxley commit e5add5dd0d7cf87c6cd0cac246e79f617c41362b Author: Roman I Khimov Date: Sun Apr 25 22:55:11 2010 +0400 Makefile.in: install sgtty.h Proper and useful header, for example used by pacemaker. Signed-off-by: Roman I Khimov Signed-off-by: Austin Foxley commit a63e523a5ee5599ce83fe7a964fa69d25d5d04ac Author: Carmelo Amoroso Date: Sun Apr 25 20:38:19 2010 +0200 nptl: Harmonize objects and headers makefile clean targets Update all the nptl clean targets (both objects and headers) to use the new syntax using CLEAN_ and HEADER_. Signed-off-by: Carmelo Amoroso commit ff5e4de7088fe8d34812c2a1e604bf04be713606 Author: Carmelo Amoroso Date: Sun Apr 25 16:15:26 2010 +0200 build: Fix infinite loop when no threading support is enabled The build loops forever due to when invoking make $(pregen-headers-y) and $(pregen-headers-y) is empty (no thread support). Parallel build should continue to work as well. It fixes Bugzilla #1633. Signed-off-by: Carmelo Amoroso commit 6193eee290f612c13492923552dea193c80ded85 Author: Roman I Khimov Date: Sun Apr 25 15:04:59 2010 +0400 libpthread/nptl_db: define NOT_IN_libc NPTL build for x86_64 failed with LD libthread_db-0.9.32-git.so .../ld: libpthread/nptl_db/libthread_db_so.a(td_ta_event_getmsg.oS): relocation R_X86_64_PC32 against undefined symbol `__GI_memset' can not be used when making a shared object; recompile with -fPIC Signed-off-by: Roman I Khimov Signed-off-by: Austin Foxley commit 50d664a757b7a5ef1fd536ec00ea552ad9290315 Author: Carmelo Amoroso Date: Sun Apr 25 10:37:01 2010 +0200 nptl_db: Remove compiler warning due to old-style function definition Signed-off-by: Carmelo Amoroso commit d1dc72d6ad0d4822fb62d635638ed79028df8bc7 Author: Carmelo Amoroso Date: Sun Apr 25 10:36:37 2010 +0200 nptl: Remove compiler warning due to old-style function definition Signed-off-by: Carmelo Amoroso commit f71bcf0f42bf6926477cc3e3faa006cf74e59c45 Author: Carmelo Amoroso Date: Sun Apr 25 10:14:48 2010 +0200 libc: Remove compiler warning due to old-style function definition Signed-off-by: Carmelo Amoroso commit cce1105f017744ad2d6b7b86d8a3160637bebea1 Author: Austin Foxley Date: Fri Apr 23 07:27:50 2010 -0700 change ABI_VERSION back to just include the major number By default, GCC hard codes the name for ld.so to /lib/ld-uClibc.so.0 so our default should match that. If distribution makers want to change it, they need to change the default gcc configuration as well. Signed-off-by: Austin Foxley commit 3bb2a677d2fa6fc43fa150b19132c35341ae0160 Merge: cfa1d49 abb965d Author: Austin Foxley Date: Fri Apr 23 06:55:42 2010 -0700 Merge commit 'origin/master' into nptl Signed-off-by: Austin Foxley commit abb965d29293288d215e8c2891b780dc8aabe948 Author: Natanael Copa Date: Thu Apr 22 14:52:48 2010 +0000 utils: fix install prefix for getconf So we don't get /usr/usr/bin/getconf when DEVEL_PREFIX="/usr" Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit cfa1d49e87eae4d46e0f0d568627b210383534f3 Author: Timo Teräs Date: Thu Apr 22 05:53:43 2010 +0000 nptl: fix dynamic initialization of libpthread If libpthread get's pulled in via dlopen(), we need to do libpthread initialization in dlopen(). Achieve this by making initializer function out of __pthread_initialize_minimal_internal. Add the proper linker flags and make it callable multiple times. Add also nodelete flag which ensures that libpthread will not get unmapped after it's been loading. Though, ld.so does not yet support this. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 279c728ee62e53eb055227695bc6fafb31a3a5f1 Author: Timo Teräs Date: Thu Apr 22 11:06:41 2010 +0000 nptl: fix libc internal, dynamically enabled locking Final iteration to fix libc internal locking if libpthread is pulled in by dlopen call (directly or indirectly). We cannot really use the weak symbol trick for shared build, since the symbols won't get refreshed if libpthread is pulled in dynamically. In glibc, they have #ifdef SHARED magic to either use pthread_functions table, or weaks. But as we shared object files with both builds, this does not sounds good either. The reintroduces the libc weaks.c, but uses them now only with static build. For dynamic build, we still use the symbols with same name, but provide weaks in forward.c so they end up dereferencing the pthread_functions table indirectly if we are not linked to libpthread. Mutex initialization is hard coded as inline, as it needs to happen even if libpthread is not initially loaded. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit b93b98daf0dd45ac52f99fc4d906e5926cdd5239 Author: Timo Teräs Date: Thu Apr 22 08:28:10 2010 +0000 ldso: support RTLD_NODELETE and DF_1_NODELETE Honor the nodelete flags so we don't delete shared library if it's sticky. This is useful for libpthread if it gets pulled in by a dlopen'ed library. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit dfedf78cc696bb51069ca591c3be8f05018d5be1 Author: Timo Teräs Date: Thu Apr 22 05:43:00 2010 +0000 nptl: fix warnings of shadowing __self Stdio locking macroes do: void *__self = THREAD_SELF; But THREAD_SELF uses __self also internally which causes shadowing warnings. Just rename the outer variable for now. Might be an idea to convert the macroes to static inline functions. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 744842bf666f31cfdd355598c244cef2487eded4 Author: Timo Teräs Date: Thu Apr 22 05:41:17 2010 +0000 nptl: fix malloc library locking Update malloc library to use internal uclibc locking primitives to get the libpthread calls correct. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 71239593ef4077b3e3d06a0f21aa5d0697880bef Author: Natanael Copa Date: Tue Apr 20 14:49:30 2010 +0000 nptl: proper soname handling Since sublevel releases are not ABI compatible we need to adjust the soname to include the sublevel version. This makes it possible to install ABI incompatible versions of the library side by side so clean upgrades are possible. Signed-off-by: Natanael Copa Signed-off-by: Austin Foxley commit 2520b17c292af534decee7fba76865520ea9727c Author: Timo Teräs Date: Tue Apr 20 11:59:42 2010 +0300 nptl: remove unneeded libc-lock.h include I semi-accidentally added include for libc-lock.h because the intention was to use locking macroes from there. However, we ended up using using the weak alias stuff. This is additionally good since now this can result in compile errors like: In file included from /toolchain/include/bits/uClibc_mutex.h:16, from /toolchain/include/bits/uClibc_stdio.h:107, from /toolchain/include/stdio.h:72, from /work/freetype-2.3.11/include/freetype/config/ftstdlib.h:100, from ./builds/unix/ftconfig.h:43, from builds/unix/ftsystem.c:21: /toolchain/include/bits/libc-lock.h:309: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' Remove the unneeded include causing breakage. Reported-by: Kevin Day Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit a501a33e9761f32b3d38ab9f113892abe7cef3f1 Author: Timo Teras Date: Fri Apr 16 16:56:00 2010 +0300 nptl: mark forwarded functions protected The libc stubs should never override the libpthread provided functions inside libpthread, otherwise the struct pthread_functions that is used by the forwarder stubs goes bad. Signed-off-by: Timo Teras Signed-off-by: Austin Foxley commit 0eadd98d30c51d26fde4062e6b8c48f3c9b5148d Author: Timo Teras Date: Fri Apr 16 16:29:46 2010 +0300 libc: remove libc weak __pthreads_* wrappers It is not possible to override for libpthread to override the weak libc definitions. This has never worked in uclibc, and does no longer work in glibc either (unless you use LD_DYNAMIC_WEAK). The proper thing to do is have weak prototypes in libc, and definitions in libpthread only. This way libc runs even if those functions are not defined, but just needs to protect against the NULL values (done by implementing __uclibc_maybe_call). This fix the problems if libc is linked before libpthread or if libpthread is pulled by a dependency library. Signed-off-by: Timo Teras Signed-off-by: Austin Foxley commit 837e8425ce9a0c1ad1c58a00cf3b9e949e7b17cd Author: Timo Teras Date: Fri Apr 16 15:43:15 2010 +0300 libc-symbols: add attribute_protected Definition to use protected visibility. Signed-off-by: Timo Teras Signed-off-by: Austin Foxley commit ba38f0cec27b91cc7c605417ad047c4dc77d732f Author: Joakim Tjernlund Date: Fri Apr 16 15:37:40 2010 +0300 ldso/i386: support protected symbols Make sure protected symbols are not overridden by other modules. Signed-off-by: Joakim Tjernlund Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit e80e2f61261741516902b44b13202d3f7673977e Author: Timo Teras Date: Fri Apr 16 15:34:26 2010 +0300 Revert "nptl: mark symbols with libc forwarder hidden" This reverts most of commit 1610762362e651f86ca284ac59a1d7ec88034e4e. Marking the symbols hidden is wrong, because libc accesses the pthreads internal symbols for internal locking. Signed-off-by: Timo Teras Signed-off-by: Austin Foxley commit 268cd8184f8daa106e4b20a8ee2c66410e6f9cbb Author: Timo Teräs Date: Thu Apr 15 17:52:54 2010 +0300 nptl: fix libc sigtimedwait It seems that 57e8823548ad6e65d33b2153edeb18fb0edc20e6 removed completely sigtimedwait symbol from libc which is wrong. I hope there is not too many other things like this. Apparently the libc_hidden_* macros actually make previously hidden symbols visible globally (creates alias from __GI_* to *). This is probably ancient confusion from times when gcc did not support visibility attribute and hiding symbols was done using hacks like this. This also adds attribute_hidden to the internal __sigtimedwait for nptl case. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 9c9652debbf3f21effb9a119220e747188d590b9 Author: Timo Teräs Date: Thu Apr 15 16:54:49 2010 +0300 nptl: fix libc sigaction signal checking We should not check for SIGCANCEL in __libc_sigaction because nptl calls this function to setup this signal. Nptl provides it's own override for sigaction that checks that the user cannot override signals nptl uses internally. Linuxthreads does not use SIGCANCEL at all so this affects nptl only. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 197d979d307c6d0872a4e6fec1c4e2804ab326df Author: Bernhard Reutner-Fischer Date: Thu Apr 15 11:13:16 2010 +0200 PTR_DEMANGLE: add documentation Signed-off-by: Bernhard Reutner-Fischer commit e035abf89fbe11a88a26372f1695c768aff7d9e1 Merge: 9ed510a 718dcdc Author: Austin Foxley Date: Wed Apr 14 11:08:37 2010 -0700 Merge commit 'origin/master' into nptl Signed-off-by: Austin Foxley commit 9ed510ad034f9327e7e032d2c6550bfb1f750eb9 Author: Timo Teräs Date: Tue Apr 13 20:27:57 2010 +0300 nptl: turn pointer demangling off Currently the stub calls would demangle the pointer that is never mangled. Alternatively, we could sync nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c with new glibc version that properly mangles the pointers, but that would need more validation to make sure that all struct pthread_function readers do demangling. uclibc currently does not do pointer mangling everywhere so it's more consistent to just disable it here too. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 77c18ab76ea3441f0686a4f21374305325b63566 Author: Timo Teräs Date: Tue Apr 13 09:38:59 2010 +0300 linuxthreads.new: initialize stdio locking uClibc requires the threading library to enable locking for stdio, or the locking is not done at all. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit a45cf01f792a950ae2ea810668d1c5becf162680 Author: Timo Teräs Date: Tue Apr 13 08:53:58 2010 +0300 nptl: initialize stdio locking uClibc requires the threading library to enable locking for stdio, or the locking is not done at all. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 1610762362e651f86ca284ac59a1d7ec88034e4e Author: Timo Teräs Date: Wed Apr 14 20:01:33 2010 +0300 nptl: mark symbols with libc forwarder hidden Add attribute_hidden to all symbols having libc forwarder. This prevents recursive self calls which would happen if libc is before libpthread in linking order: the forwarder functions would call itself via the function table, since the libpthread symbols would get overwritten with libc ones. This has not been a problem in glibc since there these symbols are marked hidden with linker version-script. Since we don't use one, we need to mark these explicitly. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley commit 718dcdc32bc831b2c141b020124501515afb9adc Author: Bernhard Reutner-Fischer Date: Wed Apr 14 15:09:43 2010 +0200 *.o[sS]: depend on pregen allows 'make realclean && make utils' to behave properly Signed-off-by: Bernhard Reutner-Fischer commit 4f729fd9aadcd6727f7c44ff0fce279031de6b85 Author: Carmelo AMOROSO Date: Wed Apr 14 07:24:46 2010 +0200 ldso: Add config option for controlling LD_PRELOAD On hardened system it could be useful to disable the use of LD_PRELOAD environment variable for preloading shared objects before the system libraries. So this patch add a config option, LDSO_PRELOAD_ENV_SUPPORT, to control this behaviour. It is enabled by default. Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit d61066fcfe7f00843c4660182ea38ba3a5e41803 Author: Bernhard Reutner-Fischer Date: Tue Apr 13 16:14:14 2010 +0200 test: add API test part1; Needs improvement: Think about a sensible way to map feature sets to the mandated syms. Our LEGACY stuff maps to OB, OBXSI for example. A "normal" config should satisfy the BASE (i.e. $foo.SUSv4.syms) Signed-off-by: Bernhard Reutner-Fischer commit bd881300eb5380e4bd636b092b706b4b31def7fb Author: Bernhard Reutner-Fischer Date: Mon Apr 12 16:39:38 2010 +0200 provide prototype for internal helper i386 was missing a prototype for __tls_get_addr() Signed-off-by: Bernhard Reutner-Fischer commit ef175598ce8b7ac522136c91262ffae076013bf5 Author: Bernhard Reutner-Fischer Date: Mon Apr 12 16:38:37 2010 +0200 temporarily turn on warnings for NPTL Signed-off-by: Bernhard Reutner-Fischer commit 7a0108deec4772bfa3abfce8cbf1d30a15a55dad Author: Bernhard Reutner-Fischer Date: Mon Apr 12 15:47:16 2010 +0200 silence debug warning variable 'tmp' set but not used Signed-off-by: Bernhard Reutner-Fischer commit 60118f8fe9e6b06eff3d6625bfcaaec23bac4b50 Author: Bernhard Reutner-Fischer Date: Mon Apr 12 15:39:42 2010 +0200 whitespace cleanup Signed-off-by: Bernhard Reutner-Fischer commit 6cc4f58c6382c850ce97f32f56d1a3ff00ca4585 Merge: c58dd2b e90c33f Author: Austin Foxley Date: Mon Apr 12 06:18:10 2010 -0700 Merge remote branch 'origin/master' into nptl Conflicts: libc/unistd/confstr.c Signed-off-by: Austin Foxley commit c58dd2b2aabda615aa333cdbb023defbf00b30a3 Author: Natanael Copa Date: Mon Apr 12 12:45:50 2010 +0000 nptl/sysdeps/unix/sysv/linux/i386: cleanup -DUSE___THREAD Remove the -DUSE___THREAD from specific assembler files since its used everywhere anyway. This is a cleanup after 447a9d1cc181395c3e2ea77ea88e45dee4b30ce6 Signed-off-by: Natanael Copa Signed-off-by: Austin Foxley commit e90c33f951efc032ca23f48326343a83c0b54b10 Author: Bernhard Reutner-Fischer Date: Mon Apr 12 15:09:25 2010 +0200 attribute_optimize: fix typo with args curious how 308f5c6e5fd56ea3d1a5512e34388aad788f1180 ever worked.. :P Signed-off-by: Bernhard Reutner-Fischer commit 62c4a3cae413564bbb5ca6b8a7e93d0135d7843f Author: Bernhard Reutner-Fischer Date: Mon Apr 12 15:04:23 2010 +0200 pthread_mutex_timedlock: always build with optimizations avoids breakage with DODEBUG and lll_timedlock() constraints Signed-off-by: Bernhard Reutner-Fischer commit 447a9d1cc181395c3e2ea77ea88e45dee4b30ce6 Author: Timo Teräs Date: Mon Apr 12 12:19:41 2010 +0000 nptl/sysdeps/unix/sysv/linux/i386: enable USE___THREAD for assembler NPTL defines errno as __thread variable. Define USE___THREAD so proper errno assignment is used in assembly files. This fixes segfault while building python. Signed-off-by: Timo Teräs Signed-off-by: Natanael Copa Signed-off-by: Austin Foxley commit 6436d7c68544657e87ce6f46fcfe250c435a953c Author: Bernhard Reutner-Fischer Date: Mon Apr 12 12:43:45 2010 +0200 use user-provided host binaries Signed-off-by: Bernhard Reutner-Fischer commit 400fda729df34fa969a2346a3567a0ac02341fb3 Author: Bernhard Reutner-Fischer Date: Mon Apr 12 10:11:53 2010 +0200 prettify make clean forgot extra/config Signed-off-by: Bernhard Reutner-Fischer commit 8ba98cc2aa3409f57f7b2a6da424ebb64dae250c Author: Bernhard Reutner-Fischer Date: Mon Apr 12 10:00:54 2010 +0200 *.i depend on generated headers Signed-off-by: Bernhard Reutner-Fischer commit ed15ebd5148bfdd3fda358e1cc8da621f8eede29 Author: Bernhard Reutner-Fischer Date: Mon Apr 12 09:43:08 2010 +0200 silence warning about undefined preprocessor token Signed-off-by: Bernhard Reutner-Fischer commit 62174f7330a4578faf2df6c108c0ee6ee5270325 Author: Carmelo Amoroso Date: Mon Apr 12 09:23:43 2010 +0200 libc_regex: __libc_lock primitives are actually available on uClibc __libc_lock primitives are actually available on uClibc when threading support is enable, so in this case they can be used. It also fixes the following compiler warnings: In file included from libc/misc/regex/regex.c:55: libc/misc/regex/regex_internal.h:49:1: warning: "__libc_lock_define" redefined [SNIP] libc/misc/regex/regex_internal.h:50:1: warning: "__libc_lock_init" redefined [SNIP] libc/misc/regex/regex_internal.h:51:1: warning: "__libc_lock_lock" redefined [SNIP] libc/misc/regex/regex_internal.h:52:1: warning: "__libc_lock_unlock" redefined Signed-off-by: Carmelo Amoroso (cherry picked from commit 65f9ccdafd008abd9892dfc46fb9737ec4d964c5) Signed-off-by: Carmelo Amoroso commit 65f9ccdafd008abd9892dfc46fb9737ec4d964c5 Author: Carmelo Amoroso Date: Mon Apr 12 09:23:43 2010 +0200 libc_regex: __libc_lock primitives are actually available on uClibc __libc_lock primitives are actually available on uClibc when threading support is enable, so in this case they can be used. It also fixes the following compiler warnings: In file included from libc/misc/regex/regex.c:55: libc/misc/regex/regex_internal.h:49:1: warning: "__libc_lock_define" redefined [SNIP] libc/misc/regex/regex_internal.h:50:1: warning: "__libc_lock_init" redefined [SNIP] libc/misc/regex/regex_internal.h:51:1: warning: "__libc_lock_lock" redefined [SNIP] libc/misc/regex/regex_internal.h:52:1: warning: "__libc_lock_unlock" redefined Signed-off-by: Carmelo Amoroso commit 625b805068561d121baf226cd67cb7aa6e6ba7ba Author: Carmelo Amoroso Date: Sun Apr 11 22:56:05 2010 +0200 ldso_sh: Provide only one definition for elf_machine_type_class It doesn't need to provide different definition of elf_machine_type_class macro depending on TLS support. It also fixes build for sh architecture when thread support is off: CC ldso/ldso/ldso.oS In file included from ./ldso/ldso/sh/dl-sysdep.h:9, from ./ldso/include/dl-string.h:11, from ./ldso/include/ldso.h:40, from ldso/ldso/ldso.c:33: ./include/tls.h:6:22: error: tls.h: No such file or directory make: *** [ldso/ldso/ldso.oS] Error 1 Signed-off-by: Carmelo Amoroso commit eda86005f81342094c211ba13c8128afcff98f5d Author: Denys Vlasenko Date: Fri Apr 9 23:17:34 2010 +0200 resolv: tentatively fix usage of uninitialized DNS parameters See "Possible regression from timeout commit for resolv.conf" thread. Also remove superfluous NULL check. Signed-off-by: Denys Vlasenko commit f53c628428c449f84c92a38c39632e63942d492a Author: Natanael Copa Date: Fri Apr 9 06:20:59 2010 -0700 Fixes NPTL build on x86. Signed-off-by: Natanael Copa Signed-off-by: Austin Foxley commit bb3ea9c344083c03dac8d816fc93a393ddba8b58 Author: Bernhard Reutner-Fischer Date: Thu Apr 8 10:33:53 2010 +0200 .gitignore getconf binaries Signed-off-by: Bernhard Reutner-Fischer commit c164cf038c522d153bf9ac6c4bddabe0be81a7e1 Author: Bernhard Reutner-Fischer Date: Thu Apr 8 10:33:09 2010 +0200 confstr: properly stringify version parts Signed-off-by: Bernhard Reutner-Fischer commit 00f2fe1e89b78ecf89eda45d665a237849314d0b Author: Bernhard Reutner-Fischer Date: Wed Apr 7 22:44:07 2010 +0200 pthread_{attr_,}{s,g}etaffinity: cleanup symbol names fixes typo in a1ee5b32fc698297149c770417354441ee62701e which forgot to rename __pthread_attr_getaffinity_np to pthread_attr_getaffinity_np. Thanks to Andre DRASZIK for mentioning my omission. Signed-off-by: Bernhard Reutner-Fischer commit 3218d5b3340d8b37ba8ee29a24dd0e65f3331f22 Author: Austin Foxley Date: Tue Apr 6 10:05:34 2010 -0700 utils .gitignore update to include getconf Signed-off-by: Austin Foxley commit e0a9623c6c30faf915b31358824aa2f8031df8b2 Author: Austin Foxley Date: Tue Apr 6 09:16:02 2010 -0700 correctly quote version in confstr Signed-off-by: Austin Foxley commit f10d127d36ada5b202cdea521e61b05522beb192 Merge: c3af260 384a55e Author: Austin Foxley Date: Tue Apr 6 08:58:29 2010 -0700 Merge commit 'origin/master' into nptl Conflicts: libc/misc/utmp/utent.c libc/sysdeps/linux/i386/bits/syscalls.h Signed-off-by: Austin Foxley commit 384a55ef9f3387ed33eadab3eefe5057b4daeadb Author: Bernhard Reutner-Fischer Date: Tue Apr 6 17:17:30 2010 +0200 getconf: print arbitrary GNU_LIBPTHREAD_VERSION string the NPTL should probably print the version-string of the glibc it's compatible with and not the uClibc version (check what mysql expects). Signed-off-by: Bernhard Reutner-Fischer commit e1b4229b5a245fd1d7f1e97f71fec0e7897729c3 Author: Bernhard Reutner-Fischer Date: Tue Apr 6 16:19:46 2010 +0200 getconf: move to utils/ Signed-off-by: Bernhard Reutner-Fischer commit fd8991cc59305a071e9f1765b3e1e09de9339bc3 Author: Gabor Juhos Date: Tue Apr 6 09:55:19 2010 +0200 Fix use-after-free bug in __dns_lookup If the type of the first answer does not match with the requested type, then the dotted name was freed. If there are no further answers in the DNS reply, this pointer was used later on in the same function. Additionally it is passed to the caller, and caused strange behaviour. Signed-off-by: Gabor Juhos Signed-off-by: Bernhard Reutner-Fischer commit cd50d9a1c93bf1e02f4d4e2df4ece6c881f24719 Author: Denys Vlasenko Date: Tue Apr 6 05:33:01 2010 +0200 i386/bits/syscalls.h: more compact, but stack-hungry syscall code. disabled so far Signed-off-by: Denys Vlasenko commit dbdd8b059520baa371de611a21d7d1a2b250b250 Author: Denys Vlasenko Date: Tue Apr 6 05:32:09 2010 +0200 i386/bits/syscalls.h: explain _BITS_SYSCALLS_ASM Signed-off-by: Denys Vlasenko commit d82f29cd593e371acb3a6f11656543cf2e6e2421 Author: Denys Vlasenko Date: Tue Apr 6 05:29:26 2010 +0200 i386/bits/syscalls.h: generate better code using more restrictive asm constraints Example: time() doesn't push/pop two registers now, and is smaller: <__GI_time>: -57 push %edi -8b 7c 24 08 mov 0x8(%esp),%edi -53 push %ebx -89 fb mov %edi,%ebx +8b 4c 24 04 mov 0x4(%esp),%ecx +87 cb xchg %ecx,%ebx b8 0d 00 00 00 mov $0xd,%eax cd 80 int $0x80 -5b pop %ebx -5f pop %edi +87 cb xchg %ecx,%ebx c3 ret Signed-off-by: Denys Vlasenko commit eefaf06888e3dcbc410b4cc2d231035f4400c7ac Author: Denys Vlasenko Date: Tue Apr 6 05:28:29 2010 +0200 i386/bits/syscalls.h: explain how it works. no code changes Signed-off-by: Denys Vlasenko commit b2f0faf04264c13d7877646330da7f5954380342 Author: Denys Vlasenko Date: Mon Apr 5 19:27:41 2010 +0200 libutil/login: was totally broken. fixed Also made login() and logout() usable with utmpname(non_std_utmp_file) text data bss dec hex filename 111 0 0 111 6f libutil/login.o 217 0 0 217 d9 libutil/login.o text data bss dec hex filename 164 0 0 164 a4 libutil/logout.o 134 0 0 134 86 libutil/logout.o Signed-off-by: Denys Vlasenko commit 56f80b6cb62323fbaf0fc8620d10fc242e136ee6 Author: Denys Vlasenko Date: Mon Apr 5 19:25:54 2010 +0200 utent: do not create extra static functions if !THREADS text data bss dec hex filename 547 8 384 939 3ab libc/misc/utmp/utent.o 519 8 384 911 38f libc/misc/utmp/utent.o Signed-off-by: Denys Vlasenko commit 10f19b4565a82a9fb2ebb7bf938154afb4e09ad6 Author: Denys Vlasenko Date: Mon Apr 5 01:32:19 2010 +0200 regex_old: convert static flag variable to smallint Signed-off-by: Denys Vlasenko commit c75712b15a5e0655c15707e1e1340da9d5e2646a Author: Denys Vlasenko Date: Mon Apr 5 01:31:27 2010 +0200 getutid is not used internally, removing hidden_proto Signed-off-by: Denys Vlasenko commit c3af26045aa44286482fbfe93097f24b48cfb6a3 Author: Austin Foxley Date: Fri Apr 2 10:29:00 2010 -0700 nptl needs stdio futexes enabled. this got reverted in the merge I just did Signed-off-by: Austin Foxley commit ba3aaf137c521cdfdb8e16499dfadc977e5feb53 Author: Austin Foxley Date: Fri Apr 2 09:25:02 2010 -0700 poll.c: fix incorrect merge Signed-off-by: Austin Foxley commit 4737dfdde5e78df1c5f6d4c7adc8351a0c788c9b Author: Austin Foxley Date: Fri Apr 2 09:18:09 2010 -0700 Revert "remove config knobs that belong to the nptl branch" This reverts commit de82658a05de0ace6f3d261dedc358d3a14f3681. Signed-off-by: Austin Foxley commit aae3eb9256affb18cff589b52ee26e0a4e557bbd Merge: ef18cfe 2864786 Author: Austin Foxley Date: Fri Apr 2 09:17:30 2010 -0700 Merge commit 'origin/master' into nptl Conflicts: Makefile.in extra/Configs/Config.in libc/sysdeps/linux/common/bits/kernel-features.h libc/sysdeps/linux/common/poll.c libc/sysdeps/linux/common/sysdep.h libc/sysdeps/linux/sh/sysdep.h Signed-off-by: Austin Foxley commit 2864786ad884369ab5397be864e9f43d32bc2726 Author: Bernhard Reutner-Fischer Date: Fri Apr 2 18:01:41 2010 +0200 bump version to 0.9.32-git NPTL merge candidate, finally! Signed-off-by: Bernhard Reutner-Fischer commit ef18cfe8ebab25f5ef92e81956f50e2dc57df602 Author: Khem Raj Date: Tue Feb 23 16:32:50 2010 -0800 pregen-headers: Add new target which depends on headers. * This target is necessary to serialize making of headers before pregen-headers and pregen-headers before the rest of build Signed-off-by: Khem Raj commit 046035ecde92262d96eff2192ba3cda716f04909 Author: Khem Raj Date: Tue Feb 23 16:21:18 2010 -0800 pregen: Fix the parallel build problem in pregen target * pregen-headers really need the headers to get themselves generated. so we create explicit dependency and invoke make as an action on pregen. This fixes the parallel build issue for better. Signed-off-by: Khem Raj commit 2a0393652f0d2157fcfb81a1bf38c7f775182e49 Author: Austin Foxley Date: Tue Feb 23 01:30:16 2010 -0800 get rid of extra variables for nptl pregen altogether Signed-off-by: Austin Foxley commit 1f5c73c9f8a98b1d2a35cea868a585c97ab0e436 Author: Austin Foxley Date: Tue Feb 23 01:15:30 2010 -0800 order headers before pregen-headers until someone gets a chance to fix this for real, this will unbreak building from a clean repo, as some of the pregen headers need some of the static headers Signed-off-by: Austin Foxley commit 7aab619f4b8d1331e34ec48384acf7db7d965218 Author: Austin Foxley Date: Tue Feb 23 01:09:22 2010 -0800 improve parallel make behaviour * add library dependencies for libdl,libpthread * fix typo in librt/Makefile.in * also remove extra trailing slashes on i386, sparc pregen headers Signed-off-by: Austin Foxley commit 82d2e11497f24a5ec9fc61a711516dbb8cf471e9 Author: Austin Foxley Date: Mon Feb 22 15:59:59 2010 -0800 initialize new pregen-headers-y variable before including sub makefiles Signed-off-by: Austin Foxley commit 507c5013f8548fa873af1c60ac659b23103e447e Author: Khem Raj Date: Mon Feb 22 15:16:18 2010 -0800 nptl/headers: Convert the makefile targets into variables. * Introduce pregen-headers-y which is list of generated headers during the build and add this to pregen target in top level makefile. Also add nptl_headers, nptl_arch_headers, nptl_linux_headers to this if compiling with nptl. * Replace pthread_pregen var with pregen-headers-y. * Make nptl_headers, nptl_arch_headers, nptl_linux_headers variables instead of sub targets. Signed-off-by: Khem Raj commit 39548d72297a8c3d8d55e04b8240e4ce09913a82 Author: Khem Raj Date: Fri Feb 19 19:21:25 2010 -0800 Get x86_64 compile to succeed. * The changes to clone.S needs testing Signed-off-by: Khem Raj commit 1db4f8f8389f6a935ecd83aff7fcce5d1cf2c0f3 Author: Austin Foxley Date: Fri Feb 19 12:06:03 2010 -0800 sparc: disable cancellable system, as it fails in strange ways right now Signed-off-by: Austin Foxley commit af92ed684321eb698b27a7abc9c4cbd0bf2676e2 Author: Austin Foxley Date: Fri Feb 19 11:41:00 2010 -0800 sparc: also needs generic version of lowlevelrobustlock Signed-off-by: Austin Foxley commit 8b63e7d52e4519a47fa1365f2e19d35de0db3a9d Author: Khem Raj Date: Fri Feb 19 08:01:00 2010 -0800 Add dummy tcb-offsets.h * This file is used during creation of real tcb-offsets.h because lowlevellock.h from i386 also include tcb-offsets.h and it is inturn included by tls.h and tls.h is used in the dummy C file generated from tcb-offsets.sym, it created a catch-22 Signed-off-by: Khem Raj commit 4c15dd5a77e2df399ea3c4e6818cad4df42c0219 Author: Carmelo Amoroso Date: Fri Feb 19 16:32:22 2010 +0100 nptl_sh: Fix build problem with FUTEX_CLOCK_REALTIME This patch fixes a build problem into the lowlevellock.S when support FUTEX_CLOCK_REALTIME (kernel newer than 2.6.29). __have_futex_clock_realtime symbol is not defined when set __ASSUME_FUTEX_CLOCK_REALTIME. The same is on i386 arch. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Carmelo Amoroso commit 510d1ed6dfdbf33103efe7d625779df1835d6ce9 Author: Austin Foxley Date: Fri Feb 19 03:29:32 2010 -0800 x86_64: compile pthread it's own version of __syscall_error also fix up clone.S from sync Signed-off-by: Austin Foxley commit de2101834f0c80e38008e8d1d1848ab94ce2341e Author: Austin Foxley Date: Fri Feb 19 03:09:06 2010 -0800 more fixes for x86_64 nptl also cleanup some PIC (should be __PIC__) that snuck in Signed-off-by: Austin Foxley commit 4e9f93bb64c5815b071393ca738cb14b8624e605 Author: Austin Foxley Date: Fri Feb 19 03:08:16 2010 -0800 add dwarf defines used in cfi statements Signed-off-by: Austin Foxley commit 9c738a57b88712ed87e69bcb3ec657773fa159ce Author: Austin Foxley Date: Fri Feb 19 02:51:32 2010 -0800 update kernel-features.h with futex features Signed-off-by: Austin Foxley commit af591eac05be995ed79d61005c9779f16c4562e4 Author: Austin Foxley Date: Fri Feb 19 02:34:10 2010 -0800 use macro to link ldso to libpthread, so it gets the the right name on 64 bit archs Signed-off-by: Austin Foxley commit 8826c1e4573c68200092074ede1afdddd4b3e115 Author: Austin Foxley Date: Fri Feb 19 02:05:52 2010 -0800 fixes to get nptl compiling for x86_64 Signed-off-by: Austin Foxley commit 536a9d8a04dc75246d7ad70c9372064c41a43467 Author: Austin Foxley Date: Fri Feb 19 01:41:19 2010 -0800 x86_64: finish up tls reloc support in ldso Signed-off-by: Austin Foxley commit 323bc3be3b3144932bbb5ee2a586e9ab4074239e Author: Khem Raj Date: Fri Feb 19 00:34:29 2010 -0800 Fixes to get nptl compiling for x86 Signed-off-by: Khem Raj commit 00f5c08d216581e02a1e5cc8a8076ae3779ea6ca Author: Khem Raj Date: Thu Feb 18 07:56:44 2010 -0800 Fix typo in generated file names. Signed-off-by: Khem Raj commit 7c2254319bf23a0379b5d6cddf75e7a2e7288df6 Author: Austin Foxley Date: Thu Feb 18 07:53:02 2010 -0800 i386 unify sysdep.h Signed-off-by: Austin Foxley commit bacd43d0fb5ea0c88ed9d7d2de2c4250b987f885 Author: Austin Foxley Date: Thu Feb 18 07:42:55 2010 -0800 x86_64: unify sysdep.h Signed-off-by: Austin Foxley commit 79ba65f0a42addfe764a507ba2a186c2c8f62fc8 Author: Carmelo Amoroso Date: Thu Feb 18 15:35:19 2010 +0100 nptl: Fix clean target to remove generated files Signed-off-by: Carmelo Amoroso commit 030ea01c5c67906c1602149b2f3f11a6cdd8c9f3 Author: Khem Raj Date: Thu Feb 18 01:06:57 2010 -0800 include tcb-offsets.h in sysdep-cancel.h for arm. Signed-off-by: Khem Raj commit ed0915ba70d0ff6ed0a78f45d46822763a580737 Author: Khem Raj Date: Wed Feb 17 23:42:28 2010 -0800 Get new nptl building on SH4 Signed-off-by: Khem Raj commit f14c584876271f474025fc06b3dc66ce798bcacb Author: Austin Foxley Date: Wed Feb 17 18:44:35 2010 -0800 compile fixes for i386 nptl Signed-off-by: Austin Foxley commit 397c0e487350873287499529be351c750c422fc3 Author: Austin Foxley Date: Wed Feb 17 16:54:59 2010 -0800 fix nptl build for sparc Signed-off-by: Austin Foxley commit 44f3864ffcf205930a0cf7e553ab91f2cb01d02d Author: Austin Foxley Date: Wed Feb 17 16:52:15 2010 -0800 move pthread_barrier_{init,destroy} to sysdeps/pthread for archs that implement their own like sparc and x86_64 Signed-off-by: Austin Foxley commit f09e8e4ba639d236322e10130fbc19845f61d59a Author: Khem Raj Date: Wed Feb 17 16:49:55 2010 -0800 Fix nptl build for mips Signed-off-by: Khem Raj commit fad28cf83c815179bf4b9201e1a57bde3ce51a55 Author: Austin Foxley Date: Wed Feb 17 15:08:10 2010 -0800 sparc/nptl: typo fixes Signed-off-by: Austin Foxley commit 21069cd5b0c0e01127d1afde7a21dfa81350aa11 Author: Austin Foxley Date: Wed Feb 17 15:01:37 2010 -0800 sparc/nptl: fix wrong vfork hidden def Signed-off-by: Austin Foxley commit 9e208003f72bc2a645c628b05d5de463244adb08 Author: Khem Raj Date: Wed Feb 17 14:59:11 2010 -0800 Add missing lowlevelrobustlock.c Signed-off-by: Khem Raj commit a68b6d339b5e0bafd5a730359db1130d0c9dba86 Author: Khem Raj Date: Wed Feb 17 14:55:18 2010 -0800 Add missing libgcc_s.h header. * Do not include tls.h in aeabi_read_tp.S. Its not needed. Signed-off-by: Khem Raj commit fce44dc956e4c2ed09ff22aac9b8931985e97aa2 Author: Austin Foxley Date: Wed Feb 17 14:55:36 2010 -0800 update nptl gitignore Signed-off-by: Austin Foxley commit bda356b2a672b41432631eeaa17ff4506e4f69f5 Author: Austin Foxley Date: Wed Feb 17 14:45:39 2010 -0800 fix typo Signed-off-by: Austin Foxley commit 94f3c30dc2d8193f977daf04414b1edd815ced83 Author: Khem Raj Date: Wed Feb 17 14:28:38 2010 -0800 Assorted fixed to get nptl compiling on ARM Signed-off-by: Khem Raj commit 5e6d4834e6b35c6b0017fcdaf246c505dec10452 Author: Austin Foxley Date: Tue Feb 16 15:11:07 2010 -0800 a few more build fixes nptl sync Signed-off-by: Austin Foxley commit a032a6587011cbdac8c2f7e11f15dc4e592bbb55 Author: Austin Foxley Date: Tue Feb 16 12:27:18 2010 -0800 mass sync with glibc nptl Signed-off-by: Austin Foxley commit 70f1d42b13a741f603472f405299e5d2938aa728 Author: Austin Foxley Date: Sat Feb 13 16:48:23 2010 -0800 sparc/sigaction: revert change. These semantics are needed for nptl Signed-off-by: Austin Foxley commit 2a41f18dddea928787821064d7e84c272247010f Author: Austin Foxley Date: Sat Feb 13 16:23:09 2010 -0800 sparc/sysdep: Unify sparc sysdep.h Signed-off-by: Austin Foxley commit 96fa7bff588054885379286a5e8cf2cdd3ba0ab0 Author: Khem Raj Date: Thu Feb 11 21:04:15 2010 -0800 arm/sysdep: Unify arm sysdep.h Signed-off-by: Khem Raj commit d7af6538924e8be444b60dc255da23c369b2c072 Author: Khem Raj Date: Thu Feb 11 20:44:18 2010 -0800 mips/sysdep.h: Unify mips sysdep.h Signed-off-by: Khem Raj commit ab40337e2c045a6a51071400fd9782173c41bd04 Author: Austin Foxley Date: Thu Feb 11 12:04:05 2010 -0800 libc: build tsd only when tls is enabled Signed-off-by: Austin Foxley commit f77f0e479274d401b36efce2e1e2a44753157daf Author: Austin Foxley Date: Thu Feb 11 11:43:46 2010 -0800 ldso: fix USE_TLS check this was causing tls symbols to leak into non-tls builds Signed-off-by: Austin Foxley commit 377388043d1da1f361cd8298622789c746e87e3f Author: Carmelo Amoroso Date: Tue Feb 9 07:49:57 2010 +0100 nptl: sysdep headers update for i386, mips and x86_64 Update the arch specific sysdep headers to include the common header under libc/sysdeps/linux/common instead of libpthread/nptl/sysdeps/generic. Signed-off-by: Carmelo Amoroso commit 72b7786ff14504eea9a16c738216aed549f7f1cc Author: Carmelo Amoroso Date: Thu Jan 7 15:05:27 2010 +0100 nptl_test: sysdep headers re-factoring Update nptl and tls Makefiles according to new sysdep headers structure Signed-off-by: Carmelo Amoroso commit 828ba271af0e7a61154740646014c5b1d81d8fb9 Author: Carmelo Amoroso Date: Thu Jan 7 11:55:08 2010 +0100 nptl: sysdep headers re-factoring This patch will re-factor and simplify sysdep headers handling for nptl branch. The reason is to use some useful macros in asm code (i.e. ENTRY()) that are available only into nptl branch because are defined in sysdep.h header under the nptl folder even if they are not related to NPTL at all (this was likely due to a bad choice done at the early stage of NPTL porting). This is a required steps for integrating into master branch some asm code available in nptl branch for sh4. The main changes are described below: nptl/sysdeps/generic/sysdep.h (moved) ---> libc/sysdeps/linux/common/sysdep.h nptl/sysdeps/arm/sysdep.h (moved) ---> libc/sysdeps/linux/arm/sysdep.h nptl/sysdeps/sh/sysdep.h ---------------------| nptl/sysdeps/unix/sh/sysdep.h ----------------| nptl/sysdeps/unix/sysv/linux/sh/sysdep.h -----| nptl/sysdeps/unix/sysv/linux/sh/sh4/sysdep.h -| |(merged) ---> libc/sysdeps/linux/sh nptl/sysdeps/unix/sysdep.h (deleted) Similarly the mips and arm sysdep.h should be merged and updated as for sh arch. Signed-off-by: Carmelo Amoroso commit 70811eeaf66e203f5376cae32b0b0d4cd4024210 Author: Carmelo Amoroso Date: Mon Feb 8 16:24:06 2010 +0100 libc: Fix typo in include/rpc s/GNU_SOUCE/GNU_SOURCE/ in include/rcp/ Signed-off-by: Jason Woodward Signed-off-by: Carmelo Amoroso commit f7eba78a7464c7b31326abf92dab254608835028 Merge: 3e808a4 df15806 Author: Austin Foxley Date: Fri Feb 5 11:10:14 2010 -0800 Merge commit 'origin/master' into nptl Signed-off-by: Austin Foxley commit 3e808a4c28f214314e8457672fae0f5d17f5450a Author: Bernhard Reutner-Fischer Date: Fri Feb 5 19:29:35 2010 +0100 TLS_TCB_AT_TP: avoid warning about undef cpp token Signed-off-by: Bernhard Reutner-Fischer commit a1ee5b32fc698297149c770417354441ee62701e Author: Bernhard Reutner-Fischer Date: Fri Feb 5 19:26:24 2010 +0100 pthread_{attr_,}{s,g}etaffinity: cleanup symbol names and hide __determine_cpumask_size. Signed-off-by: Bernhard Reutner-Fischer commit 8fc39ee8febd800372770cf1be012c03b6302e44 Author: Bernhard Reutner-Fischer Date: Fri Feb 5 19:18:47 2010 +0100 kernel-features: add __ASSUME_POSIX_CPU_TIMERS Signed-off-by: Bernhard Reutner-Fischer commit 8a32a32317902c09d86ad4e310828bbf3af1bf30 Author: Filippo Arcidiacono Date: Wed Feb 3 07:14:18 2010 -0500 libc: Fix l64a to return the correct buffer pointer l64a was returning the pointer to the end of the internal buffer instead of the start. This caused an infinite loop in passwd application. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit f50a678f473e44c405e51af988a57daf88ea2f27 Author: Khem Raj Date: Mon Feb 1 13:05:25 2010 -0800 nptl: Fix nptl specific case which still was not using CSRC-y. Signed-off-by: Khem Raj commit 5bf029cb1bb9d82523ea8a80f8a962e4da339099 Author: Khem Raj Date: Mon Feb 1 13:03:30 2010 -0800 Fix accidently dropped hunk during last merge from master. Signed-off-by: Khem Raj commit 9e22545a13d62299c59b048ae5923bf6da14ff9f Merge: e999106 22de495 Author: Khem Raj Date: Mon Feb 1 12:28:54 2010 -0800 Merge commit 'origin/master' into nptl Conflicts: libc/stdlib/Makefile.in Signed-off-by: Khem Raj commit e999106d1b95e63283e9bb8246e5c34e9c1e85f7 Author: Khem Raj Date: Mon Feb 1 12:00:55 2010 -0800 Add -DNOT_IN_libc=1 -DIS_IN_libpthread=1 to some sources in nptl/libpthread build. * This will prevent use of internal __libc* symbols in libpthread which should be hidden for libc only use. Signed-off-by: Khem Raj commit 46d7539bb38c9811a65c9953e81369c4d070ee8b Author: Khem Raj Date: Mon Jan 25 15:17:09 2010 -0800 Makefile.arch: On ARM and MIPS pass -DNOT_IN_libc=1 -DIS_IN_libpthread=1 * This will prevent it using internal __libc* symbols in pthread which should be hidden for libc only use. Signed-off-by: Khem Raj commit b7b81eb5484d1a37d8672e7be2aa4462df5d0aaf Author: Khem Raj Date: Mon Jan 25 14:42:00 2010 -0800 mips/dl-tls.h: Adjust TLS_TPREL_VALUE and TLS_DTPREL_VALUE * Symbol values are passed in directly into these macros instead of the symbol structure. Signed-off-by: Khem Raj commit 742c1b5f14aebb2ff73e3192661cb09ca58b8ab1 Author: Khem Raj Date: Mon Jan 25 14:24:26 2010 -0800 mips/ldso: Check for TLS relocation in elf_machine_type_class. * Store the symbol adress received from _dl_find_hash and do not recompute it. Signed-off-by: Khem Raj commit 74ca0c98cb8b4e6f75858ca2b2746744f2558493 Merge: e64b864 c4b7501 Author: Carmelo Amoroso Date: Mon Jan 25 06:12:08 2010 +0100 Merge branch 'master' into nptl Conflicts: libc/inet/Makefile.in libc/inet/hostid.c Synchronise nptl branch with master branch @ c4b750195714ec7c10aa4de15610c5aae0751c1c Signed-off-by: Carmelo Amoroso commit e64b864d6d4e020a94d3931704ccea50d1a20b82 Author: Austin Foxley Date: Sat Jan 23 09:47:03 2010 -0800 nptl: timer_routines.c (timer_helper_thread): Use sigfillset. Document that sigfillset does the right thing wrt to SIGSETXID. Sync with glibc Signed-off-by: Austin Foxley commit 47fd3a30139335207002481f747747e4e2a5bbb0 Author: Austin Foxley Date: Sat Jan 23 09:31:05 2010 -0800 test: fix static build of nptl and tls tests also add needed -lpthread lines to timer_* tests, since the implementation uses pthread functions Signed-off-by: Austin Foxley commit d34dd9fb9950b79bcc14a187e52ee6ded387b243 Author: Austin Foxley Date: Sat Jan 23 09:29:29 2010 -0800 nptl: need to build generic timer_* functions for x86_64 and sparc Signed-off-by: Austin Foxley commit 2b48c278aa74c9ae0bc11e6c6e329113bb82ae34 Author: Austin Foxley Date: Sat Jan 23 09:26:48 2010 -0800 nptl: fix a few more old style prototypes Signed-off-by: Austin Foxley commit f2e300431f5c56c0d2019a197ad1da24592ea842 Author: Bernhard Reutner-Fischer Date: Thu Jan 21 10:42:02 2010 +0100 wordexp: silence shadow warning Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit 831ea78623556cbfae002477afc6256cacaaf2c6) Signed-off-by: Carmelo Amoroso commit 3e3e6542fefe03cadcdfc654a989c9c6a1010f32 Author: Bernhard Reutner-Fischer Date: Thu Jan 21 10:36:13 2010 +0100 fix typo in version mismatch msg Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit 0d30e6a7666c3cab001e7343a71bfa2d3e5abbd4) Signed-off-by: Carmelo Amoroso commit 211bb2c7a96f904e9d8aea3bb6d87d074c7a8416 Author: Bernhard Reutner-Fischer Date: Tue Jan 19 17:33:14 2010 +0100 ldso: tweak shadow warning with preload file support The stat buffer is already declared at the top of the function. Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit 6140a2a7175a796a7c06119f036357db87a1b865) Signed-off-by: Carmelo Amoroso commit e620a37064d35aea3e0273b39891069a5dec76b3 Author: Bernhard Reutner-Fischer Date: Tue Jan 19 17:26:11 2010 +0100 rename exp(onent) to _exp to avoid shadow warnings Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit 2b12ef1e789227cf9425ae8645e62ba7c3a7d3a9) Signed-off-by: Carmelo Amoroso commit 42303a2fc71e095e4e2c4f9caa87e05bb266c334 Author: Bernhard Reutner-Fischer Date: Tue Jan 19 17:21:52 2010 +0100 ether_line: fix build for socket && !ip The internal __ether_line helper needs ether_ntoa_r() Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit 81264e8097b705f3b2a7e29be0a1a2ea853230cb) Signed-off-by: Carmelo Amoroso commit 654c4f2b35297e63eab19f756f500d1ea1d5e338 Author: Bernhard Reutner-Fischer Date: Wed Jan 20 23:42:57 2010 +0100 test commit Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit 1571ed1315ff95278fed019b838f183ee37cc198) Signed-off-by: Carmelo Amoroso commit bd33c42e0f3600a702b5ae23a91af61cfb379bb6 Author: Bernhard Reutner-Fischer Date: Sat Jan 16 19:18:38 2010 +0100 futimens: add missing local prototype Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit d0a8b14169c6f01dadd07f6b4e14cc335a62f234) Signed-off-by: Carmelo Amoroso commit 91eb1beca69470e0f50eb5fc50bb0f4613d5b128 Author: Bernhard Reutner-Fischer Date: Sat Jan 16 19:14:12 2010 +0100 rename exp(onent) to ex to avoid shadow warnings Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit f331f6d2eff5fb623bcc42213ccec12c7dbf95fd) Signed-off-by: Carmelo Amoroso commit 55234edb23c20b3c951dfbff559ea9bb937c72fd Author: Bernhard Reutner-Fischer Date: Fri Jan 15 15:59:56 2010 +0100 randconfig.sh: set number of make jobs Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit c13dd47ecbbdb841042e1370c8011e84634db0e4) Signed-off-by: Carmelo Amoroso commit 0590007b388006a3bfcf8d0929fe8591b9635424 Author: Yoshinori Sato Date: Sat Jan 16 19:14:29 2010 +0100 include unistd.h for smallint Signed-off-by: Yoshinori Sato Signed-off-by: Bernhard Reutner-Fischer (cherry picked from commit df9130a0dc1c9e3553fcfee68bb8a809e4f4a458) Signed-off-by: Carmelo Amoroso commit a45777479c8c2950aed0b0fe1ced74b6c4d45057 Author: Khem Raj Date: Tue Jan 12 17:51:32 2010 -0800 mips/nptl: Pass correct parameters to dl_find_hash when resolving TLS relocations. Make use of macros from sys/asm.h in crt1.S These two changes are needed for mips nptl to boot once again. Signed-off-by: Khem Raj (cherry picked from commit 9c343fd4030dcd7a52616f365893177dded50346) Signed-off-by: Carmelo Amoroso commit 2f00cfcfe5fd4e316f960fa0ef04ed458b281482 Author: Denys Vlasenko Date: Sat Jan 9 21:58:50 2010 +0100 ctime: do not use static struct tm buffer text data bss dec hex filename - 19 0 0 19 13 libc/misc/time/ctime.o + 25 0 0 25 19 libc/misc/time/ctime.o Signed-off-by: Denys Vlasenko (cherry picked from commit 957e238614326198452b53498ae98e546fce7366) Signed-off-by: Carmelo Amoroso commit 7bc8c9094fac7e827b5339dc75b12eb07143df3c Author: Austin Foxley Date: Sun Dec 27 12:13:52 2009 -0800 test/math: put scalbf test under susv3 legacy define Signed-off-by: Austin Foxley (cherry picked from commit e949d522a31db675889bc87b6023e7edb6b30caa) Signed-off-by: Carmelo Amoroso commit 43151dd167a2583760acec773b3c107be643843c Author: Hans-Christian Egtvedt Date: Wed Dec 16 13:16:08 2009 +0100 avr32: add varargs handling of prctl syscall prctl is defined to use varargs in the header file, hence it needs varargs specific handling in the source. This patch properly handles the variodic argument before the syscall is passed to the kernel for the AVR32 architecture. Signed-off-by: Hans-Christian Egtvedt commit 784e157fadbf1622d381e7dc9e82d2510a690776 Merge: 875d11e b2c9cb1 Author: Austin Foxley Date: Wed Dec 23 12:14:26 2009 -0800 Merge remote branch 'origin/master' into nptl Signed-off-by: Austin Foxley commit 875d11eec5df38bae0003df4a884ef962cf28590 Merge: f3217f9 2352828 Author: Austin Foxley Date: Sat Dec 19 14:02:14 2009 -0800 Merge commit 'origin/master' into nptl Conflicts: libc/signal/sigpause.c libc/string/x86_64/memset.S Signed-off-by: Austin Foxley commit f3217f9be3225c4943677d03b274cbc0cb4ed228 Author: Hans-Christian Egtvedt Date: Wed Dec 16 13:12:00 2009 +0100 check if USE_TLS is defined before use This patch will convert all the #ifdef USE_TLS and #if USE_TLS to #if defined(USE_TLS) && USE_TLS. By checking if the USE_TLS is defined before checking its value will result in correct behavior for architectures not defining this config symbol. Signed-off-by: Hans-Christian Egtvedt Acked-by: Carmelo AMOROSO commit 02a89fe640faeb77920643190bff29894e503d64 Author: Austin Foxley Date: Wed Dec 16 03:43:50 2009 -0800 x86_64: fix up the rest of the includes and aliases for nptl Signed-off-by: Austin Foxley commit 11cd655429ca1f7e8b3e851e489e51d5d19e0f78 Author: Austin Foxley Date: Wed Dec 16 03:05:38 2009 -0800 x86_64: add missing includes to sem_*.S Signed-off-by: Austin Foxley commit ab38c21ada116672ceed99e4f387dd93ac8e2dd2 Author: Carmelo Amoroso Date: Wed Dec 16 09:17:45 2009 +0100 libc: Add missing header for memset Silence compiler warning by adding the missing string.h header to include memset prototype. Do some code tidy-up removing commented out libc_hidden_proto macros in the meanwhile. Signed-off-by: Carmelo Amoroso commit ae030fbef45996424def8c4b0bb5cb1c26b5bd9d Author: Austin Foxley Date: Wed Dec 16 02:52:30 2009 -0800 fix multiple definitions of pthread_once for x86_64 also add a missing weak for clone Signed-off-by: Austin Foxley commit 23cfec40b3302fda307ca9faec2f1597b3d7aebb Author: Austin Foxley Date: Wed Dec 16 02:36:31 2009 -0800 fix compiling test cases in static mode Signed-off-by: Austin Foxley commit 1f6601af6749d593c856db67c260293b8209063c Author: Austin Foxley Date: Wed Dec 16 02:29:42 2009 -0800 x86_64: no waitpid syscall exists, so use wait4 Signed-off-by: Austin Foxley commit f0a5fcde1d6eac5b1994e70410b09eab6bd99057 Author: Carmelo Amoroso Date: Wed Dec 16 09:13:52 2009 +0100 build: Do not define -DPIC longer through build system 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 commit 5418c5ea2ab6a8e82421ebbf8060e52b5b1710a7 Author: Carmelo Amoroso Date: Wed Dec 16 08:48:08 2009 +0100 build: Get rids of PIC macro using compiler flag __PIC__ instead 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 commit fae10d41d1262170f272bb5e183becd44ff94f66 Merge: 2287f43 8cd420c Author: Austin Foxley Date: Tue Dec 15 19:19:39 2009 -0800 Merge remote branch 'origin/master' into nptl Signed-off-by: Austin Foxley commit 2287f4337d86dce4d907f136b3dc29c1956515ab Author: Natanael Copa Date: Tue Dec 15 12:37:34 2009 +0000 fix typo that sneaked in with 9a7506 Signed-off-by: Natanael Copa Signed-off-by: Carmelo Amoroso commit b3b9101a9c495f52c06cb2de27fcf45e6e5f0bf9 Author: Khem Raj Date: Fri Dec 11 09:40:05 2009 -0800 Include bits/libc-lock.h to get __libc_once_define Signed-off-by: Khem Raj Signed-off-by: Austin Foxley commit 51606aeedae0fee135662641a420b057b87ce412 Author: Austin Foxley Date: Fri Dec 11 10:10:40 2009 -0800 Go back to using nptl_arch_headers this is part of the revert of 641e7e36ad0a9 Signed-off-by: Austin Foxley commit 2726a5988973b0d73d01af9cfb58374de45ebb75 Author: Austin Foxley Date: Fri Dec 11 10:05:57 2009 -0800 Revert "nptl: make build depend directly on nptl headers" This reverts commit 641e7e36ad0a9b2899b04f256c5b243ada7da279. Signed-off-by: Austin Foxley commit 1c4f98663635995919a2fe7f9c4cbf630ae238d2 Author: Austin Foxley Date: Fri Dec 11 03:46:37 2009 -0800 get x86_64 nptl building Signed-off-by: Austin Foxley commit 5ea195692d4e18c3fe317bcc4428777d8adab3a3 Author: Austin Foxley Date: Fri Dec 11 00:51:06 2009 -0800 nptl: fix even more old style declarations Signed-off-by: Austin Foxley commit 1a3ad45bb56f144b78139966b9a618675c871bb5 Author: Austin Foxley Date: Wed Dec 9 18:10:53 2009 -0800 nptl: fix a few more old style declerations Signed-off-by: Austin Foxley commit 8ebd4b8855981462a03f5930a1f8d712c021190f Author: Austin Foxley Date: Wed Dec 9 16:53:57 2009 -0800 nptl: fix old style function declerations also fix a few shadowed local warnings Signed-off-by: Austin Foxley commit 641e7e36ad0a9b2899b04f256c5b243ada7da279 Author: Austin Foxley Date: Wed Dec 9 14:51:45 2009 -0800 nptl: make build depend directly on nptl headers 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 commit 9ec8f5fa5fdd2c00a45e906ed507f651727e2187 Author: Bernhard Reutner-Fischer Date: Wed Dec 9 21:12:37 2009 +0100 warn about old-style crap in extra-annoyance-mode Signed-off-by: Bernhard Reutner-Fischer commit 6ae3f8363f4ceac618c3b85a65e7c05e7c00076b Author: Filippo Arcidiacono Date: Wed Dec 9 16:24:46 2009 +0100 test_dlopen: Remove extra -lpthread from LD_FLAGS for dltest{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 Signed-off-by: Carmelo Amoroso commit 07626f0253be2ec7db861b3258ff02824d491ac6 Author: Austin Foxley Date: Fri Dec 4 14:32:10 2009 -0800 i386 nptl: add missing weak_alias for pthread_cond_signal Signed-off-by: Austin Foxley commit b3d31460fbf188997c7337296a61409529f7c974 Author: Carmelo Amoroso Date: Thu Dec 3 13:33:16 2009 +0100 ldso_tls: Refetch dtv from memory if THREAD_DTV has changed _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 Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit b93ab6041d56a5a19d8a97b69f6e3202fd11e859 Author: Carmelo Amoroso Date: Thu Dec 3 13:29:53 2009 +0100 test_tls: Add two new tests for tls tst-tls{16,17} taken from glibc Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit ac08946e0c09c25143d4cc49abdf0281bb81bd8d Author: Carmelo Amoroso Date: Thu Dec 3 13:07:54 2009 +0100 test_tls: Rename tst-tls16 to tst-tls-at-ctor 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 commit 247367948e9cb629126422ce2ea60c67c08bff70 Author: Carmelo Amoroso Date: Thu Dec 3 12:21:54 2009 +0100 build: Move test build flags in Makefile.in Move test build flags in Makefile.in Makefile should be used only as a container for other sub Makefiles Signed-off-by: Carmelo Amoroso commit 396e595ced83405be53f6794493c72da1e30b58f Author: Carmelo Amoroso Date: Thu Dec 3 08:06:10 2009 +0100 sh: Add a prototype for the gcc __set_fpscr internal function 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 Signed-off-by: Carmelo Amoroso commit b45dbc623ca090dea674c1fd1d8b6ccdddbcc71d Author: Austin Foxley Date: Mon Nov 30 20:43:56 2009 -0800 uClibc_ctype.h: fix inverted check for susv4 macro Was causing build failures if ctype tables were disabled and susv4 was on Signed-off-by: Austin Foxley commit 989500b616ca4cd3838184198ac90643fdb7f528 Author: Austin Foxley Date: Mon Nov 30 12:11:40 2009 -0800 getaddrinfo.c: include tls.h before resolv.h 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 commit c4d3237740d254390a7fecdd14410c7d80510642 Author: Austin Foxley Date: Sun Nov 29 20:59:41 2009 -0800 test/.gitignore: ignore a missed nptl test binary Signed-off-by: Austin Foxley commit 30e9248dbeaff87c15431e6e404ecd5e8b7c8796 Author: Austin Foxley Date: Sun Nov 29 20:54:10 2009 -0800 test/.gitignore: Ignore a few more test binaries Signed-off-by: Austin Foxley commit be56fe7569cff28a9003a5e5ca7f8ca17dfb1d90 Author: Austin Foxley Date: Sun Nov 29 20:48:59 2009 -0800 test/Rules.mak: disable -z,defs for now * 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 commit c77069f8cf411096ea633b567db77f90ca3ed761 Author: Austin Foxley Date: Sun Nov 29 20:18:05 2009 -0800 test/nptl: rework tst-tls3 to link with -z,now Signed-off-by: Austin Foxley commit 4d91ad3daa7260427e96ce1d6c62962795c9dbd5 Author: Austin Foxley Date: Sun Nov 29 19:37:13 2009 -0800 test/: compile fixes for nptl and tls tests * 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 commit 6b4b650e05b81134ec07ee19df82f22e7c845c12 Author: Austin Foxley Date: Sun Nov 29 18:23:20 2009 -0800 test/nptl: don't use c99 features if you don't need to Signed-off-by: Austin Foxley commit d9c7e6a19ea2c96080f3bf7de069acf87c9a8a5d Author: Austin Foxley Date: Sun Nov 29 18:08:17 2009 -0800 test: nptl and tls tests need main include dir Signed-off-by: Austin Foxley commit dc4af047fe943f6fce2a6a7ebc70aab819434e76 Author: Austin Foxley Date: Sun Nov 29 17:20:11 2009 -0800 test/dlopen: fix build for libtest.so needs -lpthread, recent addition of -z,defs and -z,now exposed this Signed-off-by: Austin Foxley commit b5ac6f44b0278f12018d61bed313a74ff691ef9b Author: Austin Foxley Date: Sun Nov 29 17:02:43 2009 -0800 test/dlopen: Match the function name that libtest actually sets Signed-off-by: Austin Foxley commit 5137b8964e8fa06ab11b3f65cfa52154d0e25b02 Author: Austin Foxley Date: Sun Nov 29 17:00:38 2009 -0800 test/pthread: fix build of cancellation-points test Signed-off-by: Austin Foxley commit ba84b6bf13f61fcbb3e3d292d1358a6cbddc439b Author: Austin Foxley Date: Sun Nov 29 16:49:11 2009 -0800 test/stat: fix compiling the memcmp-stat test when __USE_MISC is defined Signed-off-by: Austin Foxley commit 2218a91b0effd50e0d15f1c5ff90d503640bf842 Author: Austin Foxley Date: Sun Nov 29 16:18:49 2009 -0800 generate nptl headers without a recursive make call Signed-off-by: Austin Foxley commit 9a7506e8952851c5aea4471d02fd83c4ba334901 Author: Austin Foxley Date: Sun Nov 29 10:56:29 2009 -0800 don't use __i686 in symbol names as it seems gcc can define it Signed-off-by: Austin Foxley commit 8359f22a288236613e64f2b3e96ef6e2ac2de097 Merge: 5418ef6 8739ed0 Author: Austin Foxley Date: Sat Nov 28 22:00:53 2009 -0800 Merge remote branch 'origin/master' into nptl Signed-off-by: Austin Foxley commit 5418ef694ee17c698270702d927f04836706e60b Author: Timo Teräs Date: Fri Nov 27 16:12:44 2009 +0000 PIC fixes for hardened Signed-off-by: Timo Teräs Signed-off-by: Natanael Copa Signed-off-by: Austin Foxley commit 86d7dae85bcea17c5eb01a6f2416c7dde4dc7266 Author: Natanael Copa Date: Fri Nov 27 16:12:43 2009 +0000 define local stack_chk_guard for nptl Signed-off-by: Natanael Copa Signed-off-by: Austin Foxley commit 9ec568d46da86768787782a83e3351f350970d6e Author: Natanael Copa Date: Fri Nov 27 16:12:42 2009 +0000 ldso: initialize stack_chk_guard after TLS is initialized stack_chk_guard is on thread local storage so we need to init TLS before we can init stack_chk_guard. Signed-off-by: Natanael Copa Signed-off-by: Austin Foxley commit 9508808a1d7d8bf33b77273bb8187bd038bc2244 Merge: 5c9ef58 dbc5879 Author: Austin Foxley Date: Sun Nov 22 19:30:07 2009 -0800 Merge remote branch 'origin/master' into nptl_merge Signed-off-by: Austin Foxley commit 5c9ef58ec4bcb2def9e30f0b156f9cfcb1d0d163 Author: Austin Foxley Date: Sun Nov 22 12:17:38 2009 -0800 sh: Add new optimisation to the SH4 memcpy This optimization is based on prefetching and 64bit data transfer via FPU (only for the little endianess) 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: Austin Foxley Signed-off-by: Giuseppe Cavallaro Signed-off-by: Carmelo Amoroso commit f757db2d319ccc5f7034165046fb2bb58901afb1 Merge: 76c0c0e b71274e Author: Austin Foxley Date: Sun Nov 22 11:46:31 2009 -0800 Merge remote branch 'origin/master' into nptl_merge Conflicts: Rules.mak libc/misc/sysvipc/msgq.c test/Rules.mak Signed-off-by: Austin Foxley commit 76c0c0ed99f74b8a5965be6e1c6a0c0e7a72513c Author: Bernhard Reutner-Fischer Date: Wed Nov 18 16:56:49 2009 +0100 make tls and nptl test build Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit 268f276bcadfe4d1a715058fa4c6f9ec6c393580 Author: Bernhard Reutner-Fischer Date: Wed Nov 18 16:02:54 2009 +0100 Look at HAVE_SHARED We do not have UCLIBC_STATIC (anymore) but !HAVE_SHARED Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit bb8a3f00cfa3913c7f360f2fc601b9315cb5474a Author: Bernhard Reutner-Fischer Date: Fri Nov 13 13:11:00 2009 +0100 remove wait callbacks for non-cancelation funcs No need to install a cancellation handler, these are no cancellation point. Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit 675e3c0b3cf40a751c52fde3e7964e112d4dad70 Author: Bernhard Reutner-Fischer Date: Thu Nov 12 13:53:25 2009 +0100 include string.h for memset() This avoids a warnings about implicit declaration of function 'memset'. Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit b7ff0537cd0420d02c9db73753d8133a93c58d97 Author: Bernhard Reutner-Fischer Date: Tue Nov 17 20:48:43 2009 +0100 Makefile: fix indentation Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit e073021fda68d237c8c538f96d160cf32e8db882 Author: Bernhard Reutner-Fischer Date: Wed Oct 28 20:56:34 2009 +0100 Simplify kconfig wording of thread support Use a choice for thread support selection. Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit 3f5afa74a75b0cfd0e4d85c75939285b33499544 Author: Bernhard Reutner-Fischer Date: Wed Oct 28 20:49:18 2009 +0100 remove wrong default for choice Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit d27c76604827fb48f6f362aed1748011a864bc14 Author: Bernhard Reutner-Fischer Date: Wed Oct 28 20:12:54 2009 +0100 support selecting which locales to build Introduce UCLIBC_BUILD_MINIMAL_LOCALES and if selected build only those locales. Based on a patch by Bernhard Reutner-Fischer. Signed-off-by: Marc Andre Tanner Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit 5f7c95075b57adbb59a8aaec9c1965c0a0bc5ad6 Author: Bernhard Reutner-Fischer Date: Fri Oct 23 13:36:55 2009 +0200 remember some TODOs for 0.9.31 Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Austin Foxley commit 252e46814bd8a177aab622ddc52e068c0fd2e976 Author: Mike Frysinger Date: Thu Oct 22 09:01:03 2009 -0400 disable _POSIX_SPAWN define We don't provide spawn.h let alone any other spawn funcs/types, so don't set up the _POSIX_SPAWN define that some packages (like vlc) check. Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit cf8e59638eb099c2ee70e61b00be0cc5da257274 Author: Mike Frysinger Date: Thu Oct 22 01:17:46 2009 -0400 build with -fmerge-all-constants Glibc is already using this flag and it gives us a slight code shrink in a few functions. Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit e219bc7c1b3a82b1c35b61cf07217c084480f752 Author: Mike Frysinger Date: Thu Oct 22 01:12:47 2009 -0400 test/plt: add a script to find PLT usage Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit c7e4f11335adcdad03e24ad2648b873f116337aa Author: Mike Frysinger Date: Thu Oct 22 01:05:28 2009 -0400 libc: add hidden calls to pthread cleanup funcs A lot of libc code calls the pthread cleanup funcs implicitly (for stdio) which currently goes through the PLT. Since we already have forwarding symbols for these funcs, it's safe to declare the internal libc usage hidden as a loaded libpthread will have the real symbols found. Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit 1a39ca7231bd4c009c40255e7a20adbed3e31890 Author: Mike Frysinger Date: Thu Oct 22 01:04:07 2009 -0400 regex: call memcpy() ourselves Call the hidden memcpy() ourselves otherwise gcc will emit a call to the public memcpy() which goes through the PLT. Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit a30f9acb812f908cf33a13dd6ffe3cfe51e13a74 Author: Mike Frysinger Date: Thu Oct 22 00:43:19 2009 -0400 sysctl: avoid inline initialization Assign each field one by one rather than stack initialization as gcc will call memset() to zero out the rest of the structure -- which we don't care about as the field is unused and not seen outside of the libc. Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit 964d40c5d90598d70616fe54de934ddda39bdc2c Author: Mike Frysinger Date: Thu Oct 22 00:41:29 2009 -0400 inet_ntop4: avoid inline initialization We only need to set the first byte to 0, but gcc likes to zero out the rest of the string with memset() when using this initialization style. Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit 09f8e01cc53ee7c68819a8d626f12e39139ec7aa Author: Mike Frysinger Date: Thu Oct 22 00:39:59 2009 -0400 sparc: use fputs to write to stderr This also has the advantage of fputs() having a hidden alias while puts does not. Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit b7901759a9f18b16ca5fded40a588a583d2bb503 Author: Mike Frysinger Date: Thu Oct 22 00:39:44 2009 -0400 sparc: use HIDDEN_JUMPTARGET for errno Signed-off-by: Mike Frysinger Signed-off-by: Austin Foxley commit 75273b98a91c15baa032ce920ae9c44605769679 Author: Austin Foxley Date: Mon Nov 9 14:57:12 2009 -0800 make the sem_open changes actually compile __gen_tempname now needs to not be hidden so libpthread can get at it Signed-off-by: Austin Foxley commit 0d1e9a17751ad7aa4ff61f3ca1f775e05eed6b60 Author: Mikhail Gusarov Date: Sun Nov 8 02:33:16 2009 +0600 Unbreak sem_open when UCLIBC_SUSV3_LEGACY is not defined sem_open uses mktemp to create temporary file. Reimplement it using __gen_tmpname, removing ugly while(1) loop. As a side-effect remove the potential source of EAGAIN errors. Signed-off-by: Mikhail Gusarov Signed-off-by: Austin Foxley commit 8d74517c1619e3f688ad543717cee25d0b166a6e Author: Mikhail Gusarov Date: Sun Nov 8 02:33:15 2009 +0600 Extend __gen_tempname with mode argument sem_open(3) needs to create a temporary file in a way which can't be efficiently implemented in terms of POSIX API. Extend __gen_tempname with mode_t mode argument in order to ease sem_open implementation. Signed-off-by: Mikhail Gusarov Signed-off-by: Austin Foxley commit 45bc2bc53ddb15fb8df194240d232e09b6872b39 Author: Austin Foxley Date: Mon Nov 9 13:17:04 2009 -0800 Rules.mak fix typo (qstrup -> qstrip) Signed-off-by: Austin Foxley commit 39d69ba8cee285192ae64808e2151b5848fb649b Author: Austin Foxley Date: Tue Oct 20 13:19:35 2009 -0700 remove useless .gitignore Signed-off-by: Austin Foxley commit 0f3e8be7739934e920143682ff9d93c5d29e5de5 Author: Austin Foxley Date: Sat Oct 17 16:18:35 2009 -0700 whitespace fixes Signed-off-by: Austin Foxley commit d2b282faa6fef368680cf1cb96bad562f082ce03 Author: Austin Foxley Date: Sat Oct 17 14:47:18 2009 -0700 uClibc_main: add the needed support for nptl * setup memory for the cancellation buffer * remove unneeded weak's * deallocation of tsd on main thread exit Signed-off-by: Austin Foxley commit f026e23c40bd357f5dc4d21319b801c8cdc95a0a Author: Austin Foxley Date: Sat Oct 17 14:45:31 2009 -0700 Config.in: don't attempt to disable lt.old automatically, just have the user get it right Signed-off-by: Austin Foxley commit a202cf6f119f41532b60ad28bc48746b535fd34c Author: Austin Foxley Date: Sat Oct 17 14:42:01 2009 -0700 librt additions that are now possible with nptl * clock_getcpuclockid, clock_gettime, clock_nanosleep, mq_receive, mq_send, mq_timedreceive, mq_timedsend, _SC_MONOTONIC_CLOCK Signed-off-by: Austin Foxley commit 93e6d12ea06dc489cde0d96f78d623410703d33e Author: Austin Foxley Date: Sat Oct 17 14:36:17 2009 -0700 nptl provides sigaction and raise Signed-off-by: Austin Foxley commit 57e8823548ad6e65d33b2153edeb18fb0edc20e6 Author: Austin Foxley Date: Sat Oct 17 14:32:36 2009 -0700 cancellation support for a large amount of the required syscalls Signed-off-by: Austin Foxley commit 9a737ab7a40984cfdfffd014562a220a3736a10f Author: Austin Foxley Date: Sat Oct 17 14:25:01 2009 -0700 use *_not_cancel variants to avoid accidental cancellations with nptl Signed-off-by: Austin Foxley commit cfbc0081078b5a41895a2ad689627bf94eeacb43 Author: Austin Foxley Date: Sat Oct 17 13:37:52 2009 -0700 rework internal uClibc mutexes to support futex locking, and nptl Signed-off-by: Austin Foxley commit c94314fa618c682646c07ddd914a5abb77346273 Author: Austin Foxley Date: Sat Oct 17 13:28:17 2009 -0700 build system changes needed for nptl * add include dir for nptl * pregen nptl headers * add include dir to pick up subarchs * a few tweaks for test/* to match state of the code Signed-off-by: Austin Foxley commit e58798e107d652644629a1daaa95d76430808d53 Author: Austin Foxley Date: Sat Oct 17 13:23:11 2009 -0700 arm specific bits needed for nptl * SAVE_PID, RESTORE_PID in vfork.S * clone.S tweaks to allow for the pid to be reset Signed-off-by: Austin Foxley commit b04c2ba52317dab5b2e4172d2f8678b1025780d8 Author: Austin Foxley Date: Sat Oct 17 13:19:56 2009 -0700 i386 specific bit for nptl * RESET_PID support for clone.S * SAVE_PID, RESTORE_PID in vfork.S * fixup syscall assembly constraints to be a little less restrictive allows arbitrary variables to be used as the syscall nr Signed-off-by: Austin Foxley commit 6abc8f6c7c847291a9b20cb5b84e9a2dfe3b578a Author: Austin Foxley Date: Sat Oct 17 13:17:51 2009 -0700 mips specific bits needed for nptl * vfork impl with support for SAVE_PID, RESTORE_PID * sysdep.h assembly macros Signed-off-by: Austin Foxley commit 6ffcc881dc156e1c9c0bc4b153091b4760b584cb Author: Austin Foxley Date: Sat Oct 17 13:09:30 2009 -0700 sh specific bits needed for nptl * unified atomic.h compare and exchange macros * clone.S with RESET_PID support * sh specific versions of pread/pwrite with cancellation support * check SHARED instead of PIC Signed-off-by: Austin Foxley commit 843d561eba0c4856fc4465215d56c81b868dec14 Author: Austin Foxley Date: Sat Oct 17 13:05:04 2009 -0700 sparc specific bits needed for nptl * a tweaked clone.S with RESET_PID support * atomic.h with cmpxchg that works for v8 and beyond Signed-off-by: Austin Foxley commit 4a689f0b907d4a98582a9c4b7f6be811924db8ee Author: Austin Foxley Date: Sat Oct 17 12:59:14 2009 -0700 some tweaks under libc/ needed for nptl * updated kernel-features.h * system is provided by pt-system with nptl * _exit should do exit_group with nptl * tsd tls ptr in libc * rt_sigwaitinfo impl added Signed-off-by: Austin Foxley commit 8b7834d4008d10d8763d18b25580a4607a5e6607 Author: Austin Foxley Date: Sat Oct 17 12:39:59 2009 -0700 test/tls/: tests for thread local storage functionality Signed-off-by: Austin Foxley commit 75accc3bc3c164ac6063c384c98f0dfa7d489dcc Author: Austin Foxley Date: Sat Oct 17 12:39:06 2009 -0700 test/nptl/: tests for NPTL Signed-off-by: Austin Foxley commit a319d590551ff74bbc4de51243e2d5f20ac4c7fd Author: Austin Foxley Date: Sat Oct 17 12:32:38 2009 -0700 libpthread/nptl_db: debugging support for nptl Signed-off-by: Austin Foxley commit c68d0fa2d88fc2134a38d99e7e944828384a7671 Author: Austin Foxley Date: Sat Oct 17 12:26:24 2009 -0700 libpthread/nptl: core of the "Native Posix Threading Library" for uClibc targetting arm,sh,i386,mips,sparc for now Signed-off-by: Austin Foxley