commit aa877da81070cf97a6912c36d6f5bb473487d96a Author: Giuseppe Cavallaro Date: Mon Jul 13 17:45:09 2009 +0200 sh: Fix up optimized SH-4 memcpy on big endian. Signed-off-by: Hideo Saito Signed-off-by: Paul Mundt Signed-off-by: Giuseppe Cavallaro See Linux Kernel commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e08b954c9a140f2062649faec72514eb505f18c3 Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit 239d2e28ba1bb8e2160e10f6e7c8ebcd701490aa Author: Joseph Myers Date: Tue Jul 14 15:52:27 2009 +0000 Fix ARM syscall argument loading. This patch is a uClibc equivalent of , to compute all syscall arguments on ARM in temporary variables before loading them into register variables. The principle is as for that glibc patch; the problem I actually observed was a GCC internal compiler error building ld.so for Thumb-2. Signed-off-by: Joseph Myers Signed-off-by: Bernhard Reutner-Fischer commit a50074061b1445c678248b07bd34dc55b264e182 Author: Bernhard Reutner-Fischer Date: Sat Dec 19 03:45:34 2009 +0100 semtimedop: silence warning Signed-off-by: Bernhard Reutner-Fischer commit 0aa968c23670a49de8b94858a2bd77a5e4baf193 Author: Bernhard Reutner-Fischer Date: Fri Nov 20 19:38:53 2009 +0100 make test-skeleton C89 compliant Signed-off-by: Bernhard Reutner-Fischer commit 7405c46c1d89ab1162d19c0902a08ef7d1b47547 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: Bernhard Reutner-Fischer commit a8314922fb0c4bc7b331bfb8be97ac2488c010a6 Author: Mike Frysinger Date: Thu Oct 15 19:34:04 2009 -0400 sparc qops: unify & shrink We don't really need to know the exact symbol that caused a failure as long as we know where to start looking. So unify the duplicate code between all funcs and between the sparc variants. This gives us a nice code shrink of ~95%. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 38dcba96af08c05f91608017fda1b5f54b0307c3 Author: Mike Frysinger Date: Thu Aug 13 07:49:07 2009 -0400 daemon: fix up INTERNAL_SYSCALL() usage Make sure we declare the error properly in case a port uses it, and fix the invocation of exit(). Since clone() will be returning a pid, assume that the value will not have the MSB set (negative) to simplify the error test a bit more. If gcc supports it, force this function to always be heavily optimized in a bid to avoid stack usage as much as possible. Signed-off-by: James Coleman Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit c3b9093409d9d7eade3ccefa6b61cac5985cb8af Author: Andrew Stubbs Date: Tue Sep 15 18:02:48 2009 -0400 sh/user.h: clean up conflicts from kernel user.h This patch makes sufficient modifications to the SH sys/user.h to be able to build and run gdbserver with Linux kernel 2.6.30. The problem is that both the kernel and library headers define the same symbols, thus making it impossible in include both headers. The patch undefines the kernel symbols in favour of the library symbols. Signed-off-by: Andrew Stubbs Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit ce42a3bf1849aa5b25920d5343f83e6963c74d02 Author: Bernhard Reutner-Fischer Date: Sat Dec 19 02:07:09 2009 +0100 tweak getdents && LFS && __WORDSIZE==64 Signed-off-by: Bernhard Reutner-Fischer commit c7138026b726c70a10951ea5f10dfeefbb08156f Author: Giuseppe Cavallaro Date: Mon Dec 14 16:45:49 2009 +0100 sh: fix endianess and optimise the SH4 memcpy This patch fixes the big-endian code and adds a new optimization only for little endian mode. This optimization is based on prefetching and 64bit data transfer via FPU. Tests shows that ---------------------------------------- Memory bandwidth | Gain | sh4-300 | sh4-200 ---------------------------------------- 512 bytes to 16KiB | ~20% | ~25% from 32KiB to 16MiB | ~190% | ~5% ---------------------------------------- Signed-off-by: Giuseppe Cavallaro Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit 815b20190f58731ba4e6144a844fa3652c4870ac 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 Acked-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit dbfac4a0c55a4342040775780edb91656809beee Author: Bernhard Reutner-Fischer Date: Wed Nov 25 15:39:36 2009 +0100 ether_*() depend on socket or IP support Signed-off-by: Bernhard Reutner-Fischer commit c32d558c7e4aec1039af0977d66790c80cc045ff Author: Mike Frysinger Date: Sat Dec 19 01:44:55 2009 +0100 install shared libs with +x perms Signed-off-by: Bernhard Reutner-Fischer commit c6bc5d80d924fb8739dbe0098e2c351920058fcd Author: Peter S. Mazinger Date: Sat Oct 17 04:17:57 2009 +0200 limits.h: update Should we care about compilers not defining __LONG_LONG_MAX__? Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer commit b36f9cdde7e4fc909399727cfdf728a806c26bae Author: Peter S. Mazinger Date: Sat Oct 17 03:36:43 2009 +0200 msgrcv is of type ssize_t Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer commit 6389acece7867747f8f4a3c9e895d3994f452faf Author: Peter S. Mazinger Date: Sat Oct 17 03:31:36 2009 +0200 use __BYTE_ORDER and __*ENDIAN Those without the __ prefix are BSD specific. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer commit 8fd180bca753c0dc9ae196276149bd1daea859fc Author: Peter S. Mazinger Date: Sat Oct 17 01:40:34 2009 +0200 inet.h: mark inet_ntoa_r as uClibc specific Disable some prototypes of unimplemented funcs. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer commit 841be99c49f5503f371ecfd693bfbd2d21751cd2 Author: Peter S. Mazinger Date: Sat Oct 17 00:41:08 2009 +0200 FORCE_SHAREABLE_TEXT_SEGMENTS requires DOPIC Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer commit eb0379fe4dadc2a6076e5cb446b3766efada1781 Author: Bernhard Reutner-Fischer Date: Sun Nov 15 19:30:00 2009 +0100 ldso: Add missing newlines to some debug messages Signed-off-by: Bernhard Reutner-Fischer commit c9beaa1fd3d9c737e575c339abac219ae2d2aefc 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: Bernhard Reutner-Fischer commit 9fba128064075335d59d8c943b127fedcd4d6abd 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: Bernhard Reutner-Fischer commit 495e96fb831fad0e740d8e0d307779303bc2ba50 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: Bernhard Reutner-Fischer commit 61982f97efc05e6efaa94771a65028688d59219f 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: Bernhard Reutner-Fischer commit 539087f27edeec7b7fd6e4b4888dcd17937067dd 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: Bernhard Reutner-Fischer commit a1a470ace2a008b5fb195f74c674a920c647e25b Author: Bernhard Reutner-Fischer Date: Sat Dec 19 01:25:56 2009 +0100 Add missing order-only prereq for unifdef commit e021a598505d2040f7084cb3e2177d938364dc9f Author: Bernhard Reutner-Fischer Date: Thu Nov 26 18:52:29 2009 +0100 try to probe if stat.t_mtim.tv_nsec is available Do not treat tv_nsec mismatches as errors on filesystems without support for it. Signed-off-by: Bernhard Reutner-Fischer commit 9a3a4e7e07285e1105476ea54217311a3c7b21a2 Author: Bernhard Reutner-Fischer Date: Mon Nov 23 09:43:58 2009 +0100 futimens: Document why we need manual hidden_proto Also, remove unneeded __need_timespec (It cuts off a tiny bit of work for CPP but is of course not strictly needed). Signed-off-by: Bernhard Reutner-Fischer commit d16a040ddc577d111dee655d1f804f4f0d26244f Author: Bernhard Reutner-Fischer Date: Fri Nov 20 20:05:07 2009 +0100 futimens: add function Signed-off-by: Bernhard Reutner-Fischer commit 23d529bfbe118a52dfc6941bd4b737a688a8ee8b Author: Mike Frysinger Date: Fri Nov 27 14:41:18 2009 +0000 add hidden aliases for openat funcs openat64() uses openat(), so we need hidden aliases for it. Signed-off-by: Mike Frysinger (cherry picked from commit fc0cc43885c69b3029d5783f3ce65ff53f8defe5) Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit 8920867dc606acb422def62f69ffc78aac6a12c8 Author: Mike Frysinger Date: Fri Nov 27 14:41:17 2009 +0000 first pass at implementing *at funcs Tested basic functionality with coreutils and things seem to work. At least gives us a basis to jump from. Signed-off-by: Mike Frysinger Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit e4adfdc4128c5909adeefecdaf870e30172922a9 Author: Bernhard Reutner-Fischer Date: Wed Nov 18 13:24:07 2009 +0100 _Exit(): add weak alias to _exit() for C99 Signed-off-by: Bernhard Reutner-Fischer commit 52c7e959d846a1bc214d4a2775f240dfd6a0b410 Author: Khem Raj Date: Sat Aug 1 00:57:05 2009 -0700 fnmatch.c: Include unistd.h before undefining _LIBC. Signed-off-by: Khem Raj commit a76cdd022ae2bcdb0f03be19c2ce7526ea90b282 Author: Bernhard Reutner-Fischer Date: Wed Oct 28 19:54:26 2009 +0100 reinstate g++-3.4.x hack for locales Signed-off-by: Bernhard Reutner-Fischer commit ee86a2b38fa5e4baaa28e696022dbfc193914e31 Author: Bernhard Reutner-Fischer Date: Wed Oct 28 19:53:42 2009 +0100 use _LIBC rather than UCLIBC_INTERNAL Signed-off-by: Bernhard Reutner-Fischer commit 700df0c7e4f30dfeff07acd57a545564988f361f Author: Bernhard Reutner-Fischer Date: Mon Oct 19 11:46:41 2009 +0200 Revert "Make wcsxfrm visible also when LOCALE support is disabled." This reverts commit d75809641fbe777fb073874072edfd83f5fb47b4. For WCHAR && !LOCALE the visible __wcslcpy is aliased to wcsxfrm (which is consequently also visible). Signed-off-by: Bernhard Reutner-Fischer commit 436b17852422faf65fd170d3bdfdb2a5fac44e42 Author: Bernhard Reutner-Fischer Date: Fri Oct 16 11:41:34 2009 +0200 handle {,install_}{,host}utils Signed-off-by: Bernhard Reutner-Fischer commit 37685cdc6ea92b5c78411053d3dd09a4c8f6e0ad Author: Mike Frysinger Date: Thu Oct 15 19:47:12 2009 -0400 malloc: handle size overflows in realloc() The malloc() code checks the incoming size to make sure the header adjustment doesn't cause overflow in the size storage. Add the same check to realloc() to catch stupid stuff like realloc(..., -1). Reported-by: James Coleman Signed-off-by: Mike Frysinger commit 34bd7c617704c0388c60d0f7991f63fae8ea7939 Author: Mike Frysinger Date: Thu Oct 15 17:35:33 2009 -0400 ldso: define MAP_FAILED for everyone This fixes build errors where common code has started using MAP_FAILED. Signed-off-by: Mike Frysinger commit 0b57f4f64cdf103b426b11dffad22b4ee7a81d1f Author: Joseph Myers Date: Wed Oct 14 14:13:34 2009 +0000 Fix SH bits/kernel_types.h for new kernel headers. Recent SH kernel headers merge 32-bit and 64-bit headers, changing the include guards on asm/posix_types.h in the process; update uClibc code depending on those include guards. Signed-off-by: Joseph Myers commit b667c9efcd8e6d9b38afff42dc7031e4788267ca Author: Bernhard Reutner-Fischer Date: Wed Oct 14 13:47:26 2009 +0200 pull utils from master Signed-off-by: Bernhard Reutner-Fischer commit 8f5553b24e1070f977e4c5401923871d2699337b Author: Bernhard Reutner-Fischer Date: Wed Oct 14 13:34:36 2009 +0200 pull elf.h from master Signed-off-by: Bernhard Reutner-Fischer commit b9f41d66380794d74060e56c3034224e6215a7ac Author: Bernhard Reutner-Fischer Date: Wed Oct 14 13:33:59 2009 +0200 pull .gitignore from master Signed-off-by: Bernhard Reutner-Fischer commit 7e6d1242c06b62dbf895cd3b550c11f169dbc0f8 Author: Bernhard Reutner-Fischer Date: Mon Oct 12 19:43:18 2009 +0200 reflect SCM change Signed-off-by: Bernhard Reutner-Fischer commit 46236a2dc288434d426168cb38ebdecd4f549b02 Author: Mike Frysinger Date: Wed Oct 7 22:46:10 2009 -0400 fcntl.h: drop unused/dead O_STREAMING Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 4257e75fb11a07d4bef23ac18a65f656604e1d80 Author: Mike Frysinger Date: Wed Oct 7 22:24:22 2009 -0400 ldso: use MAP_FAILED with ld.so.cache Rather than use our own custom casted -1 value, just use the MAP_FAILED that common code already sets up for us for mmap(). Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 626af91e650d2cb46c25fcc54f5d8f0e40f012b5 Author: Austin Foxley Date: Mon Oct 5 11:01:30 2009 -0700 sparc: add stubs for more of the _Q* ops Thanks to Jason Woodward Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit 8a8f54d115989be17aa77926341f08992c3ed65d Author: Bernhard Reutner-Fischer Date: Mon Oct 5 13:04:12 2009 +0200 descriptive error message Signed-off-by: Bernhard Reutner-Fischer commit 9304be6446f4a62ba57cb219aeec97cdc0f98b5f Author: Daniel Jacobowitz Date: Fri Sep 25 18:48:39 2009 -0400 mips: do not save variables in "hi" or "lo" across system calls The kernel does not save these registers across system calls. GCC 4.4 has gotten more aggressive about using them for temporary variables, so this shows up as intermittent crashes if you use a recent compiler. Signed-off-by: Daniel Jacobowitz Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 3b697550b61e453dce69f12548e69d1d72910b89 Author: Austin Foxley Date: Fri Sep 25 12:55:30 2009 -0700 sparc specific bits/socket.h use socketcall for sparc32 since it does not have the individual socket syscalls Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit d6cb64236d86f4f314e22ceb5cce6a3ef9512d76 Author: Bernhard Reutner-Fischer Date: Mon Oct 12 18:13:02 2009 +0200 sparc sigaction(): pull from master sparc sigaction.c: fix the noted bugs by syncing up with glibc Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit 6e9e4352372f5b3c100e062557ef08bd97cd95b6 Author: Bernhard Reutner-Fischer Date: Thu Sep 17 10:34:22 2009 +0200 always define float_t as float Signed-off-by: Bernhard Reutner-Fischer commit d895509725173cd17d375050204a0246f690ddb5 Author: Mike Frysinger Date: Tue Sep 15 18:07:29 2009 -0400 sys/mount.h: sync with latest glibc Newer glibc adds a few more MNT_* flags, so import them. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit fbedd3ec525936243e0f1634f84c835b22f2f3f0 Author: Mike Frysinger Date: Thu Aug 13 07:48:55 2009 -0400 setup attribute_optimize which comes with gcc-4.4+ Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit ef8ad5cd3e5f70977dd8e6e60bfa7dfc9f22c6a5 Author: Denys Vlasenko Date: Sun Sep 6 21:48:16 2009 +0200 wordexp.c: fix a bug where we might close stdout Signed-off-by: Denys Vlasenko Signed-off-by: Bernhard Reutner-Fischer commit 77ee5b304e2964a2e3b98122dc9d7cab4e04e622 Author: Khem Raj Date: Sun Aug 30 11:42:28 2009 -0700 Build posix_fadvice{64} only when UCLIBC_HAS_ADVANCED_REALTIME is set. Right now for ARM, MIPS, Xtensa and powerpc posix_fadvise routines are included conditionally. They should only be enabled when UCLIBC_HAS_ADVANCED_REALTIME is set. Also fix code style in powerpc/posix_fadvise64.c Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer commit a79c4169bb8df20337e09dd7465bfb68dccc7aab Author: Khem Raj Date: Sun Aug 30 01:07:37 2009 -0700 Add posix_fadvise{64}.c routines to Makefile.arch Fix the argument types to operate on long and correct a typo. Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer commit e609c5c8960072f9c8d354b602f9b357f90ea20b Author: Khem Raj Date: Sun Aug 30 00:30:02 2009 -0700 Add posix_fadvise and posix_fadvise64 for powerpc The syscall is having different number of params and in one case the parameters are passed in differently. This patch add powerpc specific versions of these functions. Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer commit 80e4d53d11f26eae030f81590eecbd8cbf3b9a4e Author: Joseph Myers Date: Tue Aug 4 15:45:53 2009 +0000 Fix daemon build for no-MMU no-threads. CLONE_VM (used in no-MMU daemon) is defined in . A build with threads ends up including via via ; this indirect include does not happen for a build without threads, so this patch adds a direct include. Signed-off-by: Joseph Myers Signed-off-by: Bernhard Reutner-Fischer commit 67d5f8c3910040f2717c92eca9f99fdb4592c1e3 Author: Carmelo Amoroso Date: Thu Jul 30 14:21:20 2009 +0200 test_librt: Fix shmtest.c test case Fix wrong use of sizeof (array) to retrieve the number of elements; it was causing accessing beyond the array's boundaries. Below the output of the testcase showing an attempt to read beyond the array (actually 11 elements in size). root@amorosoc:/home/carmelo# ./shmtest Compare memory error : Offset 11, local 4262624, shm 224 Compare memory error : Offset 12, local 693493828, shm 68 Compare memory error : Offset 13, local 693489168, shm 16 Compare memory error : Offset 14, local 693826444, shm 20 ..... Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit e71fd9b2137bcfca173b8dda5c02c10c9626a7f1 Author: Carmelo Amoroso Date: Thu Jul 30 11:38:26 2009 +0200 test_librt: Fix build system for shm_open/unlink tests Fix and align build system of librt tests to the test suite. Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit 3cbe26094f9e6c5b9ed435e1254bf592c3cf35b2 Author: Carmelo Amoroso Date: Wed Jul 29 18:50:58 2009 +0200 build: Include Makefile.commonarch from common Makefile.in Avoid including akefile.commonarch in each Makefile.arch. Include it instead from Makefile.in just after the arch specific Makefile.arch Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit a32144a17c9bf45d9f7e98caa210408f2d194091 Author: Mike Frysinger Date: Sun Jul 26 15:23:32 2009 -0400 add missing UTIME_* defines for *at funcs I always forget that many arches have their own bits/stat.h ... Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 35a5b86ad1d7b806cdea6cbf0d1101d16ad3dd25 Author: Mike Frysinger Date: Sun Jul 26 15:17:21 2009 -0400 enable nanosecond stat support for everyone Fill out the stat structure so that the nanosecond resolution support is always available. There is a small code size increase for a few ports (three additional assignments in xstatconv), but otherwise everything should remain the same. While we're here, punt __old_kernel_stat from the few headers that still define it as it is unused in uClibc and causes compile errors after these nanosecond changes. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 77874af4f8ecad5ff5b27af1a38e2f5e664c9b2a Author: Mike Frysinger Date: Sun Jul 26 14:31:24 2009 -0400 do not force LFS for Blackfin systems Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 3e5bbb7ac2ff9d9a683da5aa3b4f4dc01ab31d92 Author: Mike Frysinger Date: Sun Jul 26 14:25:08 2009 -0400 enable sbrk() for everyone The sbrk() function can be used to merely query sizes and for that, no-mmu works the same as mmu. It can also sometimes increase data segments on no-mmu systems provided the trailing memory is free. So, there is no real reason to exclude this function for no-mmu ports. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit ce1a3f316aa93abc757bbf82f392db1b8b8332ed Author: Mike Frysinger Date: Sun Jul 26 13:37:07 2009 -0400 add missing UTIME_* defines for *at funcs Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 30eb2bc14566d7041b6bd3f2ea08d45631065728 Author: Mike Frysinger Date: Thu Jul 23 05:38:44 2009 -0400 Blackfin: rename __dl_boot to __start The entry symbol is __start rather than __dl_boot. While in the past this was silently ignored, now with common code checking the _start symbol in C code, we end up with link errors: ldso/ldso/ld-uClibc_so.a(ldso.oS): In function `__dl_get_ready_to_run': ldso/ldso/ldso.c:(.text+0x2b30): undefined reference to `__start' collect2: ld returned 1 exit status make[1]: *** [lib/ld-uClibc.so] Error 1 Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 0a90f894821a90b079e8244fede2031f293f749c Author: Denys Vlasenko Date: Thu Jul 23 13:42:37 2009 +0200 test/librt: make it build again Signed-off-by: Denys Vlasenko Signed-off-by: Bernhard Reutner-Fischer commit f5789ad9a00cdb4722ef9d17b24ed08bc8f985b1 Author: Mike Frysinger Date: Thu Jul 23 05:27:24 2009 -0400 fix dl_iterate_phdr() for FDPIC systems The dlpi_addr isn't a simple Elf_Addr type for FDPIC systems, so we can't just assign 0 to it to initialize. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit c78a9ae3b84de80048bf332c3695a1eee3120dcd Author: Mike Frysinger Date: Thu Jul 23 05:02:41 2009 -0400 Blackfin: fix incorrect attribute order The order of attributes in a function definition matters and in a few places in the Blackfin code, it was being applied to the return type instead of the function itself. In file included from ldso/ldso/ldso.c:43: ldso/ldso/bfin/elfinterp.c: At top level: ldso/ldso/bfin/elfinterp.c:42: warning: '__visibility__' attribute ignored on non-class types In file included from ldso/ldso/bfin/elfinterp.c:341, from ldso/ldso/ldso.c:43: libc/sysdeps/linux/bfin/crtreloc.c: At top level: libc/sysdeps/linux/bfin/crtreloc.c:91: warning: 'visibility' attribute ignored on non-class types Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit d6d6d6c6aa3aed667f5e843c50be53e0087b68d5 Author: Mike Frysinger Date: Thu Jul 23 05:01:14 2009 -0400 Blackfin: add elf_machine_load_address() stub The Blackfin port never defined elf_machine_load_address() because the one place this code is called never matters to us. But without it, common code likes to hit a build failure, so stub it out. ldso/ldso/dl-startup.c: In function '_dl_start': ldso/ldso/dl-startup.c:170: warning: implicit declaration of function 'elf_machine_load_address' Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit fa60283dfc68f787f5cd02729f4470fd70166a5e Author: Mike Frysinger Date: Thu Jul 23 04:58:56 2009 -0400 ldso: fix building for FDPIC systems The force shareable code missed a spot of using the DL_RELOC_ADDR() indirection thus leading to invalid operands: ldso/ldso/ldso.c: In function '_dl_get_ready_to_run': ldso/ldso/ldso.c:409: error: invalid operands to binary + (have 'Elf32_Addr' and 'struct elf32_fdpic_loadaddr') Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 430a820016233f58bf2f9f816c0f7276b7cd1219 Author: Mike Frysinger Date: Thu Jul 23 04:47:12 2009 -0400 silence warnings in Blackfin ldso code In file included from ./ldso/include/ldso.h:135, from ldso/ldso/ldso.c:34: ./ldso/ldso/bfin/dl-inlines.h: In function '__dl_init_loadaddr_map': ./ldso/ldso/bfin/dl-inlines.h:43: warning: assignment makes pointer from integer without a cast In file included from ldso/ldso/ldso.c:43: ldso/ldso/bfin/elfinterp.c: In function '_dl_do_lazy_reloc': ldso/ldso/bfin/elfinterp.c:299: warning: assignment makes pointer from integer without a cast ldso/ldso/ldso.c: In function '_dl_get_ready_to_run': ldso/ldso/ldso.c:534: warning: assignment makes integer from pointer without a cast Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 5dcbff5645db50d43778fc348004306751eddad8 Author: Jie Zhang Date: Tue Sep 2 07:16:44 2008 +0000 Blackfin: add support for automatic loading of L2 SRAM regions These match the kernel/etc... pieces already merged. Signed-off-by: Jie Zhang Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit fcc846923de35b9df6854b3f172d68c20cd2f030 Author: Jie Zhang Date: Thu Mar 12 07:15:33 2009 +0000 Blackfin: no need to load P5 for shared FLAT The register is already loaded for us upon entry by the kernel. Signed-off-by: Jie Zhang Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit fb5f9d215490c639d36257d6610589e3e80a78b7 Author: Jie Zhang Date: Sun Mar 4 04:08:47 2007 +0000 Blackfin: fix generation of Scrt1.o for FDPIC Signed-off-by: Jie Zhang Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 305338b30108ea7ac91b45aaf35ad206b30cb118 Author: Mike Frysinger Date: Wed Jul 22 12:51:54 2009 -0400 Blackfin: unify FDPIC/FLAT versions of clone Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 5c7f9b252b2da317d8b3eb38038e0ddbd5f068dc Author: Mike Frysinger Date: Tue Jul 21 23:33:57 2009 -0400 linuxthreads.old: fix crash in debug code If pthread_join() is called and there is nothing to join, then the debug code will attempt to dereference a NULL pointer. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 416d6bbbb8835202a802fcf1600df77b7264dc13 Author: Khem Raj Date: Mon Jul 20 13:41:28 2009 -0700 It fixes the following warnings seen on mips build. libc/sysdeps/linux/mips/clone.S: Assembler messages: libc/sysdeps/linux/mips/clone.S:122: Warning: No .frame pseudo-op used in PIC code libc/sysdeps/linux/mips/clone.S:75: Warning: Pretending global symbol used as branch target is local. libc/sysdeps/linux/mips/crt1.S: Assembler messages: libc/sysdeps/linux/mips/crt1.S:134: Warning: No .cprestore pseudo-op used in PIC code Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer commit aa4b81faa695d911bc7ccbd5e0d1d8db535afa77 Author: Mike Frysinger Date: Mon Jul 20 16:37:30 2009 -0400 avr32/microblaze/vax: punt local byteswap.h These arches are generic C implementations of the byteswap functions, so rather than keep a useless local copy, use the common C one. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit f0bb162ddda00885174d21c12d6940461c206e41 Author: Mike Frysinger Date: Mon Jul 20 15:22:33 2009 -0400 some ports define ENOTSUP A port or two (like hppa) does define ENOTSUP, so don't assume that everyone needs this fallback define. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit c6f459959fcb7c517021a2d1b3343ca6dfce40fd Author: Mike Frysinger Date: Mon Jul 20 14:57:24 2009 -0400 linuxthreads.old: extend workaround for asm rename warnings The libc_pthread_init.c needs the include workaround like forward.c, and forward.c needs more includes now. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit b409a6d7848153260ab94c80157c83ac3c13db76 Author: Mike Frysinger Date: Mon Jul 20 14:05:44 2009 -0400 fix building for systems w/out ldso support If an arch (like alpha and others) have no ldso support at all, then there is no point in attempting to walk loaded modules in the dl-* helper funcs. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 92ff2294ff09df63ff1875f6db0bafde48c32aa8 Author: Mike Frysinger Date: Mon Jul 20 13:54:41 2009 -0400 alpha: fix building with no asm/elf.h The latest sanitized linux kernel headers no longer export asm/elf.h, so do not rely on it anymore. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 24c31bf81fc772f187a4d8912dc0e0d83cb6807c Author: Mike Frysinger Date: Mon Jul 20 13:52:26 2009 -0400 fdatasync: handle latest alpha syscalls The latest alpha Linux kernel defines __NR_fdatasync like everyone else and deprecates the older __NR_osf_fdatasync, so support that setup. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit be524926992d44bceca2823d4e8a398bec97ad2c Author: Mike Frysinger Date: Mon Jul 20 13:50:48 2009 -0400 alpha/sigprocmask: fix implicit memset() prototype Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 6d75820cf21bbf08687c6cea8cdcc436660bab03 Author: Mike Frysinger Date: Wed Jul 15 10:35:41 2009 -0400 use -EB/-EL for all targets These are common linker options rather than target specific ones, so they should be safe to use for all targets. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 417204ac7ed31dbc212cad067f9eea391a829e8d Author: Austin Foxley Date: Mon Jul 6 10:12:11 2009 -0700 sparc: Update syscalls.h to define INTERNAL_SYSCALL Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit 52901872220f3e301f25f73705a9296fbcfd2750 Author: Bernhard Reutner-Fischer Date: Mon Oct 12 17:48:32 2009 +0200 use -isystem with gcc paths Use -isystem to include gcc header paths rather than -I as these are system paths, not uClibc specific paths. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit f7c5ccb84452671a6e3104a894303b346123f345 Author: Ingo van Lil Date: Thu Jun 4 14:33:34 2009 +0200 i386: store errno value before using __set_errno() The __syscall_error() function stores the errno value in the edx register before invoking the __set_errno() macro. When using the pthread library this macro calls thread_self() to determine the errno location, which might clobber the edx register. The errno value must be stored in a "real" variable so the compiler can take care of saving/restoring it if necessary. Signed-off-by: Ingo van Lil Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 9fa8d8f7c0a51499c82f1ae719afed6d23c13a96 Author: Mike Frysinger Date: Fri Jul 3 15:16:00 2009 -0400 ignore generated unifdef Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 07f466f4a4857e711c22f3fbcea93363a5adc7c5 Author: Mike Frysinger Date: Fri Jul 3 00:43:23 2009 -0400 uClibc_arch_features: sync defines between ports Make sure each arch has the same complete list to make comparing between them easier. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 15c8ae9a828aebd9ffede30ba5f6e7d5dc7db01b Author: Bernhard Reutner-Fischer Date: Fri Jul 3 00:20:19 2009 +0200 add testcases for shm_{open,unlink} Reported-by: Mikael Lund Jepsen Signed-off-by: Bernhard Reutner-Fischer commit d07b0ffce73e0218195f48ce62bde52a4ede25c6 Author: Carmelo Amoroso Date: Thu Jul 2 11:02:13 2009 +0200 sh: add cacheflush syscall wrapper Signed-off-by: Giuseppe Cavallaro Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit 04ddfe0f15283ea61f046ee99b5f4b7d479c8c5f Author: Joseph Myers Date: Wed Jul 1 14:37:15 2009 +0000 Correct ARM memcpy comments. The comments on register usage in ARM memcpy had dest and src the wrong way round; this patch (originally from Mark Shinwell) corrects this and adds a note on the return value. Signed-off-by: Joseph Myers Signed-off-by: Bernhard Reutner-Fischer commit 81167fece02f326053a7aa596d9febf6736b20ec Author: Joseph Myers Date: Tue Jun 30 21:20:26 2009 +0000 Fix Thumb-2 setjmp. Many Thumb-2 instructions cannot use sp or pc as operands, and the assembler now diagnoses these. setjmp had one such instruction, movs; this patch changes it to mov. Signed-off-by: Joseph Myers Signed-off-by: Bernhard Reutner-Fischer commit cd493c3acac188d4dfe63cf96b28fdbe4ad6159f Author: Joseph Myers Date: Tue Jun 30 21:16:56 2009 +0000 Fix Thumb-2 memcpy. When an IT block was changed from having two instructions to having one, the IT instruction at the start of the block was not updated, causing memcpy to fail to assemble for Thumb-2; this patch makes the obvious fix. Signed-off-by: Joseph Myers Signed-off-by: Bernhard Reutner-Fischer commit 64e4df8f474e2f74cc4318e30a484e436a504c2f Author: Joseph Myers Date: Sun Jun 28 23:48:09 2009 +0000 Add missing CLIBABI variables __aeabi_stdin, __aeabi_stdout, __aeabi_stderr. The ARM EABI has a document CLIBABI specifying various __aeabi_* functions and variables to be provided for the use of portable objects that can be linked with different EABI-conforming C libraries. __aeabi_stdin, __aeabi_stdout and __aeabi_stderr were missing in uClibc; this patch (originally from Nathan Froyd and for glibc) adds them. Signed-off-by: Joseph Myers Signed-off-by: Bernhard Reutner-Fischer commit 9966f4d96abeade57f1eccd3d0281aa03de0df1c Author: Mike Frysinger Date: Sun Jun 28 14:43:01 2009 -0400 locale: gen_wc8bit: try to find UTF8 locale automatically Rather than require everyone to have en_US.UTF-8 when we really need any UTF8 locale, do a scan for possible UTF8 locales if the default en_US does not exist. Hopefully this should make the utility "just work" for most people. Reported-by: Daniel Cordero Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 8dd7be29bf1876da3ebb888cf8600d5f45f7e1d4 Author: André Goddard Rosa Date: Tue Jun 2 09:36:28 2009 -0300 wchar: fix inverted parameters in error message The error message should output "fromcode -> tocode" rather than "tocode -> fromcode". Seems to be a typo due to the order of the func called: iconv_t iconv_open(const char *tocode, const char *fromcode); Signed-off-by: André Goddard Rosa Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit d144b7c22c6949636a0569c7ab9bac22bc8c87e7 Author: Steve Bennett Date: Sun Jun 28 13:16:42 2009 -0400 libc.so: include all output formats in linker script Rather than ripping out the default output format from the linker, include the big/little endian alternatives for the people who link with bi-endian toolchains. URL: http://lists.uclibc.org/pipermail/uclibc/2009-June/042595.html Signed-off-by: Steve Bennett Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 17b9a22620679cd64810718a73217126730c14f5 Author: Bernhard Reutner-Fischer Date: Tue Jun 2 17:58:58 2009 +0200 include errno.h unconditionally Signed-off-by: Bernhard Reutner-Fischer commit 731835278731287a6dbedb510746cf902a8f4fcf Author: Bernhard Reutner-Fischer Date: Tue Jun 2 16:53:24 2009 +0200 add stub for shm_open() and shm_unlink Untested and needs testsuite exercise added Signed-off-by: Bernhard Reutner-Fischer commit 566f1c7dbe9b88472f028bd2e4722db609d239f6 Author: Mike Frysinger Date: Mon Jun 1 20:27:45 2009 -0400 Blackfin: make sure all relocs are uppercase This is to match changes in the toolchain. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit e6949aa13ee6f1fed099422cf8f9705a50301e2f Author: Bernhard Reutner-Fischer Date: Mon Oct 12 17:20:39 2009 +0200 pull waitid from master waitid: linux ABI takes 5 args, not 4 The POSIX waitid() takes 4 args, but the Linux one takes 5 args, so make sure we stuff the 5th arg with a NULL. Otherwise garbage gets randomly passed up and considering this is a pointer, that's baaaad. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit dcbe3513cc7947a10e4aba2c0251cd8bae6e3331 Author: Austin Foxley Date: Tue May 26 15:35:16 2009 -0700 Add working pipe implementation for sparc Also get rid of warning in sparc sigaction Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit c27828ace4de6cb5ec590281e581acce340cf5b2 Author: Austin Foxley Date: Thu May 21 13:53:53 2009 -0700 fix compilation of linuxthreads for sparc64 Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit 63cc00c3e9d43301f60c4a902262f59400f984c3 Author: Austin Foxley Date: Wed May 20 18:05:24 2009 -0700 Add a sigaction implementation for sparc Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit 50466666d8fc3d055caf924f452b58b76756c5bf Author: Carmelo Amoroso Date: Tue May 5 19:07:03 2009 +0200 Add position independent code for crt1.S. This will generate a Scrt1.o that is linked to executabled when compiled as PIE code (position independent executable) without requiring relocation in .text section (not allowed on uclibc/sh4). Signed-off-by: Peter Griffin Signed-off-by: Filippo Arcidiacono Signed-off-by: Bernhard Reutner-Fischer commit 043cbef0a234bcf2b7bc9a542fe97fc66ce8b3b1 Author: Peter Griffin Date: Wed Apr 29 11:04:00 2009 +0100 sh: Fix FPU config option Change to UCLIBC_HAS_FPU because UCLIBC_HAS_FLOATS can be used with UCLIBC_HAS_SOFT_FLOAT option. Signed-off-by: Bernhard Reutner-Fischer commit fd23c5a237c466e935727d0ac406c7396ca1b866 Author: austinf Date: Mon Apr 27 22:47:49 2009 +0000 patch from Joseph S. Meyers This patch merges 2006-06-23 Paul Eggert [BZ #2841] * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U', since C99 requires the result to promote to 'int' when uint_least8_t and uint_least16_t promote to 'int'. from glibc to fix a bug in uClibc's stdint.h (GCC's testsuite will now detect this problem, along with various others some systems have in their stdint.h headers.) Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit b16bcf0ca70442bee9a718c842bfe10f22fdb250 Author: Denis Vlasenko Date: Sun Apr 19 00:51:04 2009 +0000 Reinstate {drm,mtd,rdma,sound,video} directory installtion pending some explanation from gurus. Expanded comment explaining _why_ we try to install these exact directories. Signed-off-by: Bernhard Reutner-Fischer commit b88d232008ad92690fff598d81734ef6df5e96df Author: Denis Vlasenko Date: Sat Apr 18 23:45:13 2009 +0000 install_kernel_headers: comment out copying of extra directories, this seem to be not needed Signed-off-by: Bernhard Reutner-Fischer commit d755276ed25623feeb593dc3c0f34c3e52983efd Author: Mike Frysinger Date: Mon Apr 13 00:06:40 2009 +0000 make sure to block all signals when calling daemon() to prevent delivery while the parent is sharing the stack Signed-off-by: Bernhard Reutner-Fischer commit ee41951009c758a81adf492b3866a3f0f9fa453f Author: austinf Date: Sat Apr 11 19:30:04 2009 +0000 for sparc v8 MAGIC1 was defined incorrectly Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit 3ed020019c3906904b99533d5722a9b52fa2bd01 Author: austinf Date: Sat Apr 11 00:08:47 2009 +0000 sparc also needs CONSTANT_STRING_GOT_FIXUP for doing debug printing in ldso Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit 279f3bd8bbe6a898fa36c47336b40f5894d7b3a5 Author: Bernhard Reutner-Fischer Date: Thu Apr 9 17:48:17 2009 +0000 - fix typo Signed-off-by: Bernhard Reutner-Fischer commit fbf4d35c25f11466a7c3235cd9883c3c4631517f Author: Khem Raj Date: Thu Apr 9 08:45:24 2009 +0000 Fix the ifdef logic broken by last commit for !defined (__mcoldfire__) Signed-off-by: Bernhard Reutner-Fischer commit 9974db095b31a2dbef231c0437c0a7ea1d46dfd8 Author: Khem Raj Date: Thu Apr 9 07:38:04 2009 +0000 The attached patches fixes the problems found bringing up uclibc on coldfire M5485 processor 1. Disable mmap2() if we're compiling for coldfire and fall back to mmap(). It seems to map a different file area on a 2.6.25 linux kernel. 2. Uses pc-relative addresing[1], computes ADDR_ALIGN, PAGE_ALIGN and OFFSET_ALIGN relatively to _dl_pagesize[3]. On coldfire/M5485 _dl_pagesize is 0x2000. Signed-off-by: Groleo Marius Signed-off-by: Bernhard Reutner-Fischer commit ade3d86f30f5f087ed3da1290d4cbb6168d00fcf Author: Mike Frysinger Date: Tue Apr 7 05:52:48 2009 +0000 implement daemon() using clone() on no-mmu systems as suggested by Jamie Lokier Signed-off-by: Bernhard Reutner-Fischer commit 3586f1c0ce94e766f0fc8d665fa76f8902e23773 Author: Rob Landley Date: Fri Mar 27 04:03:20 2009 +0000 32/64 bit sparc got unified in 2.6.29 the way x86/x86_64 did in 2.6.28. The new guard symbol is "__SPARC_POSIX_TYPES_H". Signed-off-by: Bernhard Reutner-Fischer commit a7cd0cf2a31493506795528125a1d87428b67374 Author: Bernhard Reutner-Fischer Date: Wed Mar 25 20:28:19 2009 +0000 - Add strtouq alias (to strtoul) for 64bit The strtouq alias was only available on 32bit, breaking compilation of stuff using strtouq on 64bit machines. At the same time use the correct return type (u_quad_t). Signed-of-by: Peter Korsgaard Signed-off-by: Bernhard Reutner-Fischer commit 87c4fa605d3d182ddee42388f87b23d3e874eb29 Author: austinf Date: Wed Mar 18 23:05:54 2009 +0000 fix compilation of linuxthreads for sparc add myself to MAINTAINERS for sparc Signed-off-by: Bernhard Reutner-Fischer commit 8349fa44752836762b8d273a696cb5096a576cee Author: Carmelo Amoroso Date: Mon Mar 16 13:33:27 2009 +0000 Added string.h header for strerr prototype. Signed-off-by: Bernhard Reutner-Fischer commit acdf23812c54af6953d81dd0d1e8e27a0d6c128c Author: Mike Frysinger Date: Mon Mar 16 06:16:15 2009 +0000 enable mprotect() regardless of MMU as some systems have MPUs which allows memory protection Signed-off-by: Bernhard Reutner-Fischer commit 46515ddd531698f7effb98550f1afa49de4c188a Author: Mike Frysinger Date: Mon Mar 16 06:14:34 2009 +0000 import user.h from the kernel as it is no longer exported by the kernel Signed-off-by: Bernhard Reutner-Fischer commit 2c6a316db4ce6909c555e9a6403a428b7083406c Author: Mike Frysinger Date: Sat Mar 14 11:30:56 2009 +0000 default linux-2.4 module support to off for Blackfin targets Signed-off-by: Bernhard Reutner-Fischer commit cf2c68fe4c421f15116fe8731f4323300f02c012 Author: Mike Frysinger Date: Sat Mar 14 11:23:28 2009 +0000 force DOPIC for FDPIC ELF targets Signed-off-by: Bernhard Reutner-Fischer commit b29e90d81dead918ee0e5e63fdc39ba2e921ad03 Author: Mike Frysinger Date: Fri Mar 13 06:17:48 2009 +0000 add GNU extension for select timeouts where the sub-second field is actually longer than one second Signed-off-by: Bernhard Reutner-Fischer commit 721ad11a13423115831da863fb5c5bbd0f340adb Author: Denis Vlasenko Date: Thu Mar 12 23:04:19 2009 +0000 add linuxthreads support for arm. By Will Newton (will.newton AT gmail.com) Signed-off-by: Bernhard Reutner-Fischer commit e816ba79e66583216ac5d971e3a0c82e23fcb1db Author: Denis Vlasenko Date: Thu Mar 12 20:56:59 2009 +0000 linuxthreads fixes from Will Newton (will.newton AT gmail.com): * share Sys V semaphores in order to get appropriate SEM_UNDO semantics. * correct guardaddr in pthread_free() for TLS case * move spinlock unlocking before restart() * When exit was called from a signal handler, the restart from the manager processing the exit request instead restarted the thread in pthread_cond_timedwait. (see http://sources.redhat.com/ml/libc-ports/2006-05/msg00000.html) Signed-off-by: Bernhard Reutner-Fischer commit fc9dcfc133028f581b7d10fb574e7d376d222b6b Author: Carmelo Amoroso Date: Thu Mar 5 13:08:35 2009 +0000 Make long double support available for sh too. Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit 745e79b9574561fd90f6d2cfd89e6b5cc17939fe Author: Denis Vlasenko Date: Mon Mar 2 21:10:01 2009 +0000 Add EPOLLRDHUP constant Signed-off-by: Bernhard Reutner-Fischer commit d118802f51ad99b2b45c00d41a4187694f74563a Author: Carmelo Amoroso Date: Mon Feb 23 07:00:33 2009 +0000 Use gcc built-in defines for detecting SH cores instead of uclibc config option macros (aligning SH to all other archs). Changes applied as below: __CONFIG_SH4__ -> __SH4__ __CONFIG_SH2__ -> __sh2__ __CONFIG_SH2A__ -> __SH2A__ Note: pay attention to capital letters Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit fcd752070f2b0f54399128700b3a83b536c109b2 Author: Bernhard Reutner-Fischer Date: Fri Feb 13 13:29:29 2009 +0000 - fix fallout from r24140 and r24160 for !CTYPE_TABLES Signed-off-by: Bernhard Reutner-Fischer commit 67082dd1cfdca75c927937fab617fbb3b1656d9e Author: Denis Vlasenko Date: Wed Feb 11 17:32:39 2009 +0000 add comment why do we need _ISbit() macro Signed-off-by: Bernhard Reutner-Fischer commit d8a9cc5b95993901632a91302dbb5d0738169d8a Author: Mike Frysinger Date: Tue Feb 10 04:10:34 2009 +0000 include more info in error messages so we have a better idea where things are failing Signed-off-by: Bernhard Reutner-Fischer commit b86dbcfb0c285a5346bd64ac58b9f728fe083648 Author: Mike Frysinger Date: Tue Feb 10 00:02:19 2009 +0000 do not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windows, etc...) Signed-off-by: Bernhard Reutner-Fischer commit e0680f94be32996cca7375cf9aeb895353351795 Author: Mike Frysinger Date: Mon Feb 9 23:42:23 2009 +0000 allow people to run the hostutils targets without having a .config file Signed-off-by: Bernhard Reutner-Fischer commit ad6455cbfc2ed9f15ebb90613b7574ffb743f454 Author: Carmelo Amoroso Date: Wed Jan 28 13:36:43 2009 +0000 Remove check for the relocation type check in the resolver, from all archs. Signed-off-by: Jiri Olsa Signed-off-by: Bernhard Reutner-Fischer commit 27546e42ef567d7df944675973d9ebfc46805ffe Author: Bernhard Reutner-Fischer Date: Thu Jan 22 08:49:56 2009 +0000 - make sure __user is defined when including kernel's sigcontext.h Signed-off-by: Bernhard Reutner-Fischer commit 2d79ccb36d3a10df3a2c963d0e37e260310e112d Author: Carmelo Amoroso Date: Wed Jan 14 14:28:48 2009 +0000 libm_sh: fix libm build for sh Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit 6bd9c78c706a2945762cd9b92b8245e16f70545d Author: Denis Vlasenko Date: Sat Jan 3 15:05:20 2009 +0000 Get rid of the following annoying warnings on ppc: warning: nested extern declaration of '__illegally_sized_syscall_argN' From Stefan Assmann (sassmann AT suse.de) Signed-off-by: Bernhard Reutner-Fischer commit 26959289b89f4e6cba56742bd9b2221f137af194 Author: Bernhard Reutner-Fischer Date: Mon Dec 22 19:01:38 2008 +0000 - remove leftover from r13277 Signed-off-by: Bernhard Reutner-Fischer commit b8699226dcaa402e57ca46fd5b26a7aaa5fdca04 Author: Bernhard Reutner-Fischer Date: Mon Dec 22 18:17:37 2008 +0000 - fix for !GETOPT_LONG Signed-off-by: Bernhard Reutner-Fischer commit d6b4e62dc25b375b1400889dd14ac045f2c441c9 Author: Bernhard Reutner-Fischer Date: Mon Dec 22 09:58:25 2008 +0000 - non-pic support for MIPS (Catherine Moore, clm at codesourcery com) Signed-off-by: Bernhard Reutner-Fischer commit d091a891404cabad23fc2e94b43895934527faf1 Author: Bernhard Reutner-Fischer Date: Wed Dec 17 16:01:39 2008 +0000 - provide INTERNAL_SYSCALL for ia64 (Stefan Assmann, sassmann at suse de) Signed-off-by: Bernhard Reutner-Fischer commit f291b1e0979163e233fe1ec48db7f29895c25df2 Author: Bernhard Reutner-Fischer Date: Tue Dec 16 15:40:15 2008 +0000 - emulate unavailable syscall getpgrp on e.g. ia64 (Stefan Assmann) Signed-off-by: Bernhard Reutner-Fischer commit 9f40de3e46dc8d45255b71fb351962e1ff02d79f Author: Bernhard Reutner-Fischer Date: Tue Dec 16 13:55:57 2008 +0000 - install utils into the proper directories Signed-off-by: Bernhard Reutner-Fischer commit a307183723bdafba8e3aad25fc0c215c5c3bf05b Author: Denis Vlasenko Date: Sat Dec 13 12:43:23 2008 +0000 Do not install libc-XXXX.h files in "make install". glibc does not have them, so should be safe. Signed-off-by: Bernhard Reutner-Fischer commit 2793883eba9338b7270e3d3dd7a1f4ba6430c909 Author: Carmelo Amoroso Date: Thu Dec 11 14:45:14 2008 +0000 Move kernel-features.h header from the linuxthread directory to a common one (libc/sysdeps/linux/common/bits) so that any function can access to supported kernel feature (i.e. getdents). Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit bfa8b59b05106d169a270fd1022f608792f5cce9 Author: Mike Frysinger Date: Thu Dec 11 10:04:41 2008 +0000 add inlines for Blackfin atomic functions Signed-off-by: Bernhard Reutner-Fischer commit 4cb9668f15d2a8767534cd1bd4156b0cb38c497c Author: Mike Frysinger Date: Thu Dec 11 10:03:47 2008 +0000 Blackfin: add L2_SRAM flag for alloc func Signed-off-by: Bernhard Reutner-Fischer commit cb3ff8c119c1fda271489be8a9d25b54983ca43a Author: Mike Frysinger Date: Thu Dec 11 10:02:54 2008 +0000 Blackfin: declare {INLINE,INTERNAL}_SYSCALL() and friends Signed-off-by: Bernhard Reutner-Fischer commit 1346691865cff55e7cca774da3c83fbf306deb42 Author: Mike Frysinger Date: Thu Dec 11 10:02:20 2008 +0000 add ENDPROC() macro for Blackfin assembly Signed-off-by: Bernhard Reutner-Fischer commit d879639aaa53549cdb6d01868cc72fca2a3047f6 Author: Mike Frysinger Date: Thu Dec 11 10:01:31 2008 +0000 use newer spiffy asm constraints to get better code generation Signed-off-by: Bernhard Reutner-Fischer commit a55782c5542adaf77cfaef861f44a9ce0d37f5c1 Author: Mike Frysinger Date: Thu Dec 11 09:58:24 2008 +0000 punt old unused header Signed-off-by: Bernhard Reutner-Fischer commit 6b4b6e8e2091ffa2eea48bb8f2d46b3f1632e52d Author: Mike Frysinger Date: Thu Dec 11 09:50:47 2008 +0000 update ptrace.h to latest from glibc Signed-off-by: Bernhard Reutner-Fischer commit 6de44cc897da1d0b8969b4e8f2cd57571040a290 Author: Bernhard Reutner-Fischer Date: Wed Dec 10 09:09:07 2008 +0000 - document environment variables used by the install_* targets. See their config helptexts for further detail. Signed-off-by: Bernhard Reutner-Fischer commit 199974840a71b83b97de2b0f053750b76db1dafe Author: Rob Landley Date: Wed Dec 10 00:29:29 2008 +0000 Remove hardwired usr/ from install_utils (that's what $RUNTIME_PREFIX is for) and add install_hostutils. Now install_utils should use $PREFIX more like other packages do. Signed-off-by: Bernhard Reutner-Fischer commit 9ca8309fd629f81853a438baac6b263e221466fe Author: Bernhard Reutner-Fischer Date: Tue Dec 9 09:11:02 2008 +0000 - improve documentation of utils and hostutils Signed-off-by: Bernhard Reutner-Fischer commit b2a35dc116e4d3a4e8da819df66aafefcbf9f8a9 Author: Rob Landley Date: Tue Dec 9 08:02:02 2008 +0000 Mention make utils, hostutils, install_utils. Signed-off-by: Bernhard Reutner-Fischer commit da0086364552562be23aaa089dd3952bb86ca0c5 Author: Carmelo Amoroso Date: Thu Dec 4 14:30:50 2008 +0000 Go deeper while cleaning string directory to remove TARGET_SUBARCH implementation too. Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit b158ae83fb0f9f4732cc6f02568a80d2da1912cd Author: Bernhard Reutner-Fischer Date: Wed Dec 3 19:43:01 2008 +0000 - use proper macros Signed-off-by: Bernhard Reutner-Fischer commit e80ae6ba7fba3cdc16e47a6071ceec6e7599b9b2 Author: Bernhard Reutner-Fischer Date: Wed Dec 3 19:41:55 2008 +0000 - use proper macro (no obj-code changes) Signed-off-by: Bernhard Reutner-Fischer commit ca27bb466a74a806def61a538673978c0e9346e3 Author: Bernhard Reutner-Fischer Date: Wed Dec 3 19:40:55 2008 +0000 - Use runtime pagesize (Jeremy Kerr) Some powerpc machines can support 64k pages, enabled by the CONFIG_64K_PAGES option in linux. However, the uClibc dynamic loader won't currently work on these machines, as it uses hard-coded values (PAGE_ALIGN, ADDR_ALIGN and OFFS_ALIGN) in the ldso architecture-specific headers. When running on a kernel with 64k pages, ld.so tries to mmap with 4k-aligned addresses, rather than 64k, so mmap fails with -EINVAL. When booting a 64k machine with a uClibc dynamic linker, init fails with: /init:500: can't map '/lib/libc.so.0' /init:500: can't map '/lib/libc.so.0' /init:500: can't map '/lib/libc.so.0' /init: can't load library 'libc.so.0' Kernel panic - not syncing: Attempted to kill init! This change allows ld.so determine these alignment masks at runtime, rather than compile-time. Since we have the _dl_pagesize variable available, we can use that to generate the appropriate masks. Since almost all of the architectures can use the common definitions for the _ALIGN macros, we can consolidate them all in ldso.h, and override in the sysdep headers where necessary (ie, mips). This allows me to start a uClibc-based root fs on a 64k machine. Signed-off-by: Jeremy Kerr Signed-off-by: Bernhard Reutner-Fischer commit b3b129eb1b3e26e0977957edbdf5a0c96230371c Author: Carmelo Amoroso Date: Thu Nov 27 14:52:15 2008 +0000 Make __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ visible in case the arch supports this feature. SH4 will use this in some aseembly files for the NPTL implementation. Add now safely on trunk. Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit d30429d9432f883364ebb6f84951cc18d0474b3b Author: Carmelo Amoroso Date: Wed Nov 26 15:12:16 2008 +0000 This patch fixes locale-mbwc test failures when __UCLIBC_HAS_LOCALE__ is disabled and __UCLIBC_HAS_WCHAR__ is enabled. The only locale available when __UCLIBC_HAS_LOCALE__ is disabled is the C locale, the others locale are skipped. Signed-off-by: Filippo Arcidiacono Signed-off-by: Bernhard Reutner-Fischer commit b8b8c1665139a3545d7bad8efc705ede61b992f8 Author: Bernhard Reutner-Fischer Date: Tue Nov 25 16:27:07 2008 +0000 - remove some bloat that was added in r23660 and subsequent r23698. The sbrk lock is only needed for LT.old Signed-off-by: Bernhard Reutner-Fischer commit d75809641fbe777fb073874072edfd83f5fb47b4 Author: Carmelo Amoroso Date: Tue Nov 25 14:37:24 2008 +0000 Make wcsxfrm visible also when LOCALE support is disabled. Signed-off-by: Filippo Arcidiacono Signed-off-by: Bernhard Reutner-Fischer commit a1272994dda44b82992376868fcff439662b2aa9 Author: Denis Vlasenko Date: Sat Nov 22 01:07:44 2008 +0000 fix "make utils" build failure in ldconfig (undefined reference to 'getopt') Signed-off-by: Bernhard Reutner-Fischer commit 78226652d0e2eab5d51463a7aebde6a2145596b7 Author: Denis Vlasenko Date: Fri Nov 21 11:50:13 2008 +0000 fix "make install" with relative PREFIX Signed-off-by: Bernhard Reutner-Fischer commit 36e1983c9aecff6fefbae30dc4e24fd4d949047d Author: Rob Landley Date: Fri Nov 14 22:12:11 2008 +0000 Current kernels support more than 8 bit major/minor. Pass dev_t through to the kernel unmolested. Signed-off-by: Bernhard Reutner-Fischer commit 78316e239e6e11960d2f54a2ce3c798972040cb6 Author: Bernhard Reutner-Fischer Date: Mon Oct 12 18:24:08 2009 +0200 getopt: add missing hidden_proto Signed-off-by: Bernhard Reutner-Fischer commit 27a28684fa518d92af24266eadc5d2efcc152104 Author: Bernhard Reutner-Fischer Date: Sat Aug 1 16:32:42 2009 +0200 pull unifdef from master patch up to fa6b1e952629879dd715730637ffa3b45eb83285 Signed-off-by: Bernhard Reutner-Fischer commit 072a946920f8c322eacae4ebdea820870f8b6fb0 Author: Denis Vlasenko Date: Wed Jan 28 23:42:01 2009 +0000 fix ppoll. we forgot to pass 5th parameter to the syscall Signed-off-by: Denis Vlasenko Signed-off-by: Mike Frysinger commit 65119bba48b4ec904e81e99b701c8388afdb09a0 Author: Bernhard Reutner-Fischer Date: Mon Apr 27 20:07:23 2009 +0000 - getaddrinfo: runp->ifa_addr indeed can be NULL, don't dereference it - ifaddrs.c: cosmetics, no code changes (Both r24336 from trunk) commit 43d920900b2e285729cc8fdf9f9fad600aabb3b9 Author: Bernhard Reutner-Fischer Date: Wed Mar 25 19:26:54 2009 +0000 - do not pass -Wl with -shared in LDFLAGS_NOSTRIP (Peter S. Mazinger) commit aa148d76e87a63863808529a6687d053adc5a46d Author: Bernhard Reutner-Fischer Date: Thu Mar 12 16:51:53 2009 +0000 honour NO_LONG_DOUBLE_MATH This fixes compilation errors on hosts that turn off long double support for C99 like powerpc32. commit f12e73b50c47896faf4498a5085f9bfbd828a1c3 Author: Bernhard Reutner-Fischer Date: Thu Mar 5 17:18:44 2009 +0000 - Use __always_inline instead of __inline__ (r25540 from trunk) commit 909d78a26a2f0e182b6b0d31e4a99c632709d38a Author: Bernhard Reutner-Fischer Date: Mon Mar 2 21:12:05 2009 +0000 - bump version