summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2007-11-22Certain configure scripts test for presence of dlfcn.h. Don't install itBernd Schmidt
if !HAVE_SHARED.
2007-11-22Add hidden symbols for a number of pthread functions, and use them to ensureBernd Schmidt
that all entries in the __pthread_functions point to functions within libpthread, not identically-named functions in libc.
2007-11-21Added optimized versions of strcpy() and strncpy() for CRIS/CRISv32.Peter Kjellerstedt
2007-11-20ARM SHMLBA = (4 * PAGE_SIZE). Currently in uclibc arm used shm.h fromCarmelo Amoroso
common directory where SHMLBA = __getpagesize() This patch fixes the issue. Khem Raj MontaVista Software Inc.
2007-11-16If uClibc's ld.so encounters text relocations in a shared library - one Carmelo Amoroso
containing an object built without -fpic/-fPIC - then: * If __FORCE_SHAREABLE_TEXT_SEGMENTS__, then it gives an error "Can't modify %s's text section. Use GCC option -fPIC for shared objects, please.\n" and exits. * Otherwise, it makes the library's pages writable and relocates it. If it encounters text relocations in a position-independent executable - one containing an object built without -fpie/-fPIE/-fpic/-fPIC - then: * If __FORCE_SHAREABLE_TEXT_SEGMENTS__, it does nothing about making the pages writable, leading to a crash. * Otherwise, the loop to make the pages writable uses the same variable ppnt as used in an outer loop, messing up that outer loop and also causing a crash. This patch fixes both cases, by giving an error if __FORCE_SHAREABLE_TEXT_SEGMENTS__ and saving and restoring ppnt otherwise. Tested in both cases on ARM EABI. Joseph S. Myers joseph@codesourcery.com
2007-11-16Added AVR32 support to uClibc. Signed-off-by: Hans-Christian Egtvedt ↵Carmelo Amoroso
<hcegtvedt@atmel.com>
2007-11-12CRIS/CRISv32 architecture specific memcpy, memmove and memset.Ricard Wanderlof
2007-11-10Do not return error when fprintf returns 0 in addmntent().Khem Raj
fprintf is considered failing if the return is less than 0