summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Chris Zankel writes:Mike Frysinger2008-01-0562-2/+5055
| | | | | | | | | | | | | | | | | | 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.
* patch from Hans-Christian Egtvedt to silence some spurious signed warningsMike Frysinger2008-01-053-10/+10
|
* whitespace only: touchups from Hans-Christian EgtvedtMike Frysinger2008-01-053-8/+8
|
* patch from Mats Erik Andersson for better catching edge cases in optimized ↵Mike Frysinger2008-01-051-8/+24
| | | | string functions
* add BOTHER define from termios2Mike Frysinger2008-01-051-0/+1
|
* give EM_AVR32 a little commentMike Frysinger2008-01-051-0/+1
|
* Brian Austin writes: This patch adds MAVERICK CRUNCH FPU support for the ↵Mike Frysinger2008-01-051-4/+5
| | | | Cirrus Logic EP93XX ARM9 Procs.
* not everyone is a ninja: explicitly state that people should convert from ↵Mike Frysinger2008-01-051-0/+2
| | | | sys_errlist[] to strerror()
* whitespace only: fix indentationMike Frysinger2008-01-051-1/+1
|
* blah, enable the stupid hidden proto for fcntlMike Frysinger2008-01-051-1/+1
|
* krichy writes in 292:Mike Frysinger2008-01-051-1/+1
| | | | | | 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.
* zen in #938 writes:Mike Frysinger2008-01-051-61/+31
| | | | | | | | 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]
* implement semtimedop for #927Mike Frysinger2008-01-058-19/+54
|
* pop -m32 onto LDFLAGS/CFLAGS to make building on x86_64 multilib systems ↵Mike Frysinger2008-01-051-0/+2
| | | | transparent
* michael_d writes in 1879:Mike Frysinger2008-01-051-1/+1
| | | | | | 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.
* michael_d writes in #1869: make sure GNU error functions output 'program: ' ↵Mike Frysinger2008-01-051-0/+4
| | | | as documented in the function api
* michael_d writes in #1874: Mike Frysinger2008-01-051-2/+2
| | | | | | | | | 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).
* michael_d in #1849 writes: The getcwd() implementation in the absence of a ↵Mike Frysinger2008-01-051-1/+1
| | | | getcwd syscall has an off-by-one allocation bug. As a result, sometimes the returned string has garbage at the end.
* plug a memory leak when using execl* functions on no-mmuMike Frysinger2007-12-221-9/+17
|
* mark a bunch of public mem/str functions as weak so that people who insist ↵Mike Frysinger2007-12-2221-50/+36
| | | | 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
* add hidden defs for execv/execlp for completenessMike Frysinger2007-12-221-0/+4
|
* import trunc()/truncf() for ISO C requirements, otherwise fortran can hit ↵Mike Frysinger2007-12-083-3/+60
| | | | infinite loops when it generates builtins+trunc() substitutes
* Removed pointless initialization to 0 of DIR fieldsCarmelo Amoroso2007-12-071-1/+0
| | | | | | | after having added memset. Thanks to Peter Mazinger for pointing this out. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* I don't remember exactly why we decided to pick the caller's value ofCarmelo Amoroso2007-12-071-1/+1
| | | | | | | | 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>
* Fix opendir problem when statically linked due to a missingCarmelo Amoroso2007-12-051-0/+1
| | | | | | | | | 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>
* Blackfin FD-PIC patch 6/6.Bernd Schmidt2007-12-043-51/+222
| | | | | | | 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.
* Fix a few warnings introduced by my previous commits.Bernd Schmidt2007-12-032-3/+3
|
* Blackfin FD-PIC patches 5/6.Bernd Schmidt2007-12-034-8/+35
| | | | | | | 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.
* Blackfin FD-PIC patch 4/6.Bernd Schmidt2007-12-031-0/+7
| | | | Add a hash table for function descriptors on FD-PIC targets.
* Blackfin FD-PIC patch 3/6.Bernd Schmidt2007-12-036-14/+61
| | | | | | | | | | | | | | | 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.
* Blackfin FD-PIC patch 2/6.Bernd Schmidt2007-12-033-6/+33
| | | | | | Add the necessary changes in ld.so and libdl to deal with targets that prepend an underscore to symbol names.
* Blackfin FD-PIC patch 1/6.Bernd Schmidt2007-12-033-5/+43
| | | | | | | 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.
* Some versions of gcc consider inline merely a hint. AVR32 depends on theCarmelo Amoroso2007-12-031-20/+20
| | | | | | | | | 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>
* realpath: reduce stack usage from 3*PATH_MAX (12k) to 1*PATH_MAX (4k).Denis Vlasenko2007-12-031-34/+36
| | | | | | | | | 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).
* Fix merging error: a macro was renamed.Bernd Schmidt2007-11-281-1/+2
|
* Blackfin crt1.S fixes for building with -msep-data.Bernd Schmidt2007-11-231-6/+11
|
* Add some necessary Makefile bits for UCLIBC_FORMAT_FLAT_SEP_DATA.Bernd Schmidt2007-11-231-0/+3
|
* Some shared flat improvements.Bernd Schmidt2007-11-233-4/+17
| | | | | | | | 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.
* Add necessary Makefile rules for the Blackfin.Bernd Schmidt2007-11-231-0/+12
|
* A better atomic ops implementation for the Blackfin, relying on a featureBernd Schmidt2007-11-231-10/+38
| | | | present in our recent kernels.
* mcontext_t shouldn't have a version argument, and fix REG_B0 definition.Bernd Schmidt2007-11-231-2/+1
|
* From Jie Zhang:Bernd Schmidt2007-11-231-3/+4
| | | | __bswap_16 could not assume that it's zero extended when an unsigned short int is loaded into the data register.
* Change test for a define that got renamed a while ago.Bernd Schmidt2007-11-231-1/+1
|
* Disable tst-ftime_l test if Extended Locale SupportCarmelo Amoroso2007-11-231-0/+4
| | | | | | is not enabled, otherwise build will fail Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Ignore entries of "-1" in rofixup; the linker sometimes has no choice but toBernd Schmidt2007-11-221-23/+26
| | | | create these for deleted entries in .eh_frame.
* Add Blackfin specific mmap implementation using sys_mmap2.Bernd Schmidt2007-11-222-1/+25
|
* sys/procfs.h defines a typedef for floating point registers that references anBernd Schmidt2007-11-221-2/+2
| | | | | | | 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.
* Certain configure scripts test for presence of dlfcn.h. Don't install itBernd Schmidt2007-11-222-0/+7
| | | | if !HAVE_SHARED.
* Add hidden symbols for a number of pthread functions, and use them to ensureBernd Schmidt2007-11-226-1/+98
| | | | | that all entries in the __pthread_functions point to functions within libpthread, not identically-named functions in libc.
* Added optimized versions of strcpy() and strncpy() for CRIS/CRISv32.Peter Kjellerstedt2007-11-212-0/+112
|