summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-01-05- fixup gnu_inline vs. C99 inlineBernhard Reutner-Fischer
- add missing header guards while at it
2008-01-05update my e-mail addressMike Frysinger
2008-01-05if an arch does not provide __NR_mmap, fall back to __NR_mmap2 (this just ↵Mike Frysinger
generalizes what Blackfin was already doing)
2008-01-05Chris Zankel writes:Mike Frysinger
The following patches add support for the Xtensa processor architecture to uClibc. They are based on a recent SVN checkout (12/05/2007). The first patch (attached to this post) adds Xtensa support to various shared configuration and make files. The following patches then include the Xtensa specific files and directories. I welcome any feedback and would appreciate it if you could include the patches into the mainline tree. I am certainly committed to maintain the port. Bob Wilson was kind enough to review the patches. Some notes about the architecture: Xtensa is a configurable and extensible processor architecture developed by Tensilica. For more information, please visit: www.linux-xtensa.org.
2008-01-05patch from Hans-Christian Egtvedt to silence some spurious signed warningsMike Frysinger
2008-01-05whitespace only: touchups from Hans-Christian EgtvedtMike Frysinger
2008-01-05patch from Mats Erik Andersson for better catching edge cases in optimized ↵Mike Frysinger
string functions
2008-01-05add BOTHER define from termios2Mike Frysinger
2008-01-05give EM_AVR32 a little commentMike Frysinger
2008-01-05Brian Austin writes: This patch adds MAVERICK CRUNCH FPU support for the ↵Mike Frysinger
Cirrus Logic EP93XX ARM9 Procs.
2008-01-05not everyone is a ninja: explicitly state that people should convert from ↵Mike Frysinger
sys_errlist[] to strerror()
2008-01-05whitespace only: fix indentationMike Frysinger
2008-01-05blah, enable the stupid hidden proto for fcntlMike Frysinger
2008-01-05krichy writes in 292:Mike Frysinger
I noticed, that in libc/misc/syslog/syslog.c when the syslog socket is opened, the close-on-exec flag is not set, as it is in gnu libc. This enables that behavior.
2008-01-05zen in #938 writes:Mike Frysinger
I had occasion to look at the uClibc script "getent" and felt compelled to clean out the cargo-cult programming style. I believe that this version is clearer, and I've added some minor features while I was in there: * usage clause, if no arguments or "--help" requested * original version appears to have been intending to "exit 2" on failure to match, but didn't * basic, probably good enough, support for ethers and netgroups * faster ;-) [as if that matters for this script]
2008-01-05implement semtimedop for #927Mike Frysinger
2008-01-05pop -m32 onto LDFLAGS/CFLAGS to make building on x86_64 multilib systems ↵Mike Frysinger
transparent
2008-01-05michael_d writes in 1879:Mike Frysinger
When no TIOCGPTN definition is present in the kernel headers, the library's ptsname() function will not work. The libc/stdlib/ptsname_r.c file is the problem. This file includes a complicated nest of #if directives. One of these #if's has the opposite sense from what is required.
2008-01-05michael_d writes in #1869: make sure GNU error functions output 'program: ' ↵Mike Frysinger
as documented in the function api
2008-01-05michael_d writes in #1874: Mike Frysinger
On an i386 platform with no rt_sigsuspend syscall (ie: Linux 2.0), compilation will halt on libc/sysdeps/linux/common/sigsuspend.os with a cryptic error message: "Error: non-constant expression in ".if" statement" I've investigated and found that the cause is that a literal '0' is being passed into a block of complex assembler macrology that is only prepared to deal with register names - '%eax', etc. In turn, that seems to be because of a typo in the GCC register constraints. The constraints for 2 and 3-argument syscalls includes a "C" constraint. To gcc, "C" means an SSE floating point constant -- an unlikely element in a syscall. I suspect the author meant to type "S" (%esi).
2008-01-05michael_d in #1849 writes: The getcwd() implementation in the absence of a ↵Mike Frysinger
getcwd syscall has an off-by-one allocation bug. As a result, sometimes the returned string has garbage at the end.
2007-12-22plug a memory leak when using execl* functions on no-mmuMike Frysinger
2007-12-22mark a bunch of public mem/str functions as weak so that people who insist ↵Mike Frysinger
on their own local copies while static linking dont hit link failures when other uClibc code force the libc.a objects to be pulled in via the hidden alias symbols
2007-12-22add hidden defs for execv/execlp for completenessMike Frysinger
2007-12-08import trunc()/truncf() for ISO C requirements, otherwise fortran can hit ↵Mike Frysinger
infinite loops when it generates builtins+trunc() substitutes
2007-12-07Removed pointless initialization to 0 of DIR fieldsCarmelo Amoroso
after having added memset. Thanks to Peter Mazinger for pointing this out. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2007-12-07I don't remember exactly why we decided to pick the caller's value ofCarmelo Amoroso
sa_restorer when SA_ONSTACK is set, but it seems to break LTP's sigaltstack testcase. Some users have reported problems with sigaltstack as well; hopefully this will fix it. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
2007-12-05Fix opendir problem when statically linked due to a missingCarmelo Amoroso
initialization of the mutex field within DIR struct. When linked dynamically instead, __pthread_mutex_init will initialize the mutex itself. Without this fix, any call to readdir will stuck forever trying to acquire the mutex. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2007-12-04Blackfin FD-PIC patch 6/6.Bernd Schmidt
These are mostly the changes necessary to deal with loading the libraries into memory. A couple new target macros are defined for this purpose, and the code in dl-elf.c is modified to deal with nommu systems.
2007-12-03Fix a few warnings introduced by my previous commits.Bernd Schmidt
2007-12-03Blackfin FD-PIC patches 5/6.Bernd Schmidt
A couple more target macros for ld.so to deal with FD-PIC support. We need special code to compute the initial got and dpnt, and we need to pass extra arguments to _dl_get_ready_to_run.
2007-12-03Blackfin FD-PIC patch 4/6.Bernd Schmidt
Add a hash table for function descriptors on FD-PIC targets.
2007-12-03Blackfin FD-PIC patch 3/6.Bernd Schmidt
Change _dl_find_hash to _dl_lookup_hash, as on the NPTL branch. _dl_find_hash is now a wrapper function around it; unlike on the NPTL branch, it retains the old interface so that not all callers need to be changed. _dl_lookup_hash can optionally give its caller a pointer to the module where the symbol was found. Introduce ELF_RTYPE_CLASS_DLSYM for lookups from libdl. Spelling fixes in the Blackfin port, since Alex Oliva's original version of these patches used _dl_find_hash_mod as the name of the function rather than _dl_lookup_hash.
2007-12-03Blackfin FD-PIC patch 2/6.Bernd Schmidt
Add the necessary changes in ld.so and libdl to deal with targets that prepend an underscore to symbol names.
2007-12-03Blackfin FD-PIC patch 1/6.Bernd Schmidt
Add a new function _dl_free. In _dl_malloc, ensure we always get back a full page from mmap. Reset _dl_malloc_function and _dl_free_function when libdl is initialized.
2007-12-03Some versions of gcc consider inline merely a hint. AVR32 depends on theCarmelo Amoroso
system calls actually being inlined, so AVR32 needs to use __always_inline instead of just inline. The attached patch changes this for the system calls. Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
2007-12-03realpath: reduce stack usage from 3*PATH_MAX (12k) to 1*PATH_MAX (4k).Denis Vlasenko
reduction is achieved by direct use of user-supplied PATH_MAX sized buffer for result (without intermediate copy) and changes in copy_buf[] usage - now it is used for both "source" pathname and link name (it works because they have to be less than PATH_MAX combined, otherwise we return NULL).
2007-11-28Fix merging error: a macro was renamed.Bernd Schmidt
2007-11-23Blackfin crt1.S fixes for building with -msep-data.Bernd Schmidt
2007-11-23Add some necessary Makefile bits for UCLIBC_FORMAT_FLAT_SEP_DATA.Bernd Schmidt
2007-11-23Some shared flat improvements.Bernd Schmidt
Fix minor errors: - UCLIBC_SHARED_FLAT_ID instead of SHARED_FLAT_ID - use -Wl,-shared-lib-id properly Use libc_so.a as the source for the shared libc, in order to be able to use -mleaf-id-shared-library on the Blackfin.
2007-11-23Add necessary Makefile rules for the Blackfin.Bernd Schmidt
2007-11-23A better atomic ops implementation for the Blackfin, relying on a featureBernd Schmidt
present in our recent kernels.
2007-11-23mcontext_t shouldn't have a version argument, and fix REG_B0 definition.Bernd Schmidt
2007-11-23From Jie Zhang:Bernd Schmidt
__bswap_16 could not assume that it's zero extended when an unsigned short int is loaded into the data register.
2007-11-23Change test for a define that got renamed a while ago.Bernd Schmidt
2007-11-23Disable tst-ftime_l test if Extended Locale SupportCarmelo Amoroso
is not enabled, otherwise build will fail Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2007-11-22Ignore entries of "-1" in rofixup; the linker sometimes has no choice but toBernd Schmidt
create these for deleted entries in .eh_frame.
2007-11-22Add Blackfin specific mmap implementation using sys_mmap2.Bernd Schmidt
2007-11-22sys/procfs.h defines a typedef for floating point registers that references anBernd Schmidt
undefined structure. This typedef is used in linuxthreads.old-db, causing a compilation failure. Fixed by defining an empty structure for it - we don't have fp regs anyway.