commit 8c0b2c2886479b39cb345491fc0fa279d6d4b4bb Author: Bernhard Reutner-Fischer Date: Wed Feb 1 22:21:04 2012 +0100 Release 0.9.33 Signed-off-by: Bernhard Reutner-Fischer commit 7c721d31e4b7a0bdf6f803b8e7c38996bf60b59f Author: Bernhard Reutner-Fischer Date: Sun Jan 29 17:48:54 2012 +0100 tmpnam, tempnam are obsolete in SUSV4 Signed-off-by: Bernhard Reutner-Fischer commit fba639dcdcc2f3fede71e8bcd1a1a525a7f57d61 Author: Bernhard Reutner-Fischer Date: Sun Jan 29 15:46:50 2012 +0100 handle signal-OBXSI.SUSv4.syms A couple of sig functions are obsolete in SUSv4. Signed-off-by: Bernhard Reutner-Fischer commit 29962e14a1144ec4f9cfac8ab8a51af2b5692317 Author: Bernhard Reutner-Fischer Date: Sun Jan 29 15:21:38 2012 +0100 nptl_db: handle SUSv4-OB pthread_getconcurrency / pthread_setconcurrency is OBSOLETE in SUSv4 so disable pthread debug support too Signed-off-by: Bernhard Reutner-Fischer commit 46aa707fc50415e90b0860258f4f5d78b7b96a7b Author: Bernhard Reutner-Fischer Date: Sun Jan 29 15:10:01 2012 +0100 test: ignore undefined symbols for API Signed-off-by: Bernhard Reutner-Fischer commit 4891374bc3b29fc9e46f223aedf4c78e72c654e4 Author: Bernhard Reutner-Fischer Date: Sun Jan 29 15:09:34 2012 +0100 config: ftw is SUSv4-obsolete Signed-off-by: Bernhard Reutner-Fischer commit 31f48281ed551634b3c2cfcfcde81ca6e208e5f9 Author: Bernhard Reutner-Fischer Date: Sat Jan 28 21:57:49 2012 +0100 *: if !HAS_THREADS strong alias sigaction Signed-off-by: Bernhard Reutner-Fischer commit 83ce0cc4d5e93549f0a9447a9bd6b051f5f1b62f Author: Bernhard Reutner-Fischer Date: Sat Jan 28 20:53:19 2012 +0100 buildsys: fixup sigaction handling Signed-off-by: Bernhard Reutner-Fischer commit 219aa9c2dd24ea8b8f5c418d85865a0b30ff3fc9 Author: Carmelo Amoroso Date: Fri Jan 27 13:35:57 2012 +0100 libubacktrace:arm: libgcc_eh.a not needed Dummy symbol is __aeabi_unwind_cpp_pr is part of uclibc_shared.a Signed-off-by: Carmelo Amoroso commit eeacc7777ed180905a9f3fb2570a4b0d4d24ab73 Author: Bernhard Reutner-Fischer Date: Fri Jan 27 13:19:05 2012 +0100 ldso: fix typo in debug message Signed-off-by: Bernhard Reutner-Fischer commit 7f02033e13b1633d83403664749c1daf0ab98840 Author: Bernhard Reutner-Fischer Date: Fri Jan 27 12:46:14 2012 +0100 buildsys: add cppcheck wrapper script (correct one) Also incooperate vapier's suggestion on how to set REAL_CC once Signed-off-by: Bernhard Reutner-Fischer commit b80b28ee6fdf073e6baf9b893b3ecef9904a2e48 Author: Carmelo Amoroso Date: Mon Sep 19 15:58:53 2011 +0200 libc_arm: avoid multiple version of __aeabi_unwind_cpp_pr dummy code Do not pollute libraries with its own implementation of __aeabi_unwind_cpp_pr1 code. Just add it to uclibc_nonshared.a archive and share it. This fixes build issue with static linking of application due to multiple symbol definition in libgcc_eh-a and libpthread.a or librt.a Signed-off-by: Carmelo Amoroso commit 80576869e1edf4f8dfb45eadf70a802938587f34 Author: Bernhard Reutner-Fischer Date: Thu Jan 26 17:00:05 2012 +0100 buildsys: use single slash version of -print-whatever The double slash variants are not documented (doc bug?) so better use the single slash variants like we usually do. Signed-off-by: Bernhard Reutner-Fischer commit 775e77bf2c31307f1a1397573b7ea2f10f85f74a Author: Bernhard Reutner-Fischer Date: Thu Jan 26 15:26:47 2012 +0100 buildsys: turn off forced EXTRA_WARNINGS on i386 Signed-off-by: Bernhard Reutner-Fischer commit 549fa53225910f5341092d6647a1e3dd705b605f Author: Bernhard Reutner-Fischer Date: Thu Jan 26 15:15:23 2012 +0100 *: silence some warnings warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] Signed-off-by: Bernhard Reutner-Fischer commit ba48da4e3c8aa2478f30f7e3b745f3a355ed9442 Author: Bernhard Reutner-Fischer Date: Thu Jan 19 15:05:43 2012 +0100 syscall: flag ia64 syscall error path as unlikely Signed-off-by: Bernhard Reutner-Fischer commit c72d608a9eaa4d05a32f7d91be21841bc617f84b Author: Bernhard Reutner-Fischer Date: Thu Jan 19 15:04:40 2012 +0100 arm: tweak comment harmless copy'n paste error Signed-off-by: Bernhard Reutner-Fischer commit eb72efd81e0d5be6c836c5a084cc65b9734f544d Author: Richard Braun Date: Tue Jan 17 10:33:10 2012 +0100 libc: fix signal handling in system() When built without NPTL support (or for a sparc target), the system() function doesn't conform to its specification. Namely, it uses signal() to install/save/restore signal handlers, which may break applications using custom handlers installed with sigaction(). In addition, it resets the SIGCHLD handler to SIG_DFL instead of blocking the signal, which may result in "lost" signals if a custom handler was installed. Fix system() by replacing uses of signal() with appropriate calls to sigaction() and sigprocmask(). Signed-off-by: Richard Braun Signed-off-by: Mike Frysinger commit 3837739512e6029786d4e70be658fde8172c3829 Author: Carmelo Amoroso Date: Thu Jan 19 15:28:15 2012 +0100 ldso/mips: fix symbol lookup for JUMP_SLOT and COPY relocations Fill properly the sym_ref fields when invoking _dl_find_hash to lookup symbols Signed-off-by: Carmelo Amoroso Signed-off-by: Khem Raj commit 99d28cc0860e240357c02483f0c4016a6b30aad0 Author: Carmelo Amoroso Date: Tue Jan 17 18:23:43 2012 +0100 libdl: fix dlclose handling of symbol scope Defer removal of the local scope of a dl-opened library after all the destructors (of itself and related dependencies) are actually get unloaded, otherwise any function registered via atexit() won't be resolved. Signed-off-by: Carmelo Amoroso Signed-off-by: Khem Raj Signed-off-by: Filippo Arcidiacono commit b18b4210a84f87f7155683d73a0ab924c34fa3f2 Author: Khem Raj Date: Sat Jan 21 06:02:00 2012 -0800 Rules: Check for CROSS_COMPILE to be empty In some case where CROSS is defined to be empty we define CROSS_COMPILE ?= CROSS so at this point it will be defined but will be empty so check for the same Signed-off-by: Khem Raj commit a0d7a4587584b1c217183d7f17a2d55ab44aaf3a Author: Khem Raj Date: Sat Jan 21 05:59:49 2012 -0800 libubacktrace: Add arm implementation Arm has a different mechanism of getting _Unwind_GetIP. Therefore we provide arch specific backtrace file. Signed-off-by: Khem Raj commit bee3ea0f5a8d2cc2cfaeebdc4ef65f2d6b30b749 Author: Khem Raj Date: Sat Jan 21 00:21:41 2012 -0800 mips/libdl: Apply relocations after appending the new scope Without this the relocations for the current shared object are not resolved since the scope is not added to map yet Signed-off-by: Khem Raj commit c4904bd81b8bd4b023d74e438324432341a4b745 Author: Denys Vlasenko Date: Wed Jan 18 14:49:11 2012 +0100 i386/sigaction.c: slightly more readable form of [rt_]sigreturn definitions No code changes Signed-off-by: Denys Vlasenko commit d8d695731db39a03010cc0051c6fbe939959bbf6 Author: Bernhard Reutner-Fischer Date: Wed Jan 18 09:12:47 2012 +0100 stubs: mark stubs as used Avoids warning from -Wunused-function about the alias target that is only used at link-time. Signed-off-by: Bernhard Reutner-Fischer commit 20e4af546967c6bc0cc55a309c9d18818a1404de Author: Bernhard Reutner-Fischer Date: Wed Jan 18 09:09:01 2012 +0100 stdlib: use shorhand wur for realloc prototype Signed-off-by: Bernhard Reutner-Fischer commit 9617bbc95b468b019814a6e25178d53bb4bb8783 Author: Bernhard Reutner-Fischer Date: Wed Jan 18 08:44:39 2012 +0100 buildsys: add cppcheck wrapper script Signed-off-by: Bernhard Reutner-Fischer commit de5964178b62d4c98d43307f7d2ee5b6e0729483 Author: Bernhard Reutner-Fischer Date: Wed Jan 18 08:41:18 2012 +0100 libcrypt: shrink crypt() again - unmodularise modularisation added too much bloat for no benefit, undo. $ ../busybox/scripts/bloat-o-meter .lib.05/libcrypt-0.9.33-rc1-git.so lib/libcrypt-0.9.33-rc1-git.so function old new delta crypt 130 46 -84 .rodata 2704 - -2704 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-2788) Total: -2788 bytes Signed-off-by: Bernhard Reutner-Fischer commit 7d7b96a3928dffdfb61ad96b7b765072a98aa988 Author: Bernhard Reutner-Fischer Date: Wed Jan 18 08:18:13 2012 +0100 nptl: .gitignore generated pt-crt{i,n}.S Signed-off-by: Bernhard Reutner-Fischer commit d69bea22a1fc70b341872b86b6d8dba3e897bf0a Author: Bernhard Reutner-Fischer Date: Tue Jan 17 10:35:52 2012 +0100 tests: only test crypt if we have an impl Signed-off-by: Bernhard Reutner-Fischer commit 2b25a20e49a6fe9044717f4cd66594b8cbfb0183 Author: Bernhard Reutner-Fischer Date: Tue Jan 17 10:35:15 2012 +0100 tests: add sha356/512 tests Signed-off-by: Bernhard Reutner-Fischer commit e55d06752f03b0baea58e2a93afd179eb21afba3 Author: Bernhard Reutner-Fischer Date: Tue Jan 17 10:34:20 2012 +0100 tests: silence warnings in crypt Signed-off-by: Bernhard Reutner-Fischer commit a4421e60526d3420a9c0bd55bfa4a25a746cbc8e Author: Mike Frysinger Date: Mon Jan 16 22:00:18 2012 -0500 buildsys: use = for --sort-section linker flag The spaces aren't handled correctly (currently) when outputting the CFLAGS version of the linker flag. Reported-by: Khem Raj Signed-off-by: Mike Frysinger commit bc7c171f2b1ce70804368b77f41b7b04397dccbd Author: Mike Frysinger Date: Mon Jan 16 17:41:50 2012 -0500 tests: mark all helper scripts +x Signed-off-by: Mike Frysinger commit c3e65564910151c3dc5e827945e3138287a3b901 Author: Mike Frysinger Date: Mon Jan 16 17:24:23 2012 -0500 buildsys: handle more clean targets Signed-off-by: Mike Frysinger commit faf51f000e70f067b51f5f2957ddb12764ffd98f Author: Mike Frysinger Date: Mon Jan 16 17:13:28 2012 -0500 buildsys: fix handling of CFLAG_-W{a,l} vars Need a little indirection/delayed evaluation to handle variables with equal signs and commas in them. Reported-by: Khem Raj Signed-off-by: Mike Frysinger commit fe60f8005bde1d69ed539d57c479aabc9027a0dd Author: Mike Frysinger Date: Mon Jan 16 04:50:57 2012 -0500 tests: tst-futimens1: add missing mode args to open() Since we use O_CREAT with open(), need to make sure to pass in mode too. Signed-off-by: Mike Frysinger commit 68bfc298273d402d7c5a440f8af25264d1921133 Author: Mike Frysinger Date: Mon Jan 16 04:41:29 2012 -0500 tests: test-canon: include sys/stat.h for mkdir() Signed-off-by: Mike Frysinger commit 70641563850aafa0a1030c94f981d16f5af0b90a Author: Mike Frysinger Date: Mon Jan 16 04:33:44 2012 -0500 tests: fdopen: add missing mode args to open() We call open() with O_CREAT, so make sure we pass in the mode else we might get build errors with fortify source. Signed-off-by: Mike Frysinger commit cf1840ba0a51b3145aaebdd882b84cbfe7b2e759 Author: Mike Frysinger Date: Mon Jan 16 04:33:08 2012 -0500 tests: opendir-tst1: add header for mknod() Include sys/stat.h for mknod() prototype. Signed-off-by: Mike Frysinger commit 386a22b920780077d882e051689e6a3a6c92682b Author: Mike Frysinger Date: Mon Jan 16 03:50:04 2012 -0500 tests: mmap2: ignore permission denied errors on /dev/mem Non-root users can't open /dev/mem, so it makes it hard to pass. Ignore that case. Signed-off-by: Mike Frysinger commit 94bf930db1cd171ff5eb6e83bf8f593d0cde123a Author: Mike Frysinger Date: Sun Jan 15 13:08:12 2012 -0500 buildsys: skip compiler flag checking for clean targets As suggested by Bernhard, there is no point in evaluating the compiler's flag availability when cleaning, so skip things in that case. If there are variables that change targets based on the flags, then things are already broken and need fixing independently. Signed-off-by: Mike Frysinger commit 1d8d1f6b915c82d1f35d4618211b60d9f91761f1 Author: Khem Raj Date: Mon Jan 16 08:48:27 2012 -0800 mips/dlfcn.h: Disable RTLD_DEEPBIND RTLD_DEEPBIND is not supported in uclibc Signed-off-by: Khem Raj commit 27fb7ccf7e00b1d94b7b13989006aa2da7edef9a Author: Mike Frysinger Date: Sun Jan 15 13:33:11 2012 -0500 buildsys: simplify include_clean greatly Since we want to clean out all the headers we symlinked into include/, just use `find` to locate all the symlinks for us. This simplifies it greatly, and actually fixes bugs where we build for one arch, switch to another, and then do a clean but the previous arch headers are left behind. Signed-off-by: Mike Frysinger commit 26242d9e53bcb0997000aa2a50c6c9a72f92541d Author: Mike Frysinger Date: Sun Jan 15 13:31:31 2012 -0500 buildsys: fix detection of silent make The MAKEFLAGS variable contains all the flags without the leading dash. From the GNU make manual: This variable is set up automatically by make to contain the flag letters that make received. Thus, if you do ‘make -ks’ then MAKEFLAGS gets the value ‘ks’. Signed-off-by: Mike Frysinger commit fe19f3c5e3464b3d6c36ef1bbbc33c4e4e803cda Author: Mike Frysinger Date: Sun Jan 15 13:06:58 2012 -0500 tests: skip redundant -Wstrict-prototypes setup We inherit the top-level Rules.mak which sets up this flag for us, so just rely on that. Signed-off-by: Mike Frysinger commit 4db2caac1ccfade5fcde67c9800d7f3512220137 Author: Bernhard Reutner-Fischer Date: Sun Jan 15 12:27:41 2012 +0100 libc: build abort with unwind-info for backtrace If backtrace support is turned on, build raise() and abort() with unwind info (fixup 4c9b7f3c21ff21c199e54bfad2fdf3445fa4573d). Signed-off-by: Bernhard Reutner-Fischer commit 2b30ab7137da331d8ead24d244b8feb3e1028152 Author: Markos Chandras Date: Wed Nov 23 13:45:47 2011 +0000 linuxthreads/signals: do not restore handler for invalid signal Invalid signals have no handlers so when trying to restore the old handler to a bad signal a SIGSEGV occurs. This is because the library tries to store the old handler to an invalid memory area where it things the bad signal lives. URL: https://bugs.busybox.net/show_bug.cgi?id=4640 Signed-off-by: Markos Chandras Signed-off-by: Mike Frysinger commit a899b909abe14e8e35a81997c828201d1beaff78 Author: Mike Frysinger Date: Sun Nov 27 00:15:07 2011 -0500 buildsys: cache build flags in vars Running `make clean` atm takes like 20 seconds because every subdir re-evaluates all the toolchain flags. Add some helpers to automate the process of setting up variables to cache the result of tests, as well as the checking of an already set flag. Now `make clean` takes like 2 seconds on my system. Signed-off-by: Mike Frysinger commit 93a11d8bb29423727cdd71c12b6ae8accc21997b Author: Carmelo Amoroso Date: Fri Jan 13 12:27:29 2012 +0100 libubacktrace: use -asynchronous-funwind-tables rather than -funwind-tables From gcc documentation, we can read: " ... -fasynchronous-unwind-tables Generate unwind table in dwarf2 format, if supported by target machine. The table is exact at each instruction boundary, so it can be used for stack unwinding from asynchronous events (such as debugger or garbage collector) ..." So it seems better rather than using -funwind-tables (glibc seems to prefer -fasynchronous-unwind-tables). Signed-off-by: Carmelo Amoroso Acked-by: Mike Frysinger commit 4c9b7f3c21ff21c199e54bfad2fdf3445fa4573d Author: Carmelo Amoroso Date: Tue Jan 3 19:09:56 2012 +0100 libc: allow to backtrace out of abort call Build raise and abort function with dwarf2 info by using -fasynchronous-unwind-tables to make backtrace() working across a call to abort. A scenario where it could be useful is within a signal handler that wants to dump a backtrace when catching some signal (i.e SIGABRT). Without having abort & raise built with DWARF2 information, it is not possible for the libgcc stack unwinder to walk through the call stack out of the abort/raise function. Impacts in terms of size are really limited Current text data bss dec hex filename 164 0 0 164 a4 ./libpthread/nptl/sysdeps/unix/sysv/linux/raise.os 164 0 0 164 a4 ./libpthread/nptl/sysdeps/unix/sysv/linux/raise.oS 220 24 4 248 f8 ./libc/stdlib/abort.os With (-fasynchronous-unwind-tables) text data bss dec hex filename 216 0 0 216 d8 ./libpthread/nptl/sysdeps/unix/sysv/linux/raise.os 216 0 0 216 d8 ./libpthread/nptl/sysdeps/unix/sysv/linux/raise.oS 280 24 4 308 134 ./libc/stdlib/abort.os Signed-off-by: Carmelo Amoroso Acked-by: Bernhard Reutner-Fischer commit a7123b4744112deecb7aef771f224b680b4a02c0 Author: Mike Frysinger Date: Mon Jan 2 02:34:44 2012 -0500 config: remove some redundant words in the menus Signed-off-by: Mike Frysinger commit 97774e90d694f802ff0cfbf15687af77c6f7239e Author: Mike Frysinger Date: Mon Jan 2 02:43:37 2012 -0500 ldso: setup search path even when there are no "/" If people use an interp path such as "ld.so", then there is no "/" found, and we end up dereferencing a NULL pointer. Simplify the logic by having a relative interp path like that be the same as "" (which the code later on interprets as $PWD). While we're here, document some of the nuances of this code. Reported-by: Ignacy Gawędzki Signed-off-by: Mike Frysinger commit b3436addb5ccf14d7fffcf5503644e9a62aaec4e Author: Mike Frysinger Date: Mon Jan 2 02:24:49 2012 -0500 ldso: simplify interp path search logic The setup logic is duplicated, so unify it in a local func. Mark the variable const while we're doing this, and add missing ifdef protection to the header that declares it availability. Signed-off-by: Mike Frysinger commit d5fd9afa76176c889196bb0631bfed77431b295d Author: Denys Vlasenko Date: Sun Jan 1 17:31:40 2012 +0100 getpass: s/sizeof(buf)-1/sizeof(buf)/ in fgets Signed-off-by: Denys Vlasenko commit 83781e426ea6debaaa69ee884203c31c6cc08b47 Author: Bernhard Reutner-Fischer Date: Fri Dec 30 12:40:53 2011 +0100 bump version to 0.9.33-rc1-git Signed-off-by: Bernhard Reutner-Fischer commit 8b443d4425d36ad458633a830ceafeb550a26a43 Author: Bernhard Reutner-Fischer Date: Fri Dec 30 12:38:44 2011 +0100 release 0.9.33-rc1 Signed-off-by: Bernhard Reutner-Fischer commit 38b3cd5f04f3a0c38941146b81e8292ec3abbcac Author: Denys Vlasenko Date: Fri Dec 23 14:24:12 2011 +0100 getpass: several fixes fixes bogus fgets error check fixes bogus strlen() < 0 check switches off buffering regardless of tcgetattr() success prints newline even on error or if there was no '\n' on input uses sizeof(buf) instead of PWD_BUFFER_SIZE Signed-off-by: Denys Vlasenko commit 8a8434b367e0b94b9fda72c99f1c646737725403 Author: Carmelo Amoroso Date: Thu Dec 22 15:25:42 2011 +0100 libubacktrace: use -funwind-tables rather than -fexecptions For backtrace to work is enough to use -funwind-tables instead of -fexceptions. Signed-off-by: Carmelo Amoroso commit 3ac5fd7ecaeb6721d812c2b93e446bf9a31acdde Author: William Pitcock Date: Mon Dec 19 01:25:09 2011 -0600 libcrypt: add support for SHA256-CRYPT password hashing This is based on Ulrich Drepper's implementation in GLIBC, but hacked up to work in uClibc. The differences from the GLIBC version are as follows: - b64_from_24bit() has been converted into a macro - Usage of GLIBC-isms (such as libc_freeres_ptr) have been removed It is enabled by the UCLIBC_HAS_SHA256_CRYPT_IMPL configuration symbol. You must have UCLIBC_HAS_CRYPT_IMPL enabled as well. Signed-off-by: William Pitcock Signed-off-by: Bernhard Reutner-Fischer commit 4c24dabb9cea4c8148d7a7efc7a1df694424c483 Author: William Pitcock Date: Mon Dec 19 01:24:16 2011 -0600 libcrypt: add support for SHA512-CRYPT password hashing This is based on Ulrich Drepper's implementation in GLIBC, but hacked up to work in uClibc. The differences from the GLIBC version are as follows: - b64_from_24bit() has been converted into a macro - Usage of GLIBC-isms (such as libc_freeres_ptr) have been removed It is enabled by the UCLIBC_HAS_SHA512_CRYPT_IMPL configuration symbol. You must have UCLIBC_HAS_CRYPT_IMPL enabled as well. Signed-off-by: William Pitcock Signed-off-by: Bernhard Reutner-Fischer commit 40c426ae8f032d794d15f4a7fca8dc17cdc9899d Author: William Pitcock Date: Mon Dec 19 01:21:33 2011 -0600 libcrypt: make crypt() itself more modular By using a function table, we can more cleanly support new crypt implementations, such as SHA256 ($5$) and SHA512 ($6$). Signed-off-by: William Pitcock Signed-off-by: Bernhard Reutner-Fischer commit f69319d5a7d3a3ccb46b28ee2b0fd9053c6415ac Author: Timo Teräs Date: Thu Mar 24 13:27:36 2011 +0200 libdl: rudimentary locking for dlopen/dlsym/dlclose This implements big-dlfcn lock to allow multithreaded usage of dlopen/dlsym/dlclose. We should really clean up the dl code so we can use more fine grained locking or even RCU where appropriate. But at least we won't crash now. Signed-off-by: Timo Teräs Signed-off-by: Bernhard Reutner-Fischer commit bc4bc07d931992388822fa301e34718acbec02c9 Author: Natanael Copa Date: Fri Dec 16 11:06:54 2011 +0100 sys/queue.h: update to eglibc version Xen needs SIMPLEQ_* queue types which was not provided from the old uclibc queue.h. Use same implementation as eglibc. Grabbed from: http://www.eglibc.org/svn/trunk/libc/misc/sys/queue.h Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit 09dfeda9cf5a1bd1bd89180308ce923cc4c5f9b0 Author: Mike Frysinger Date: Sat Dec 3 12:48:24 2011 -0500 x86_64: add PLT bypass for __sigsetjmp The current x86_64 setjmp helpers incur a reloc, so fix that up. $ readelf -r lib/libc.so.0 ... Relocation section '.rela.plt' at offset 0xb058 contains 10 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000236010 02a400000007 R_X86_64_JUMP_SLO 000000000000b3c4 __sigsetjmp + 0 ... Signed-off-by: Mike Frysinger commit 46fa3f2fdc873d98818dcd5efae90c09a3b75a66 Author: Mike Frysinger Date: Sat Dec 3 12:16:56 2011 -0500 getutid: add a hidden def The pututline func calls getutid, so add a hidden def for it to avoid plt relocs: $ readelf -r lib/libc.so.0 ... Relocation section '.rela.plt' at offset 0xb058 contains 11 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000236000 01cf00000007 R_X86_64_JUMP_SLO 00000000000190ab getutid + 0 ... Signed-off-by: Mike Frysinger commit 0e9ee6c27f757badedc78d5ffb680f38b7824f38 Author: Mike Frysinger Date: Sun Nov 27 13:03:09 2011 -0500 ldso: bfin: fix sram_flags init An earlier version had this, but was lost as code was shuffled around. Signed-off-by: Mike Frysinger commit 074129d4b21d98683798588f25080d29b8f5796e Author: Mike Frysinger Date: Sun Nov 27 05:00:48 2011 -0500 ldso: bfin: shrink sram mapping func The L1 data and L2 code paths duplicate a lot, so unify them. Signed-off-by: Mike Frysinger commit d2dde140defba102757b86b815527584d894eaa8 Author: Mike Frysinger Date: Sun Nov 27 04:26:09 2011 -0500 ldso: fdpic: clean up style There should (hopefully) be no functional changes here. Signed-off-by: Mike Frysinger commit 0d08b449615e52c386eeca25a64d8548a01c8bec Author: Mike Frysinger Date: Sun Nov 27 03:55:38 2011 -0500 ldso: fdpic: unify duplicate bfin/frv logic Much of the logic in the bfin/frv subdirs is FDPIC specific and not arch specific. So start a new fdpic/ subdir to keep common things. Signed-off-by: Mike Frysinger commit 0405cb8f5b647fadf61f7539828ef88a883223e2 Author: Mike Frysinger Date: Sun Nov 27 04:10:03 2011 -0500 make ARRAY_SIZE commonly available internally Some places have opencoded the ARRAY_SIZE macro, so move it to a global internal location so other places can leverage it. Signed-off-by: Mike Frysinger commit 9ca7a065beaee93969b39117a7f6d466ff2fb171 Author: Mike Frysinger Date: Sun Nov 27 00:27:43 2011 -0500 ldso: use __func__ rather than __FUNCTION__ The former is part of a standard (C99) while the latter is not. Signed-off-by: Mike Frysinger commit a796d26367ceac79898a832d9f01fe25f5c4f02a Author: Mike Frysinger Date: Sat Nov 26 22:31:19 2011 -0500 buildsys: drop manual TARGET_SUBARCH .config lookup We source the .config file, so there should be no need to manually extract it. If the sourcing doesn't work, then a lot of things break in this file. Signed-off-by: Mike Frysinger commit 1bb0e53db30041c09e540dbfc6bd185acbd8cfc5 Author: Mike Frysinger Date: Sat Nov 26 22:36:30 2011 -0500 include/: ignore new sys/eventfd.h symlink Signed-off-by: Mike Frysinger commit ae14cd49a8da6e62e35636109a6dc74011198437 Author: Carmelo Amoroso Date: Thu Oct 27 15:11:11 2011 +0200 buildsys: s/CROSS/CROSS_COMPILE/g Use CROSS_COMPILE instead of CROSS as other projects are doing (i.e. kernel, busybox, buildroot). CROSS is still supported for backward compatibility only Signed-off-by: Carmelo Amoroso commit c79f09a9a3cfa50cd56c53bd2d3d1f57fe52d587 Author: Bernhard Reutner-Fischer Date: Thu Nov 24 19:22:59 2011 +0100 nptl: add missing pt-tempname.c fix bd3c1a2495cbcb51b606f8e4892fcd127f91e645 forgotten file. Signed-off-by: Bernhard Reutner-Fischer commit 1b6c5c4f32f13cc8f26d38a6159a958a7a9d29b2 Author: Carmelo Amoroso Date: Tue Nov 1 15:08:17 2011 +0100 libc: do not rely upon ulimit kernel syscall. On several architectures __NR_ulimit syscall number is currently defined but it is remapped onto sys_ni_syscall, while on other architectures they are not longer defined. So use {get,set}rlimit only to implement ulimit interface. It fixes LTP ulimit01 test case. Signed-off-by: Carmelo Amoroso Acked-by: Bernhard Reutner-Fischer commit 9b42da7d0558884e2a3cc9a8674ccfc752369610 Author: Filippo Arcidiacono Date: Wed Nov 23 11:50:55 2011 +0100 libdl: fix size parameter when unmap library in dlclose Fix size parameter when unmap a library by means of dlclose, by taking into account the p_vaddr of first PT_LOAD segment, so it works also for prelinked shared objects. Unmapping of dlopen shared libraries is broken since 94cc6edb78a12655c0602a246fa1cbdc8c6d0ad9 Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 117a32a63b837730cc97b0a233ab46e9abc6c7a7 Author: Mike Frysinger Date: Tue Jul 19 16:05:52 2011 -0400 stdio: add support for "e" flag with fopen() Support this useful glibc extension for optionally setting O_CLOEXEC on fopen streams. Signed-off-by: Mike Frysinger commit 4a2b0641a3818ad14b886907368b6f6735615f6d Author: Mike Frysinger Date: Sun Nov 20 02:34:49 2011 -0500 libcrypt: do not cast away const of key/salt Signed-off-by: Mike Frysinger commit 69cba61dd27f2a9c4c34f596ed9d1b7cd0441f74 Author: Bernhard Reutner-Fischer Date: Fri Nov 18 08:49:25 2011 +0100 libubacktrace: use .so.$(ABI_VERSION) Thanks to William Pitcock for noticing Signed-off-by: Bernhard Reutner-Fischer commit e548078de1229e06d71aef02d99891b251f780f9 Author: Bernhard Reutner-Fischer Date: Thu Nov 17 18:35:09 2011 +0100 nptl: sem_open: use open64 if LFS Signed-off-by: Bernhard Reutner-Fischer commit bd3c1a2495cbcb51b606f8e4892fcd127f91e645 Author: Bernhard Reutner-Fischer Date: Thu Nov 17 14:46:07 2011 +0100 misc: hide __gen_tempname fix signed vs. unsigned comparison warnings while at it Signed-off-by: Bernhard Reutner-Fischer commit 1ea3c5e6f11b91466546020f4e9ec13d1ab81be3 Author: Bernhard Reutner-Fischer Date: Thu Nov 17 11:33:35 2011 +0100 stdio: hide _stdio_validate_FILE Signed-off-by: Bernhard Reutner-Fischer commit 90d597eac8ebbb9ebfa065f6873d28646303f814 Author: Bernhard Reutner-Fischer Date: Thu Nov 17 11:25:52 2011 +0100 regex_old: make some internal helpers static Signed-off-by: Bernhard Reutner-Fischer commit fbe324024de24d236549179b77c07fa02d9b6926 Author: Bernhard Reutner-Fischer Date: Thu Nov 17 11:01:04 2011 +0100 inet: hide relocations Signed-off-by: Bernhard Reutner-Fischer commit 5a2b42a48342ee59c9ee48d1632f040088609589 Author: Bernhard Reutner-Fischer Date: Thu Nov 17 10:55:29 2011 +0100 unistd: hide relocations Signed-off-by: Bernhard Reutner-Fischer commit dcf56488daa07aea35755532f0461d1921dcd416 Author: Bernhard Reutner-Fischer Date: Thu Nov 17 10:46:42 2011 +0100 resolv: hide relocations Signed-off-by: Bernhard Reutner-Fischer commit eb51b7f1359cf75c792cca6615c9aa1b167ce79f Author: Bernd Schmidt Date: Mon Nov 14 14:44:51 2011 +0100 Add a C6X-specific ipc.h. Signed-off-by: Bernd Schmidt commit 632dbe851caac5ef6e5fbab3e225a11090e0d1ad Author: Carmelo Amoroso Date: Tue Nov 8 14:33:22 2011 +0100 buildsys: do not install ld.so linker script Signed-off-by: Carmelo Amoroso commit f1505e15812899623d77e40c62a4f66f57957e2d Author: Jason Woodward Date: Sat Jun 11 01:08:48 2011 -0400 libubacktrace: Conditionally link libgcc_eh When libubacktrace is not enabled there is no need to link in libgcc_eh Fixes bootstrap failures with (gcc-4.5.x) stage1 compilers that --disable-shared Signed-off-by: Jason Woodward Signed-off-by: Bernhard Reutner-Fischer commit 5f1678b1df1153277590b114ccafcf6171923d75 Author: Bernhard Reutner-Fischer Date: Sun Jun 12 08:44:32 2011 +0100 libm: pass CFLAGS to e500 fenv As noted by Jason Woodward Signed-off-by: Bernhard Reutner-Fischer commit c894249c877462d833e36cb6bfc4b9acb1a622b8 Author: Jason Woodward Date: Sat Jun 11 20:39:33 2011 -0400 honor UCLIBC_HAS_FENV for e500 Signed-off-by: Jason Woodward Signed-off-by: Bernhard Reutner-Fischer commit beb1c62829dfb086a1e458fd049cc66cfb0de650 Author: Jason Woodward Date: Sat Jun 11 19:09:53 2011 -0400 Fix e500 fpu libm build Define libm_ARCH_fpu_OUT in libm/powerpc/e500/Makefile.arch as it is used in libm/powerpc/e500/fpu/Makefile.arch libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_fpu_DIR)/%.c,$(libm_ARCH_fpu_OUT)/%.o,$(libm_ARCH_SRC)) This appears to have been broken since cd3a494e99fa4bcad1c2a621b71361005528bead Signed-off-by: Jason Woodward Signed-off-by: Bernhard Reutner-Fischer commit 19dd090a0f68765db87990ef8eda9bf77bb29581 Author: Henning Heinold Date: Sat Jun 4 21:21:41 2011 +0200 libc: flesh out linux scheduler functions Most stuff was taken from the eglibc. Signed-off-by: Henning Heinold Signed-off-by: Bernhard Reutner-Fischer commit 0c7690f6a5d6e073052ee6487f768289db3a58f7 Author: Timo Teräs Date: Mon Nov 7 18:08:33 2011 +0100 ldso: support RTLD_NOLOAD So application query if specified module is loaded or not with dlopen. Signed-off-by: Timo Teräs Signed-off-by: Bernhard Reutner-Fischer commit 515d54433138596e81267237542bd9168b8cc787 Author: Bernhard Reutner-Fischer Date: Mon Nov 7 09:24:30 2011 +0100 stdlib: add qsort_r GNU extension like qsort but takes a 3 parameter comparision function. Signed-off-by: Bernhard Reutner-Fischer commit 84144d142cb9f041dd18285cb2ad9dbe6619b0a2 Author: Bernhard Reutner-Fischer Date: Fri Nov 4 13:02:09 2011 +0100 powerpc: Fix typo in clone() Thanks to strauman at slac stanford edu for noticing Signed-off-by: Bernhard Reutner-Fischer commit d10475f8237e66f6a00b65427758c98d80cb381d Author: Jean-Christian de Rivaz Date: Wed Nov 2 20:44:00 2011 +0100 Add stub for eventfd. Warn if the enventfd() function is not implemented. Signed-off-by: Jean-Christian de Rivaz Signed-off-by: Bernhard Reutner-Fischer commit 7ae07d4f028849d30b4f260b3261d634f16d7331 Author: William Pitcock Date: Tue Nov 1 19:18:48 2011 -0500 libm: implement a generic sincos(). We already provide sincos() on some archs, so we should ship a generic version. Signed-off-by: William Pitcock Signed-off-by: Bernhard Reutner-Fischer commit 2086015b9a223586c1a2b8d7f015ad3a38bdf8bc Author: William Pitcock Date: Tue Nov 1 18:55:25 2011 -0500 libm: add cabsf() and cabsl() functions. Signed-off-by: William Pitcock Signed-off-by: Bernhard Reutner-Fischer commit 6471fc450b66dcb1ba16fe6568cd52221ca64cd1 Author: William Pitcock Date: Tue Nov 1 18:41:30 2011 -0500 libm: implement generic cexp(), cexpf() and cexpl(). The cexp*() family of functions is defined by the C99 math standard as implementing exponential functions for complex types. Signed-off-by: William Pitcock Signed-off-by: Bernhard Reutner-Fischer commit 25790afdadf8fa8ec0897c195c73a63eaae1e1dd Author: Bernhard Reutner-Fischer Date: Fri Nov 4 10:23:06 2011 +0100 config: document eventfd in LINUX_SPECIFIC Signed-off-by: Bernhard Reutner-Fischer commit 2f88f917c27cfb08cd889a71fec62f823b828f74 Author: Bernhard Reutner-Fischer Date: Wed Nov 2 17:31:51 2011 +0100 setegid: use setresgid conditionally Signed-off-by: Bernhard Reutner-Fischer commit 3dbeeb83952b6645381d7193bd3321082ba932b6 Author: Bernhard Reutner-Fischer Date: Wed Nov 2 17:28:15 2011 +0100 stubs: remove leftover undefs Signed-off-by: Bernhard Reutner-Fischer commit fafa38973d0472f645025af0a8d8ad265251a9ed Author: Bernhard Reutner-Fischer Date: Wed Nov 2 16:51:55 2011 +0100 buildsys: eventually remove sys/eventfd.h rm sys/eventfd.h unless linux_specific was chosen Signed-off-by: Bernhard Reutner-Fischer commit d36bc81bb4432f78ce5b332780df2a33e56a678c Author: Bernhard Reutner-Fischer Date: Mon Oct 31 23:13:09 2011 +0100 stubs: handle linux module functions Signed-off-by: Bernhard Reutner-Fischer commit 04df27ce9847a2ce7d1104732cc497d4e6f02d89 Author: Bernhard Reutner-Fischer Date: Sun Oct 30 21:57:39 2011 +0100 stubs: handle linux-specific Signed-off-by: Bernhard Reutner-Fischer commit 3c331f45196eaea2548aea095cebf1a8dcfac087 Author: Bernhard Reutner-Fischer Date: Sat Oct 29 12:09:57 2011 +0200 stubs: fix inverted socket logic Signed-off-by: Bernhard Reutner-Fischer commit 5724141a037edb06c15bd78cfe04108e36991276 Author: Bernhard Reutner-Fischer Date: Sat Oct 29 11:55:43 2011 +0200 stubs: undef linux specific unless they were asked for Signed-off-by: Bernhard Reutner-Fischer commit 9ed163dc0eaebe8734c35b356c406e9eb1c68d76 Author: Jean-Christian de Rivaz Date: Mon Oct 24 19:07:43 2011 +0200 Add eventfd support. Hello, I whould like to share this simple patch that add the eventfd call to uClibc. Please review so it can be accepted to be merged. Jean-Christian Signed-off-by: Jean-Christian de Rivaz Signed-off-by: Carmelo Amoroso commit 015179a2c816abe1e6a8ef7e5517362f20dd49da Author: Rob Landley Date: Thu Oct 27 07:31:06 2011 -0700 sparc: fix build for linuxthreads.old sparc target has assembly implementations of clone.S that doesn't get used, and thus the build breaks. Also, sparc is missing a header file in pthreads.old that exists in pthreads.new. Signed-off-by: Rob Landley Signed-off-by: Austin Foxley commit e0b741c2cb0ec3278d699818556ebcf003590818 Author: Carmelo Amoroso Date: Thu Oct 27 12:48:31 2011 +0200 resolver: add a dependencies for DNS resolver feature DNS resolver needs at least IPV4 or IPV6 support enabled to be correctly built. Add such dependency. Signed-off-by: Carmelo Amoroso commit eb7d589d072d63b72cd48052ed6c5b010cca9769 Author: Bernhard Reutner-Fischer Date: Thu Oct 27 12:38:43 2011 +0200 pthreads: fix build when DNS resolver is not enabled. Resolver state is only available if DNS resolver is enabled. Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Carmelo Amoroso commit 24a3d3860538b16684591bf86621332c18494806 Author: Rob Landley Date: Thu Oct 27 12:32:34 2011 +0200 sh: fix build for SH in !NPTL case Signed-off-by: Rob Landley Signed-off-by: Carmelo Amoroso commit abdfc793732d02eee6bd2c17ca9562036979eef3 Author: Carmelo Amoroso Date: Thu Oct 27 10:00:58 2011 +0200 linuxthreads: fix typo in __UCLIBC_HAS_IPv4__ macro IPv4 should has 'V' capital letter. Signed-off-by: Carmelo Amoroso commit e4aa966cf25e83cd0c72f34f7855a995ff93944d Author: Carmelo Amoroso Date: Tue Oct 25 12:28:51 2011 +0200 ldso: let people disable to lookup into LD_LIBRARY_PATH On hardened system it could be useful to disable the use of LD_LIBRARY_PATH. Signed-off-by: Carmelo Amoroso commit 6d71db548d1186a9215bebafaee8e38b6cb7d513 Author: Carmelo Amoroso Date: Tue Oct 25 11:26:50 2011 +0200 ldso: minor fixes to implicit search path Do not defined _dl_ldsopatch if implicit search path if not enabled, and avoid to call search_for_named_library (even if it is able to handle NULL search path). Signed-off-by: Carmelo Amoroso commit 7846b17d4c623d9ad1962300f95b9c539ecc149a Author: Carmelo Amoroso Date: Tue Oct 25 10:24:06 2011 +0200 ldso: disable the implicit path search in stand-alone mode as well Honour LDSO_SEARCH_INTERP_PATH knob option also when running in stand-alone mode. Signed-off-by: Rune Signed-off-by: Carmelo Amoroso commit b9055a68dd1e17e6cdc816ef6e1aa213592f38ca Author: Carmelo Amoroso Date: Tue Oct 25 06:54:34 2011 +0200 config: add support for _defconfig Add support for platform specific and/or custom defconfig per arch. They have to be suffixed by '_defconfig' and are automatically detected and displayed by issuing 'make ARCH= help'. Signed-off-by: Carmelo Amoroso commit eee423c9ed211267a47ca995cd0238ab5d1ece72 Author: Carmelo Amoroso Date: Tue Oct 25 06:44:11 2011 +0200 config: revise defconfigs strategy Revise the way defconfigs are defined, by renaming them from defconfigs/ to defconfigs//defconfig. It allows to have multiple defconfigs per arch. Signed-off-by: Carmelo Amoroso commit 4ba7f26cb93996caa7005e9fcbff3628af8b6d4b Author: Carmelo Amoroso Date: Tue Oct 25 06:35:10 2011 +0200 config: tidy-up of config targets Introduce two local variables for 'conf' and 'mconf' binaries. Use $^ automatic variable to invoke [m]conf tool. Signed-off-by: Carmelo Amoroso commit bb8d500a75a3050fe3198773ce7b07f669fe8f13 Author: Bernhard Reutner-Fischer Date: Fri Oct 14 17:47:42 2011 +0200 resolv: fix memory leak Timothy Holdener writes: small memory leak in __dns_lookup() when the A record in the DNS answer is preceded by one or more CNAME records. Signed-off-by: Bernhard Reutner-Fischer commit e3fea65f50c6e5e82e75b8940dcf857495136e9a Author: Bernhard Reutner-Fischer Date: Thu Oct 20 18:53:37 2011 +0200 resolv: commentary typo fix Signed-off-by: Bernhard Reutner-Fischer commit 40f8f5f0336ddcd6f7ea2d45d4713b553a225843 Author: Bernhard Reutner-Fischer Date: Thu Oct 20 18:49:48 2011 +0200 gethostbyname_r: set correct h_errno upon failure previously gethostbyname_r(ipv6.google.com);herror("ERROR:") gave Answer name = |ipv6.google.com| Answer type = |5| herrno=1 h_errno=0 ERROR:: Error 0 herrno=1 h_errno=1 ERROR:: Unknown host Signed-off-by: Bernhard Reutner-Fischer commit 984e1c1e44e3a6de236ab5d8850863a1f995b4e2 Author: Bernhard Reutner-Fischer Date: Tue Oct 18 19:05:07 2011 +0200 resolv: fix compilation Signed-off-by: Bernhard Reutner-Fischer commit 54a1c7691bfbfa166e6140260d2f750580f54908 Author: Carmelo Amoroso Date: Wed Oct 19 16:30:32 2011 +0200 libdl: remove _dl_ldsopath from libdl.a Signed-off-by: Carmelo Amoroso commit 1155493454bf1e013f5b086ba7529c1cd60fd242 Author: Carmelo Amoroso Date: Fri Oct 14 12:04:58 2011 +0200 ldd: take LD_LIBRARY_PATH into account Extend the environment variables adding the LD_LIBRARY_PATH if actually passed when doing shared library tracings through the ld.so trace capability. This is possible only using the system dynamic linker in stand-alone mode to avoid any vulnerability. Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Carmelo Amoroso commit 36ea1d442b7507e4600256705cfd9bbe03c85e86 Author: Bernhard Reutner-Fischer Date: Fri Oct 14 14:11:01 2011 +0200 Config.in: fix erroneously deleted line blame e9d74358093b61e2e597fa9e066ba0468df14cba Signed-off-by: Bernhard Reutner-Fischer commit bbf31ba768412222dec87afb8c76f9e10311f8e0 Author: Bernhard Reutner-Fischer Date: Fri Aug 26 11:29:48 2011 +0200 ldso: silence harmless warning for !LDSO_PRELINK_SUPPORT Signed-off-by: Bernhard Reutner-Fischer commit 47f3da1cf49377c25772bb54d07db55225bbb142 Author: Guillaume Bourcier Date: Tue Oct 11 13:45:33 2011 +0200 libc: fix daylight saving time handling The algorithm computing daylight saving time incorrectly adds a day for each month after January for leap years. The clock shift from/to DST can be delayed if the last Sunday of a transition month is exactly seven days before the first of the following month. This change adds a day for the February month only. Signed-off-by: Guillaume Bourcier Signed-off-by: Richard Braun Signed-off-by: Carmelo Amoroso commit 7eaca202b9f1f79a3c1d2a56a3879364cfa89e42 Author: Mike Frysinger Date: Tue Oct 4 23:26:10 2011 -0400 ldso: unify pread syscall definition A few arches want pread() defined, so move it to common code. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 767cb4f4f53712a8af2d7b3df8b0f0354e9749be Author: Mike Frysinger Date: Tue Oct 4 23:26:09 2011 -0400 ldso: bfin/frv: drop dead simulator code Nowhere do we define DYNAMIC_LOADER_IN_SIMULATOR, so drop the little bit of code that depends on it. At least in the Blackfin case, we can run an FDPIC ldso just fine under the simulator without hacks. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit e2f889a7467979f56de6412e6cb1bdfaf797f677 Author: Mike Frysinger Date: Tue Oct 4 23:26:08 2011 -0400 ldso: merge duplicate dl-syscalls.h code to common header Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 331b43717229eaad2a95bf420f5100079bd53683 Author: Ryan Flux Date: Tue Oct 4 10:50:49 2011 +1000 microblaze mmu/elf/shared lib support microblaze can either be with mmu or without If with, use elf rather than flat, and support shared libs Signed-off-by: Ryan Flux Signed-off-by: Steve Bennett Signed-off-by: Bernhard Reutner-Fischer commit cc5499a6a678e4caf1b06f33192de84d5ab88fd5 Author: Steve Bennett Date: Tue Oct 4 10:50:48 2011 +1000 microblaze linux has no SDA support The linker does not set up the Small Data Area symbols, _SDA_BASE_ and _SDA2_BASE_ so don't try to resolve them Signed-off-by: Ryan Flux Signed-off-by: Steve Bennett Signed-off-by: Bernhard Reutner-Fischer commit c13e46c982133482f32352c5a845978a5f076116 Author: Steve Bennett Date: Tue Oct 4 10:50:47 2011 +1000 microblaze can be either big or little endian Signed-off-by: Steve Bennett Signed-off-by: Bernhard Reutner-Fischer commit 3655ce8f050c819135302dbe5ace41c06c68bdb9 Author: Ryan Flux Date: Tue Oct 4 10:50:46 2011 +1000 microblaze has long double support too Signed-off-by: Ryan Flux Signed-off-by: Steve Bennett Signed-off-by: Bernhard Reutner-Fischer commit ce01d0f059bbc48d78be11eb5b5b87824afc2066 Author: Steve Bennett Date: Tue Oct 4 10:50:45 2011 +1000 Use the generic bits/select.h for microblaze This avoids warnings about type-punned pointers Signed-off-by: Steve Bennett Signed-off-by: Bernhard Reutner-Fischer commit 01d4f7b456e515e4a2bb76e72e919f92a6822b04 Author: Mike Frysinger Date: Sat Oct 1 15:41:06 2011 -0400 tests: ignore new inet test Signed-off-by: Mike Frysinger commit 8744dc172388922e873ebcb019dd478849a1ee98 Author: Mike Frysinger Date: Sat Oct 1 15:39:46 2011 -0400 tests: add fallback for mktemp() If SuSv3 legacy support is disabled, then mktemp() isn't available, and we end up getting a lot of build errors. So add a fallback built on top of tempnam() since that currently cannot be disabled. Signed-off-by: Mike Frysinger commit d174d2c46591b15bd875ee2f7e46a594eaf9eccb Author: Mike Frysinger Date: Sat Oct 1 15:12:14 2011 -0400 ldso: x86_64: delete unused variable gcc informed me: In file included from ldso/ldso/ldso.c:46:0: ldso/ldso/x86_64/elfinterp.c: In function '_dl_do_lazy_reloc': ldso/ldso/x86_64/elfinterp.c:294:6: warning: variable 'symtab_index' set but not used [-Wunused-but-set-variable] Signed-off-by: Mike Frysinger commit c44d37d6a21ee9a62cd6b26c24999e8006e2c62c Author: Mike Frysinger Date: Sat Oct 1 15:10:39 2011 -0400 ldso: constify reloc array itself Signed-off-by: Mike Frysinger commit 82f8d0bce10403deab704871e638edc24e7933ee Author: Denys Vlasenko Date: Thu Sep 15 16:59:21 2011 +0200 Defeat compiler optimization which assumes function addresses are never NULL From email: A warning for people who can be hit by the same or similar issue: gcc 4.1.2 with -march=i486 here with -Os and even with -O2 or -O is "optimizing away" the check if (_stdio_term) in libc/stdlib/_atexit.c which results in a "call 0" and a segfault at exit if you do not happen to link in stdio. Signed-off-by: Denys Vlasenko commit 200895dab88678b5b4e7d1dac9172be23e92eb31 Author: Bernhard Reutner-Fischer Date: Mon Sep 12 17:29:21 2011 +0200 config: tweak help text Signed-off-by: Bernhard Reutner-Fischer commit 021b0aa3c497860ea964b96b2cec8f1290846891 Author: Denys Vlasenko Date: Sat Sep 10 03:01:33 2011 +0200 resolv: simple optimizations and style/readability fixes text data bss dec hex filename - 2915 0 0 2915 b63 libc/inet/ns_name_old.o + 2656 0 0 2656 a60 libc/inet/ns_name.o - 958 0 0 958 3be libc/inet/ns_parse_old.o + 898 0 0 898 382 libc/inet/ns_parse.o Signed-off-by: Denys Vlasenko commit 8ed76f5abc1790ae975649c735d5ff15de275615 Author: Carmelo Amoroso Date: Fri Aug 26 10:26:17 2011 +0200 ldso: fix build with PRELINK enabled and !TLS Signed-off-by: Carmelo Amoroso commit fdd18680500d8c393332e8cb5d1e9509a32e4c79 Author: Bernhard Reutner-Fischer Date: Fri Aug 26 09:40:30 2011 +0200 ldso: add missing include Signed-off-by: Bernhard Reutner-Fischer commit 120d4100b5a4ba3a48ff700c0bdb6ae1d0b01f83 Author: Daniel Mack Date: Wed Jul 13 00:30:56 2011 +0200 inet: build all res_* and ns_* functions conditionally This patch changes the build system so that all DNS resolver related functions (ie, those starting with dn_, ns_ and res_) are only built if UCLIBC_HAS_RESOLVER_SUPPORT is set. This means that the libc will lack support for things that existed in the library before unless this new config option is set. On the other hand, if users really need support for resolver functions, they now get a more complete set, and the library is smaller than before it is deselected. Signed-off-by: Daniel Mack commit 77fbcc8440c28ea30ebf5a38c7be1d0c7b080772 Author: Daniel Mack Date: Wed Jul 13 00:30:55 2011 +0200 include/resolv.h: provide __res_state._u even if !__UCLIBC_HAS_IPV6__ This struct is used for IPv4 as well, so only make the members conditional that are purely used by IPv6. Signed-off-by: Daniel Mack commit 7f74de5d4d6d10baafab4b37bb3d472f5c5f0e8c Author: Daniel Mack Date: Wed Jul 13 00:30:54 2011 +0200 inet/resolv: add res_ninit and res_nclose Some reordering of existing functions was necessary in order to provide this functionality. Signed-off-by: Daniel Mack commit a863daff6844e330183045f513dcc1b421af426c Author: Daniel Mack Date: Wed Jul 13 00:30:53 2011 +0200 inet/resolv: add res_mkquery Signed-off-by: Daniel Mack commit 5f6fe1fca1e60923503dd391a60b2ad5b9aead31 Author: Daniel Mack Date: Wed Jul 13 00:30:52 2011 +0200 inet/resolv: add ns_initparse, ns_parserr, ns_skiprr and ns_msg_getflag There are build 'ifdef L_ns_parse'. Signed-off-by: Daniel Mack commit 95ff96497d513e89675eabef2f052cabb96e4080 Author: Daniel Mack Date: Wed Jul 13 00:30:51 2011 +0200 inet/resolv: add dn_skipname and ns_name_skip One uses the other, so add them in one go. Signed-off-by: Daniel Mack commit 05ff11da8f47e95e16c2d6db93fd6273dc35445e Author: Daniel Mack Date: Wed Jul 13 00:30:50 2011 +0200 inet/resolv: Add dn_comp Signed-off-by: Daniel Mack commit e5153a77782bf7042f50b97959536f3f181bad99 Author: Daniel Mack Date: Wed Jul 13 00:30:49 2011 +0200 inet/resolv: add ns_name_pton, ns_name_pack and ns_name_compress These are built '#ifdef L_ns_name' Signed-off-by: Daniel Mack commit 466f11015f44dd6be48bc0295196a83421bceea5 Author: Daniel Mack Date: Wed Jul 13 00:30:48 2011 +0200 inet/resolv: add ns_{put,get}{16,32} This patch introduces a new config directive 'UCLIBC_HAS_RESOLVER_SUPPORT' and adds the new symbols conditionally. Signed-off-by: Daniel Mack commit 6ca582ff96ae373e635a275626af1243a81d63a4 Author: Daniel Mack Date: Wed Jul 13 00:30:47 2011 +0200 libc/inet/resolv.c: comment on #endif lines While reading this file, I found it rather confusing to relate the "endif" lines to their opening counter-part. This patch adds comments to most of these lines to denote what the actually do. Signed-off-by: Daniel Mack commit e9d74358093b61e2e597fa9e066ba0468df14cba Author: Daniel Mack Date: Wed Jul 13 00:30:46 2011 +0200 extra/Configs/Config.in: drop "default n" lines "default n" is the default default. No need to mention it explicitly. Signed-off-by: Daniel Mack commit 966adfe8ed0364ae32cc80d375d736298972d031 Author: Kevin Cernekee Date: Sun Jul 24 01:19:14 2011 -0700 ldso/mips: Clean up warnings Trivial fixes for these warnings: CC ldso/libdl/libdl.oS In file included from ldso/ldso/ldso.c:46:0: ldso/ldso/mips/elfinterp.c:88:1: warning: no previous prototype for '__dl_runtime_pltresolve' ldso/ldso/ldso.c: In function '_dl_get_ready_to_run': ldso/ldso/ldso.c:475:5: warning: assignment makes pointer from integer without a cast In file included from ldso/ldso/ldso.c:1097:0: ldso/ldso/dl-elf.c: In function '_dl_load_elf_shared_library': ldso/ldso/dl-elf.c:811:3: warning: assignment makes pointer from integer without a cast Signed-off-by: Kevin Cernekee Signed-off-by: Carmelo Amoroso commit a2f827c7c28c955ad49b32909452e42ccfc5e5c1 Author: Kevin Cernekee Date: Sun Jul 24 01:19:13 2011 -0700 ldso/mips: dlsym() incorrectly matches undefined symbols check_match() relies on checking for (sym->st_value == 0) to see if the symbol is undefined. This works reasonably well on most architectures, such as ARM or i386: $ readelf -s /lib32/libcap.so.2 | grep -E "\" 17: 00000000 0 FUNC GLOBAL DEFAULT UND malloc@GLIBC_2.0 (2) However, on MIPS, libbfd puts nonzero data in the st_value field to facilitate resetting the symbol's GOT entry if the library that defines the symbol gets unloaded: $ mipsel-linux-readelf -s libfoo.so | grep -E "\" 74: 00003140 0 FUNC GLOBAL DEFAULT UND malloc This can cause check_match to report a false positive when examining the external symbol reference. Consequently dlsym() will return a bad pointer to the caller. Use the special MIPS logic from glibc-ports-2.13 to avoid this situation. Signed-off-by: Kevin Cernekee Signed-off-by: Carmelo Amoroso commit 2d4243ce60bcd7a9f64c2ce670bc456f2c7da708 Author: Kevin Cernekee Date: Sun Jul 24 01:19:12 2011 -0700 ldso/mips: Enable bootstrap relocations _dl_reltypes_tab[] is an array of pointers to constant strings: Contents of section .data: 20000 01000000 02000000 00000000 00000000 ................ 20010 70e50000 7ce50000 88e50000 94e50000 p...|........... ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ (pointers are LE) Contents of section .rodata: e570 525f4d49 50535f4e 4f4e4500 525f4d49 R_MIPS_NONE.R_MI e580 50535f31 36000000 525f4d49 50535f33 PS_16...R_MIPS_3 e590 32000000 525f4d49 50535f52 454c3332 2...R_MIPS_REL32 These pointers require relocation: DYNAMIC RELOCATION RECORDS OFFSET TYPE VALUE 00000000 R_MIPS_NONE *ABS* 0001fffc R_MIPS_REL32 *ABS* 00020010 R_MIPS_REL32 *ABS* 00020014 R_MIPS_REL32 *ABS* 00020018 R_MIPS_REL32 *ABS* On MIPS, only GOT relocations are currently handled by ldso during startup. The net effect is that when running with "LD_DEBUG=reloc", ldso itself crashes before the program even starts. This is caused by _dl_dprintf() dereferencing an unadjusted string pointer such as 0xe570. This patch enables the missing relocations and allows LD_DEBUG to work as designed. Signed-off-by: Kevin Cernekee Signed-off-by: Carmelo Amoroso commit 3d5cec4ff704c2dec151f3cdbcc426d746d37fcc Author: Richard Braun Date: Sat Jul 9 14:06:52 2011 +0200 libdl: add option for controlling dl_cleanup When debugging memory leaks with Valgrind, it is required that dynamically loaded shared objects are not unloaded when a process exits, otherwise symbols from those files aren't correctly resolved in allocation traces. This patch adds the LDSO_NO_CLEANUP configuration option to control this behaviour. Signed-off-by: Richard Braun Signed-off-by: Carmelo Amoroso commit 63e61626c1e052c55d76861b771eda6602a14477 Author: Douglas Mencken Date: Tue Jul 12 09:39:17 2011 +0200 ldso: fix build error due to missing variable 'st' Fix a build error triggered when LDSO_PRELOAD_FILE_SUPPORT is enabled due to missing definition of 'st' variable. Signed-off-by: Douglas Mencken Signed-off-by: Carmelo Amoroso commit 1537893ad3e5196facdfcbdbdd4223293edfc46d Author: Khem Raj Date: Thu Jul 7 09:50:17 2011 -0700 x86_64/elfinterp.c: Protect missed debug _dl_printf with __SUPPORT_LD_DEBUG__ Signed-off-by: Khem Raj commit f87898ca4a7d4b7171779c06ff1f4848efeee431 Author: Khem Raj Date: Thu Jun 30 00:32:11 2011 -0700 mips/signalfd.h: SFD_NONBLOCK for mips is 0200 unlike 04000 commonly Exposed by udev 171 which uses signalfd Signed-off-by: Khem Raj commit 50b6b440f9689db83a274978078fd7a14abd1b1d Author: Khem Raj Date: Mon Jun 27 17:48:18 2011 -0700 Config.in.arch: Free UCLIBC_HAS_FPU setting from depending on UCLIBC_HAS_FLOATS UCLIBC_HAS_FLOATS and UCLIBC_HAS_FPU are denoting two different aspects. UCLIBC_HAS_FLOATS covers the floating point operations which has nothing to do if you have FPU or not. Signed-off-by: Khem Raj commit 75d95590a35796186436a4cb05fe91a44d9dadae Author: Carmelo Amoroso Date: Mon Jun 27 15:26:22 2011 +0200 ldso: arm: fix build when prelinking is enabled. This is a post merge fix to address build issue when PRELINK support is enabled. Signed-off-by: Carmelo Amoroso commit 1c1391e6e507337103f2c7ce4da768b2842a8aa1 Merge: 7682323 18bf00f Author: Carmelo Amoroso Date: Fri Jul 1 09:48:01 2011 +0200 Merge remote-tracking branch 'origin/master' into prelink * origin/master: libc: add missing lock initialization in vswprintf libubacktrace: fix makefile clean target Signed-off-by: Carmelo Amoroso commit 18bf00f3123707f9d1d7a2876121dea1c2c39a89 Author: Maksim Rayskiy Date: Thu Jun 16 18:14:01 2011 -0700 libc: add missing lock initialization in vswprintf Unlike vsnprintf, vswprintf does not properly initialize locking elements of FILE structure, which in some unfortunate cases can result in lockups in _vfwprintf_internal. Interesting, the initialization code was removed in 2a915734a32c5aec9a6a76c13bcb074d30e64171 at the same time as it was added to vsnprintf. Signed-off-by: Maksim Rayskiy Signed-off-by: Carmelo Amoroso commit c61993f7e0ad3a9014a4b73823faf1ba914f48a0 Author: Carmelo Amoroso Date: Fri Jun 24 16:27:36 2011 +0200 libubacktrace: fix makefile clean target Fix makefile lean target removing the old reference to the non existing libubacktrace_ARCH_OUT variable. Signed-off-by: Carmelo Amoroso commit 7682323a3a798d6f15708f228f859a64cb869aa3 Merge: 3004ce0 74da7a8 Author: Carmelo Amoroso Date: Fri Jun 24 16:24:25 2011 +0200 Merge remote-tracking branch 'origin/master' into prelink * origin/master: (61 commits) fts: fix warning due to old-style function definition ldso_tls: fix compiler warning due to missing cast resolv: fix bug in res_init with ipv6 nameservers config: Fix passing defconfig args buildsys: pt-initfini.s depends on uClibc_config.h libdl: search for ELF_RTYPE_CLASS_DLSYM in dlsym() resolv: try next server on SERVFAIL getaddrinfo: allow numeric service without any hints bump version to 0.9.33-git nptl/pthread: Correct path for machine specific pt-initfini.c ctor/dtor nptl: Fix init and fini function compilation Rules.mak: Rearrange appending UCLIBC_EXTRA_CFLAGS to CFLAGS ARM: remove EABI/OABI selection ARM: detect BX availibility at build time ARM: #include where __USE_BX__ is used ARM: transform the EABI/OABI choice into a boolean ARM: remove sub-arch/variants selection from menuconfig ARM: introduce blind options to select & force THUMB mode ARM: reorder "Use BX" option Fix __libc_epoll_pwait compile failure on x86 ... Conflicts: ldso/libdl/libdl.c Signed-off-by: Carmelo Amoroso commit 74da7a88552ecf518e64642c90742fddca57be00 Author: Carmelo Amoroso Date: Fri Jun 24 15:05:55 2011 +0200 fts: fix warning due to old-style function definition Signed-off-by: Carmelo Amoroso commit c2eaaf39dc68e5d2acc4fbae95d815c85dd5a4fb Author: Carmelo Amoroso Date: Mon Jun 13 19:58:22 2011 +0200 ldso_tls: fix compiler warning due to missing cast Fix compiler warning (as below) due to missign cast In file included from ldso/ldso/ldso.c:42:0: ldso/ldso/dl-tls.c: In function 'init_tls': ldso/ldso/dl-tls.c:1028:24: error: initialization makes pointer from integer without a cast Signed-off-by: Carmelo Amoroso commit e8dc8eca8d312a717dc94f9783af212aed388c11 Author: Bernhard Reutner-Fischer Date: Fri Jun 17 20:27:51 2011 +0200 resolv: fix bug in res_init with ipv6 nameservers Thanks to Christian Krause for finding and fixing this! Signed-off-by: Bernhard Reutner-Fischer commit 97c3c5f634379ff7b16dcaeff34b7f3eeea2b3f1 Author: Bernhard Reutner-Fischer Date: Tue Jun 14 18:48:19 2011 +0200 config: Fix passing defconfig args Don't rely on argument-shuffling but use correct arguments in the first place. In bug#3589 Thomas Suckow writes: The modified kconfig defines -D to be the same function as -d. In addition -d does not take an argument and Config.in should be passed as a non-option argument. The existing argument order appears to work on distributions such as Fedora but chokes on Cygwin (newlib?). Signed-off-by: Bernhard Reutner-Fischer commit 4cf580dfcc5846b89a4cf688ecca431d5a5e5647 Author: Bernhard Reutner-Fischer Date: Tue Jun 14 17:51:58 2011 +0200 buildsys: pt-initfini.s depends on uClibc_config.h Signed-off-by: Bernhard Reutner-Fischer commit 6b76a7129903ab3726ec0217349b526262bec3ac Author: Bernhard Reutner-Fischer Date: Tue Jun 14 16:48:51 2011 +0200 libdl: search for ELF_RTYPE_CLASS_DLSYM in dlsym() On FDPIC platforms, functions are passed by function descriptor, not by pointers. If you don't specify ELF_RTYPE_CLASS_DLSYM when calling _dl_find_hash() the return value from dlsym() will be a pointer not a function descriptor, crashing the program. The bug was introduced when TLS support was added in 534661b91c98492995274c364c8177c45efc63db Closes bug#3433 Signed-off-by: Bernhard Reutner-Fischer commit 0100056707c0ca5c51bb0b8d88612a407be09ef1 Author: Bernhard Reutner-Fischer Date: Tue Jun 14 16:31:00 2011 +0200 resolv: try next server on SERVFAIL in bug 3637 Andrey Kovalev aka pxe.ru writes: getaddrinfo does NOT add domain to query when receive SERVFAIL RFC1035 7.2 suggests that - If a resolver gets a server error or other bizarre response from a name server, it should remove it from SLIST, and may wish to schedule an immediate transmission to the next candidate server address. So let's try the next server upon SERVFAIL even if it's not strictly required. Signed-off-by: Bernhard Reutner-Fischer commit bc3be18145e4d57e7268506f123c0f0f373a15e2 Author: Natanael Copa Date: Sun Jun 12 12:09:04 2011 +0000 getaddrinfo: allow numeric service without any hints This appears to correspond to what glibc does and this fixes an issue with iptables-1.4.11 with udp and raw port numbers. (see http://bugzilla.netfilter.org/show_bug.cgi?id=721) This fixes #3841 https://bugs.busybox.net/show_bug.cgi?id=3841 Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer commit 2fa7315f3456d13512e9a65848c4f0874fce9c5b Author: Bernhard Reutner-Fischer Date: Tue Jun 14 10:27:17 2011 +0200 bump version to 0.9.33-git Signed-off-by: Bernhard Reutner-Fischer commit f282ca2286c728c805dff4d57f7c3b3404f1a618 Author: Khem Raj Date: Mon Jun 13 17:13:52 2011 -0700 nptl/pthread: Correct path for machine specific pt-initfini.c Signed-off-by: Khem Raj commit c97ce776368ec5d9d954fc8653f3e1c11490fc74 Author: Khem Raj Date: Mon Jun 13 16:30:55 2011 -0700 ctor/dtor nptl: Fix init and fini function compilation We need to define the rules for .S files so it gets the include paths some architectures like mips include headers Some architectures e.g. SH have their own version of pt-initfini.c so look for that first before resorting to generic version of pt-initfini.c Signed-off-by: Khem Raj commit 45046d8134da4dee6a5d382cfbd17a1039e55f27 Author: Khem Raj Date: Sat Jun 11 00:15:02 2011 -0700 Rules.mak: Rearrange appending UCLIBC_EXTRA_CFLAGS to CFLAGS UCLIBC_EXTRA_CFLAGS is currently added before the OPTIMIZATION flags and OPTIMIZATION is chosen to be Os by default. But in OE we pass the optimisation flags through UCLIBC_EXTRA_CFLAGS but they are not effective since -Os is specified at last. So we need to change the order of these option flags Signed-off-by: Khem Raj commit 4151e14cc8b60f5b3478d6c1f9372e427f7e05c4 Author: Yann E. MORIN Date: Sun Jan 9 01:45:10 2011 +0100 ARM: remove EABI/OABI selection Rely on the compiler to be properly setup for the default ABI. When installing-headers, there are two cases: - NPTL: no issue, a cross-compiler is already expected - LinuxThreads: no issue, EABI/OABI has no impact on installed headers. Signed-off-by: "Yann E. MORIN" Cc: Khem Raj Cc: Bernhard Reutner-Fischer Cc: Carmelo AMOROSO Signed-off-by: Khem Raj commit 7a246fda8e3bd2067d44e01c30c8ce761dad39a8 Author: Yann E. MORIN Date: Sun Jan 9 01:45:09 2011 +0100 ARM: detect BX availibility at build time The "use BX" option is now a suggestion that BX be used if available. Use a macro to detect if BX is available at build time. If so, and the user requested it be used, then use it. Otherwise, error out. Macro courtesy Khem RAJ: http://lists.uclibc.org/pipermail/uclibc/2009-April/042301.html Signed-off-by: "Yann E. MORIN" Cc: Khem Raj Cc: Bernhard Reutner-Fischer Cc: Carmelo AMOROSO Signed-off-by: Khem Raj commit 3862c65a05983b2b18cb7884a124a905828f7a18 Author: Yann E. MORIN Date: Sun Jan 9 01:45:08 2011 +0100 ARM: #include where __USE_BX__ is used The check for __USE_BX__ will be available in bits/arm_asm.h, so the latter must be included wherever the former is used. Signed-off-by: "Yann E. MORIN" Cc: Khem Raj Cc: Bernhard Reutner-Fischer Cc: Carmelo AMOROSO Signed-off-by: Khem Raj commit 7f40574243cfdbecbc5dde1798105027b84b81fc Author: Yann E. MORIN Date: Sun Jan 9 01:45:07 2011 +0100 ARM: transform the EABI/OABI choice into a boolean The CONFIG_ARM_OABI option is never used. Signed-off-by: "Yann E. MORIN" Cc: Khem Raj Cc: Bernhard Reutner-Fischer Cc: Carmelo AMOROSO Signed-off-by: Khem Raj commit 3936325282d988fcc998b4dfc611fcffcff29c40 Author: Yann E. MORIN Date: Sun Jan 9 01:45:06 2011 +0100 ARM: remove sub-arch/variants selection from menuconfig Rely on the compiler to be correctly set up to generate appropriate code for the target variant. This exposes the Thumb option, as it is no longer auto-selected. The "Use BX" no longer depends on supported CPU to be selected, so it now defaults to 'n' as it shall work by default on CPUs that do not have BX. Signed-off-by: "Yann E. MORIN" Cc: Khem Raj Cc: Bernhard Reutner-Fischer Cc: Carmelo AMOROSO Signed-off-by: Khem Raj commit bda6117489ad3de5abfb008a8cb065c9059cd60c Author: Yann E. MORIN Date: Sun Jan 9 01:45:05 2011 +0100 ARM: introduce blind options to select & force THUMB mode Add three new blind options to set use of Thumb mode: - COMPILE_IN_THUMB_MODE - if set, CFLAGS will contain -mthumb - if unset, the compiler's default is used - HAS_THUMB - CPUS with Thumb instruction set can select this - use of BX depends on this - FORCE_THUMB - CPUs that are Thumb-only must select this - this selects: HAS_THUMB, COMPILE_IN_THUMB_MODE and USE_BX Also, remove leading space in Rules.mak. Signed-off-by: "Yann E. MORIN" Cc: Khem Raj Cc: Bernhard Reutner-Fischer Cc: Carmelo AMOROSO Signed-off-by: Khem Raj commit 0e5a44e8ccf1c5ac49c1319f74c296e875f290e2 Author: Yann E. MORIN Date: Sun Jan 9 01:45:04 2011 +0100 ARM: reorder "Use BX" option "Use BX" is not available on all CPUs, so the option depends on a correct CPU to be chosen . It is weird that e BX" then appears _above_ the CPU selection, not below. Move the "Use BX" after the CPU selection. Signed-off-by: "Yann E. MORIN" Cc: Khem Raj Cc: Bernhard Reutner-Fischer Cc: Carmelo AMOROSO Signed-off-by: Khem Raj commit 8245f3b4638fdff2011c2657af1bb211def704bc Author: Phil Blundell Date: Sat Jun 11 01:10:46 2011 -0400 Fix __libc_epoll_pwait compile failure on x86 This prevents "memory input 7 is not directly addressable" errors. | libc/sysdeps/linux/common/epoll.c: In function '__libc_epoll_pwait': | libc/sysdeps/linux/common/epoll.c:71:80: error: memory input 7 is not directly addressable | libc/sysdeps/linux/common/epoll.c:75:86: error: memory input 7 is not directly addressable | make: *** [libc/sysdeps/linux/common/epoll.o] Error 1 | make: *** Waiting for unfinished jobs.... Signed-off-by: Phil Blundell Signed-off-by: Jason Woodward Signed-off-by: Khem Raj commit 9a923848c48330ad6c96dc457402eafc2463dd7c Author: Khem Raj Date: Fri Jun 10 13:05:34 2011 -0700 nptl/Makefile.in: Fix the build break caused by UCLIBC_CTOR_DTOR enabling Extra / somehow does not match the target and complains that $(top_builddir)libpthread/nptl/sysdeps/pthread/crti.o has no rules to build Signed-off-by: Khem Raj commit 3004ce0c9619f89bf8e64931edd696bf4df8d2e1 Merge: 3b3285b 4916fd8 Author: Carmelo Amoroso Date: Wed May 4 08:31:16 2011 +0200 Merge remote-tracking branch 'origin/master' into prelink * origin/master: (32 commits) libubacktrace: fix backtrace support on arm-eabi, which needs libgcc_eh linked too getaddrinfo.c: fix incorrect check for ERANGE from gethostbyaddr_r getaddrinfo.c: improve code readability. No functional changes string: remove unused variable x86_64: silence warning if !TLS buildsys: prettify ssp.c handling madvise is LINUX_SPECIFIC test_nptl: fix expected result for tst-cputimer[123] test_nptl: fix expected result for tst-clock2 test buildsys: make $(LOCAL_INSTALL_PATH) phony ether_aton: reject invalid input tests: disable ether tests if !HAS_SOCKET inet: add ether_aton testcase sysconf: clock_getres depends on HAS_REALTIME __rt_sigwaitinfo: depends on HAS_REALTIME buildsys: minor fixes in Makefile.arch for C6X buildsys: minor fixes in Makefile.arch for microblaze libubacktrace: enabled for all archs indeed. sparc: don't access fp registers when configured for no fpu libubacktrace: generic implementation based dwarf ... Conflicts: ldso/ldso/dl-elf.c ldso/ldso/mips/elfinterp.c ldso/ldso/x86_64/elfinterp.c Signed-off-by: Carmelo Amoroso commit 3b3285b1b7c02d36c74a6ae265fdb02ca991c96b Merge: 289d19f 85f4b02 Author: Carmelo Amoroso Date: Wed Apr 6 15:13:59 2011 +0200 Merge remote-tracking branch 'origin/master' into prelink * origin/master: (137 commits) utils/ldd: Check for returned pointer from strrchr not the value it holds cris: add provide arch-specific vfork implementation lutimes.c, stubs.c: fix compiling lutimes, if __NR_utimensat is not defined bump version to 0.9.32-rc3-git release 0.9.32-rc3 memalign: include sys/param.h for MAX arm/bits/atomic.h: Include common/bit/atomic.h for thumb1 wctype.h: fix libc_hidden_proto for iswupper and add it for iswspace add libc_hidden_proto for wcs[n]casecmp_l really fix missing __libc_drand48_data Revert "missing prototype of __libc_drand48_data fixed" missing prototype of __libc_drand48_data fixed time.c, time.h: remove unused hidden strftime/strptime nanosleep.c: remove duplicated libc_hidden_proto ctype.c, ctype.h: remove commented parts that were banned for removal after 0.9.31 _wctype.c, wctype.h: remove unused isw* and wctype_l hidden functions time.c, wchar.h: remove unused hidden wcsftime str[n]casecmp.c: fix hidden usage remove unused hidden functions frv/memset.S: add missing libc_hidden_def ... Conflicts: ldso/ldso/ldso.c Signed-off-by: Carmelo Amoroso commit 289d19f45d7f8af9a4079938a3426aafdd2674ba 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 (cherry picked from commit 435471db8561e4686e5921b7f719ab6d5a0d06f7) Signed-off-by: Carmelo Amoroso commit ac5e9d08f4f7aa004e48b9484c3005f0ecc0a105 Merge: fd3120f 269f901 Author: Carmelo Amoroso Date: Thu Feb 3 11:14:03 2011 +0100 Merge remote branch 'origin/master' into prelink * origin/master: arm: fix the static link problem for ARM due to undefined __tls_get_addr nios2: Name architecture correctly in endian.h header nptl/mips64: Fix build when using mips64 and ABIs other than o32 mips: avoid segmentation fault when RLD_MAP is 0 libc: fix linker script generation for libubacktrace.so stdio: fix diagnostic message Signed-off-by: Carmelo Amoroso commit fd3120fb9ec9fe01d458962dca510eb81d06fcc8 Author: Filippo Arcidiacono Date: Wed Jan 26 18:33:31 2011 +0100 ldso: fix _dl_debug_lookup to handle protected symbols Initialize symbol_ref.sym field before calling _dl_find_hash to correctly handle protected symbols when tracing objects in the prelink stage. Signed-off-by: Filippo Arcidiacono Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso commit c0e02109219a857fc94a26a9eb07d60527730073 Author: Filippo Arcidiacono Date: Tue Jan 25 10:49:27 2011 +0100 libdl: fix tls symbol lookup in dlsym Due to merge with prelink, the sym_ref.tpnt is always set when the symbol is found, so it needs to call the _dl_tls_symaddr only for tls symbols. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 2aee0efdec50321ffbe6891c593611461cc7b16e Merge: 8100a07 b5dd2e7 Author: Carmelo Amoroso Date: Fri Jan 21 15:04:47 2011 +0100 Merge remote branch 'origin/master' into prelink * origin/master: bump version to 0.9.32-rc2-git release 0.9.32-rc2 nptl: Fix __USER_LABEL_PREFIX__ concatenatio nptl: fix start_thread() for _STACK_GROWS_UP ldso: get rid of _dl_lookup_hash Add protected symbols support for all architectures Revert "ldso/arm: Correct protected symbol resolution" Revert "ldso_sh: add support for protected symbols to SH" Revert "ldso/i386: support protected symbols" cris: Fix build issues syslog: fix 'everyone logs with user facility' __psfs_parse_spec: always use long int for %p buildsys: headers target should not depend on sysnum.h buildsys: fix make release target nptl: get rid of the last preprocessor warning when __ASSUME_TGKILL is not defined remove uClibc_ctype.h if !LOCALE Revert "Makefile.in: Add header to 'all' target" nptl: get rid of preprocessor warning when __ASSUME_TGKILL is not defined Conflicts: ldso/include/dl-hash.h ldso/ldso/arm/elfinterp.c ldso/ldso/avr32/elfinterp.c ldso/ldso/bfin/elfinterp.c ldso/ldso/cris/elfinterp.c ldso/ldso/dl-hash.c ldso/ldso/i386/elfinterp.c ldso/ldso/m68k/elfinterp.c ldso/ldso/mips/elfinterp.c ldso/ldso/powerpc/elfinterp.c ldso/ldso/sh/elfinterp.c ldso/ldso/sh64/elfinterp.c ldso/ldso/sparc/elfinterp.c ldso/ldso/x86_64/elfinterp.c ldso/ldso/xtensa/elfinterp.c ldso/libdl/libdl.c Signed-off-by: Carmelo Amoroso commit 8100a075b7dd7471562decb1860571a335d68b0d Merge: e018b8b 4ac7ad3 Author: Carmelo Amoroso Date: Mon Jan 3 14:37:49 2011 +0100 Merge commit 'origin/master' into prelink Signed-off-by: Carmelo Amoroso commit e018b8ba1a0110120429de34366459af0771abe2 Merge: d181797 640220f Author: Carmelo Amoroso Date: Tue Dec 14 14:50:49 2010 +0100 Merge commit 'origin/master' into prelink Signed-off-by: Carmelo Amoroso commit d181797c70183b897330a290e6f5f5d7e7812770 Merge: 57f6cce e2903dd Author: Carmelo Amoroso Date: Mon Dec 6 15:37:37 2010 +0100 Merge commit 'origin/master' into prelink commit 57f6cce72c889f2e7b342e87a565a064320a6ee2 Merge: 4ec89b8 5dea871 Author: Carmelo Amoroso Date: Sun Nov 28 21:09:47 2010 +0100 Merge commit 'origin/master' into prelink Conflicts: ldso/include/dl-hash.h Signed-off-by: Carmelo Amoroso commit 4ec89b87bc0eea8d9ca6b50564d12eeb3b1b0119 Author: Filippo Arcidiacono Date: Mon Oct 11 12:56:21 2010 +0200 ldso: Extend prelink support for all other achitectures Update Arch specific part of the dynamic linker to the latest cahnges required by prelink: - Use _dl_loaded_modules->scope as global symbol scope - Pass the sym argument (or NULL) to the _dl_find_hash - Update _dl_parse, _dl_do_reloc, _dl_do_lazy_reloc and _dl_parse_relocation_information to reflect the change of the scope argument's type - Add the call to _dl_debug_lookup used for trace prelinking. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 8d29ef117dba66ab67419a69d272779d50f147f0 Merge: b9766aa 74407db Author: Carmelo Amoroso Date: Fri Sep 24 09:02:41 2010 +0200 Merge commit 'origin/master' into prelink Conflicts: ldso/ldso/sh/elfinterp.c Signed-off-by: Carmelo Amoroso commit b9766aa08c90b6718d5497d6a6cf9e6f737e5141 Author: Filippo Arcidiacono Date: Thu Aug 26 12:00:03 2010 +0200 ldso: Fix loadaddr and mappaddr when prelink support is enabled. Fixed loadaddr and mappaddr fields to correctly work when prelink support is enabled. - loadaddr is an offset relative to the first loadable segment. - mapaddr is the address where the object has been mapped in memory. Non PIC library detection fixed too. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit a33796043bdef5345bc00a528c942f91a87af8e9 Author: Filippo Arcidiacono Date: Mon Aug 2 17:23:35 2010 +0200 ldso: Add runtime prelink support Added runtime prelink support to be able to run a prelinked application; at process startup only the conflicts will be relocated. This speed up the startup time. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 02f56b3ae9f620528c3c1bb42662b4499d19f383 Author: Filippo Arcidiacono Date: Fri Jul 30 14:18:38 2010 +0200 ldso: Do not add the ld.so at the end of the loaded modules list The dynamic linker was included indifferently at the end of the loaded modules list. In order to be used with prelink, it is required to included the ld.so in the local scope of each shared libraries that depends directly on it. Also it is included in the global scope at the first occurrence. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 4136ca46e391faf1a6ce58b9a1a709b248213fb4 Author: Filippo Arcidiacono Date: Fri Jul 30 09:17:58 2010 +0200 ldso: Add support for LD_WARN and LD_TRACE_PRELINKING Added support for the following tracing capabilities: - LD_WARN to warn about undefined symbols during the lookup stage. - LD_TRACE_PRELINKING to trace the needed libraries of the object that we are prelinking. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 94cc6edb78a12655c0602a246fa1cbdc8c6d0ad9 Author: Filippo Arcidiacono Date: Thu Jul 29 11:35:05 2010 +0200 ldso: Rework global scope handling and symbol lookup mechanism Global symbol scope is implemented as a linked list of local scope, that dynamically grows and shrinks when dlopen/ dlclose are called. Each local scope is implemented as an array of pointer to struct elf_resolve. This will help to detect conflict when LD_TRACE_PRELINKING option will be implemented. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso commit 637e2b2440f69e22932edd71bd2f0b1210dc32ea Author: Filippo Arcidiacono Date: Fri Jul 31 14:56:38 2009 +0200 ldso: Add implementation of ld.so standalone execution The dynamic linker can be run either indirectly through running some dynamically linked program or library (in which case no command line options to the dynamic linker can be passed and, in the ELF case, the dynamic linker which is stored in the .interp section of the program is executed) or directly by running: /lib/ld-uClibc.so.* [OPTIONS] [PROGRAM [ARGUMENTS]] Stand-alone execution is a prerequisite for adding prelink capabilities to uClibc dynamic linker, as well useful for testing an updated version of the dynamic linker without breaking the whole system. Currently supported option: --library-path PATH use given PATH instead of content of the environment variable LD_LIBRARY_PATH (Mandatory for prelinking) Not supported options: --list list all dependencies and how they are resolved --verify verify that given object really is a dynamically linked object we can handle --inhibit-rpath LIST ignore RUNPATH and RPATH information in object names in LIST This feature can be enabled by setting LDSO_STANDALONE_SUPPORT=y Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso