OSDN Git Service
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 18:01:54 +0000 (18:01 -0000)]
- fix generation of sysnum.h for parallel builds, second take.
Revert r21503 and redo more cleanly.
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 17:04:09 +0000 (17:04 -0000)]
- fix (parallel) compilation error in ldso.c
We have to generate sysnum.h to satisfy all includes of ldso.c
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 13:40:36 +0000 (13:40 -0000)]
Paul Brook writes:
The attached patch adds support for compiling arm uClibc as pure Thumb code.
This is needed because some recent ARM codes do not implement traditional ARM
mode. Specifically:
* Cortex-M1 - An extremely minimal FPGA based core that only implements
Thumb-1 (aka ARMv6-M).
* Cortex-M3 - A Thumb-2 only ARMv7-M core.
Most of uClibc already builds in Thumb mode, all that is left are a handful of
assembly bits.
Tested on arm-uclinuxeabi.
Carmelo Amoroso [Wed, 26 Mar 2008 11:58:14 +0000 (11:58 -0000)]
Enable remap_file_pages prototype controlled by __USE_GNU define as well as mremap, instead of __USE_MISC according to glibc. Missing prototype was spotted out by Peter Mazinger
Carmelo Amoroso [Tue, 25 Mar 2008 14:40:35 +0000 (14:40 -0000)]
Add missing cast in pointer assignment
Carmelo Amoroso [Fri, 21 Mar 2008 07:18:47 +0000 (07:18 -0000)]
Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>
Mike Frysinger [Fri, 21 Mar 2008 06:58:23 +0000 (06:58 -0000)]
michael_d writes in [#2064]: fix building on linux-2.0 systems
Carmelo Amoroso [Sun, 16 Mar 2008 07:49:24 +0000 (07:49 -0000)]
Add myself as co-maintainer of SH4, specifically for NPTL pthread library and TLS dynamic linker support
Carmelo Amoroso [Sun, 16 Mar 2008 07:35:04 +0000 (07:35 -0000)]
Remove extra file separator
Haavard Skinnemoen [Thu, 13 Mar 2008 20:12:08 +0000 (20:12 -0000)]
avr32: Use HIDDEN_JUMPTARGET() macro in bzero.S
Also, remove the hidden __memset symbol from memset.S
Haavard Skinnemoen [Thu, 13 Mar 2008 19:04:16 +0000 (19:04 -0000)]
From: Geoffrey Wossum <geoffrey@pager.net>
Found a problem with the AVR32 optimized bzero() code. Due to a
missing #include, it actually generated no code.
Haavard Skinnemoen [Thu, 13 Mar 2008 18:41:46 +0000 (18:41 -0000)]
Add myself as co-maintainer for the AVR32 architecture
Carmelo Amoroso [Tue, 11 Mar 2008 10:25:42 +0000 (10:25 -0000)]
Move calculation of rem within if (unlikely statement
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
SIgned-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Sun, 9 Mar 2008 07:07:20 +0000 (07:07 -0000)]
Khem Raj <kraj@mvista.com> writes:
While compiling trunk on ARM with GCC 4.2 and enabling LDSO_GNU_HASH_SUPPORT I stumbled upon this problem.
GCC made a call to libgcc function __aeabi_uidivmod()->__div0()->__raise() and raise is not yet compiled in at the time of compiling ldso
so I got well known undefined symbol __raise problem
This patch uses the do_rem () macro to do the same operation.
Carmelo Amoroso [Wed, 5 Mar 2008 14:37:55 +0000 (14:37 -0000)]
Call explicitely objclean-y when doing build cleanup.
Remove 'find' command. It makes cleanup faster too.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Thu, 28 Feb 2008 10:05:14 +0000 (10:05 -0000)]
Fix file permissions
Carmelo Amoroso [Thu, 28 Feb 2008 10:01:09 +0000 (10:01 -0000)]
Fix file permissions
Carmelo Amoroso [Thu, 28 Feb 2008 09:56:28 +0000 (09:56 -0000)]
Added support for ether_line, ether_ntohost and ether_hostton.
Added related test cases.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Hacked-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Mike Frysinger [Sat, 23 Feb 2008 01:28:28 +0000 (01:28 -0000)]
Ricard Wanderlof writes:
The following definitions in getaddrinfo.c seem redundant as they _are_
defined in the public netdb.h header, contrary to the comment. AI_DEFAULT
is not, however it is not used in the file either so can be safely
removed.
Carmelo Amoroso [Wed, 20 Feb 2008 20:26:42 +0000 (20:26 -0000)]
Fix typos in comment
Carmelo Amoroso [Wed, 20 Feb 2008 20:20:00 +0000 (20:20 -0000)]
Do not call _dl_de ug_state() before recording ld.so. Signed-off-by: Daniel Jacobowit <dan@codesourcery.com>
Chris Zankel [Wed, 20 Feb 2008 17:56:59 +0000 (17:56 -0000)]
xtensa: the size of the elf_gregset_t array is actually 128.
Signed-off-by: Chris Zankel <chris@zankel.net>
Hans-Christian Egtvedt [Wed, 20 Feb 2008 14:27:12 +0000 (14:27 -0000)]
Use HIDDEN_JUMPTARGET define instead of __GI_ directly in AVR32 files
This patch uses the HIDDEN_JUMPTARGET instead of the __GI_ prefix in AVR32
assembler files. This is done to follow the code style in uClibc.
Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Chris Zankel [Wed, 20 Feb 2008 00:30:54 +0000 (00:30 -0000)]
Xtensa: Provide an architecture specific sigaction and sa_restorer function in libc to avoid having to place executable code on stack.
Signed-off-by: Chris Zankel <chris@zankel.net>
Mike Frysinger [Sat, 16 Feb 2008 08:33:48 +0000 (08:33 -0000)]
posix_fadvise64 on 64bit systems take 5 arguments, not 6, as pointed out by skinkie in #2194
Mike Frysinger [Sat, 16 Feb 2008 08:24:02 +0000 (08:24 -0000)]
fix typo pointed out by skinkie in #2194
Denis Vlasenko [Tue, 12 Feb 2008 20:31:44 +0000 (20:31 -0000)]
add hidden_proto's for __uc_malloc
(patch by Bernd Schmidt <bernds_cb1 at t-online.de>)
Bernd Schmidt [Tue, 12 Feb 2008 13:23:19 +0000 (13:23 -0000)]
Use DL_RELOC_ADDR when dealing with DL_LOADADDR_TYPE types. Fixes gnu-hash
compilation on Blackfin.
Chris Zankel [Mon, 11 Feb 2008 23:16:35 +0000 (23:16 -0000)]
Omit adding 'OUTPUT_FORMAT' to the libc.so linker script if the architecture
didn't provide one (Xtensa, for example, is such an architecture).
Signed-off-by: Chris Zankel <chris@zankel.net>
Bernd Schmidt [Fri, 8 Feb 2008 13:43:39 +0000 (13:43 -0000)]
Fix the recent dladdr changes so that they compile on FD-PIC targets.
Carmelo Amoroso [Thu, 7 Feb 2008 16:17:14 +0000 (16:17 -0000)]
Added AI_NUMERICSERV flag and check if the string is not just a number
when AI_NUMERICSERV flag set.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Carmelo Amoroso [Thu, 7 Feb 2008 07:06:49 +0000 (07:06 -0000)]
Fix stack overflow in _ppfs_parsespec
Chris Zankel [Tue, 5 Feb 2008 23:04:09 +0000 (23:04 -0000)]
Add myself as the maintainer for the Xtensa architecture.
Signed-off-by: Chris Zankel <chris@zankel.net>
"Steven J. Hill" [Sat, 26 Jan 2008 23:13:37 +0000 (23:13 -0000)]
Filter out '-std=gnu99' when running the assembler. This causes an error
when building MIPS that looks like this:
libc/string/mips/memcpy.S:156:1: pasting "memcpy" and ":" does not give
a valid preprocessing token
make[1]: *** [libc/string/mips/memcpy.os] Error 1
Even if this does not cause an error on other architectures, this option
should not be having an effect on preprocessed assembly code.
Mike Frysinger [Wed, 23 Jan 2008 16:56:52 +0000 (16:56 -0000)]
give execlp() its own cache on no-mmu to avoid recursive cache fighting
Bernhard Reutner-Fischer [Tue, 22 Jan 2008 16:09:01 +0000 (16:09 -0000)]
- fix file permissions
Carmelo Amoroso [Tue, 22 Jan 2008 15:37:32 +0000 (15:37 -0000)]
Test case to exploit dladdr bug
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Bernhard Reutner-Fischer [Sat, 19 Jan 2008 19:30:04 +0000 (19:30 -0000)]
- forgot to add include/fenv.h
Bernhard Reutner-Fischer [Sat, 19 Jan 2008 15:26:17 +0000 (15:26 -0000)]
- wrap superlong lines
Bernhard Reutner-Fischer [Sat, 19 Jan 2008 15:23:14 +0000 (15:23 -0000)]
- add C99 floating point environment, rounding and exception handling functions
for i386. UCLIBC_HAS_FENV
Bernd Schmidt [Fri, 18 Jan 2008 13:53:10 +0000 (13:53 -0000)]
L1 memory support for the Blackfin. A couple new syscalls to manage L1
allocations, dma_memcpy to move stuff between L1 and main memory, and a new
structure to describe the global data in L1 scratchpad memory.
Bernd Schmidt [Fri, 18 Jan 2008 13:46:58 +0000 (13:46 -0000)]
Update dl-inlines.h from Blackfin repository.
Carmelo Amoroso [Fri, 18 Jan 2008 13:14:19 +0000 (13:14 -0000)]
This patch solves a problem in dladdr caused by the wrong value
of elf_resolve's loadaddr field for the main application.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernd Schmidt [Fri, 18 Jan 2008 02:22:25 +0000 (02:22 -0000)]
A patch from our Blackfin repository, originally from Mike Frysinger.
Add sysdeps/linux/$(TARGET_ARCH) to the list of includes. Needed by some of
the Blackfin specific string assembly files.
Bernd Schmidt [Fri, 18 Jan 2008 02:21:09 +0000 (02:21 -0000)]
Another piece needed for FD-PIC. This compiles another startfile, crtreloc.o,
if necessary.
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 21:47:59 +0000 (21:47 -0000)]
- fix compilation:
In file included from toolchain_build_i386/gcc-3.4.6/libiberty/hashtab.c:49:
build_i386/staging_dir/i386-linux-uclibc/sys-include/malloc.h:193: error: ISO C forbids data definition with no type or storage class
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 20:59:33 +0000 (20:59 -0000)]
- fix linking.
We use the compiler-driver and not ld.
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 19:53:46 +0000 (19:53 -0000)]
- use libm_DIR and libm_OUT
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 19:35:32 +0000 (19:35 -0000)]
- remove unused file
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 19:29:02 +0000 (19:29 -0000)]
bits/sysnum.h needs a cross compiler to be built. Fortunately, this
header is not needed to build gcc. Move generation of this header.
(Yann E. MORIN)
Bernd Schmidt [Thu, 17 Jan 2008 19:11:18 +0000 (19:11 -0000)]
A patch from our Blackfin repository, originally from Jie Zhang. This fixes
a problem where the linker was trying to use the wrong symbol name for the
init function.
Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960,
microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets
which define SYMBOL_PREFIX as _. Remove defines and undefs from
uClibc_arch_features.h of each target.
Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.
Bernhard Reutner-Fischer [Wed, 16 Jan 2008 20:00:57 +0000 (20:00 -0000)]
- check for -nostdlib
Carmelo Amoroso [Sat, 12 Jan 2008 17:59:10 +0000 (17:59 -0000)]
Make sh4 build works again adding a temporary work-around
iby redefining __always_inline to inline until gcc 4.x.x will get
fixed.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Sat, 12 Jan 2008 08:20:18 +0000 (08:20 -0000)]
Make sh4 build works again adding a temporary work-around
iby redefining __always_inline to inline until gcc 4.x.x will get
fixed.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Mike Frysinger [Fri, 11 Jan 2008 09:14:21 +0000 (09:14 -0000)]
cull useless headers and import a few updates from glibc
Peter Kjellerstedt [Fri, 11 Jan 2008 09:03:27 +0000 (09:03 -0000)]
Use poll() rather than select() if the former is available to wait in
__dns_lookup(). This avoids segmentation faults when more than 1024
file descriptors are used by an application.
Bernhard Reutner-Fischer [Wed, 9 Jan 2008 17:13:57 +0000 (17:13 -0000)]
- Fix compilation: semtimedop has 4 args (and not 6)
Mike Frysinger [Wed, 9 Jan 2008 07:07:37 +0000 (07:07 -0000)]
fetch queue.h from latest freebsd cvs
Mike Frysinger [Wed, 9 Jan 2008 06:59:58 +0000 (06:59 -0000)]
fix broken whitespace in many places; no functional changes
Mike Frysinger [Wed, 9 Jan 2008 05:54:25 +0000 (05:54 -0000)]
add workaround for gcc-3.4.6 with mips
Mike Frysinger [Wed, 9 Jan 2008 05:53:04 +0000 (05:53 -0000)]
no need to delete the binary upon failure
Mike Frysinger [Wed, 9 Jan 2008 05:49:44 +0000 (05:49 -0000)]
Daniel Jacobowitz writes:
MontaVista noticed that when their kernels were configured to trap on unaligned
access gethostbyname_r could mysteriously crash. I tracked this down to an
unaligned buffer being passed to gethostbyname_r from some other part of uClibc
(afraid I don't remember where from any more). We have to pad the beginning of
the buffer to a pointer alignment before we store pointers in it.
Bernd Schmidt [Tue, 8 Jan 2008 23:24:30 +0000 (23:24 -0000)]
Some more Blackfin/FDPIC ldso merging work. Include dl-inlines.h when it
exists, and move some definitions to their proper place.
Mike Frysinger [Tue, 8 Jan 2008 19:23:54 +0000 (19:23 -0000)]
change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when doing double negatives
Mike Frysinger [Tue, 8 Jan 2008 17:01:48 +0000 (17:01 -0000)]
the _dl_errno extern already exists in common headers, so no need for a local one
Hans-Christian Egtvedt [Tue, 8 Jan 2008 11:41:22 +0000 (11:41 -0000)]
Added Hans-Christian Egtvedt as maintainer for the AVR32 architecture
Paul Mundt [Tue, 8 Jan 2008 09:51:19 +0000 (09:51 -0000)]
Update the TODO reflecting the sh64 changes.
Paul Mundt [Tue, 8 Jan 2008 09:40:02 +0000 (09:40 -0000)]
Switch sh64 to use __uClibc_main and the new register layout.
This was one of the stragglers still bent on __uClibc_start_main
utilization, now it's only FR-V.
Paul Mundt [Tue, 8 Jan 2008 08:45:26 +0000 (08:45 -0000)]
sh64 uses a 32-bit ABI, don't bother with lib64 silliness.
Paul Mundt [Tue, 8 Jan 2008 08:44:43 +0000 (08:44 -0000)]
Bring sh64 support back from the dead.
Mike Frysinger [Tue, 8 Jan 2008 07:12:41 +0000 (07:12 -0000)]
test to make sure the buffers used by the gethost*_r functions handle misaligned scratch buffers
Mike Frysinger [Tue, 8 Jan 2008 06:44:19 +0000 (06:44 -0000)]
fix memory corruption on no-mmu from doing multiple execls where earlier execls fail by simply not releasing the memory reserved for the arguments of children processes
Mike Frysinger [Sun, 6 Jan 2008 00:04:02 +0000 (00:04 -0000)]
use the __extern_always_inline define from cdefs.h instead of duplicating gcc version checking in every pt-machine.h header ... while __extern_always_inline should work fine, i think what is intended is __extern_inline ... should double check later
Mike Frysinger [Sat, 5 Jan 2008 23:27:35 +0000 (23:27 -0000)]
this code does not actually rely on INTERNAL_SYSCALL
Mike Frysinger [Sat, 5 Jan 2008 22:52:13 +0000 (22:52 -0000)]
add info for elf.h, ldd.c, readelf.c, and MAINTAINERS
Mike Frysinger [Sat, 5 Jan 2008 16:45:06 +0000 (16:45 -0000)]
sync with glibc to get the extern inline directive
Bernhard Reutner-Fischer [Sat, 5 Jan 2008 11:24:00 +0000 (11:24 -0000)]
- fixup gnu_inline vs. C99 inline
- add missing header guards while at it
Mike Frysinger [Sat, 5 Jan 2008 10:40:51 +0000 (10:40 -0000)]
update my e-mail address
Mike Frysinger [Sat, 5 Jan 2008 10:40:03 +0000 (10:40 -0000)]
if an arch does not provide __NR_mmap, fall back to __NR_mmap2 (this just generalizes what Blackfin was already doing)
Mike Frysinger [Sat, 5 Jan 2008 10:05:27 +0000 (10:05 -0000)]
Chris Zankel writes:
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.
Mike Frysinger [Sat, 5 Jan 2008 09:27:37 +0000 (09:27 -0000)]
patch from Hans-Christian Egtvedt to silence some spurious signed warnings
Mike Frysinger [Sat, 5 Jan 2008 09:24:45 +0000 (09:24 -0000)]
whitespace only: touchups from Hans-Christian Egtvedt
Mike Frysinger [Sat, 5 Jan 2008 09:22:58 +0000 (09:22 -0000)]
patch from Mats Erik Andersson for better catching edge cases in optimized string functions
Mike Frysinger [Sat, 5 Jan 2008 08:59:09 +0000 (08:59 -0000)]
add BOTHER define from termios2
Mike Frysinger [Sat, 5 Jan 2008 08:34:38 +0000 (08:34 -0000)]
give EM_AVR32 a little comment
Mike Frysinger [Sat, 5 Jan 2008 08:16:23 +0000 (08:16 -0000)]
Brian Austin writes: This patch adds MAVERICK CRUNCH FPU support for the Cirrus Logic EP93XX ARM9 Procs.
Mike Frysinger [Sat, 5 Jan 2008 08:08:26 +0000 (08:08 -0000)]
not everyone is a ninja: explicitly state that people should convert from sys_errlist[] to strerror()
Mike Frysinger [Sat, 5 Jan 2008 08:00:33 +0000 (08:00 -0000)]
whitespace only: fix indentation
Mike Frysinger [Sat, 5 Jan 2008 07:18:36 +0000 (07:18 -0000)]
blah, enable the stupid hidden proto for fcntl
Mike Frysinger [Sat, 5 Jan 2008 07:16:35 +0000 (07:16 -0000)]
krichy writes in 292:
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.
Mike Frysinger [Sat, 5 Jan 2008 07:06:08 +0000 (07:06 -0000)]
zen in #938 writes:
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]
Mike Frysinger [Sat, 5 Jan 2008 06:47:30 +0000 (06:47 -0000)]
implement semtimedop for #927
Mike Frysinger [Sat, 5 Jan 2008 06:46:28 +0000 (06:46 -0000)]
pop -m32 onto LDFLAGS/CFLAGS to make building on x86_64 multilib systems transparent
Mike Frysinger [Sat, 5 Jan 2008 06:07:49 +0000 (06:07 -0000)]
michael_d writes in 1879:
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.
Mike Frysinger [Sat, 5 Jan 2008 06:03:12 +0000 (06:03 -0000)]
michael_d writes in #1869: make sure GNU error functions output 'program: ' as documented in the function api
Mike Frysinger [Sat, 5 Jan 2008 05:55:23 +0000 (05:55 -0000)]
michael_d writes in #1874:
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).
Mike Frysinger [Sat, 5 Jan 2008 05:32:09 +0000 (05:32 -0000)]
michael_d in #1849 writes: The getcwd() implementation in the absence of a getcwd syscall has an off-by-one allocation bug. As a result, sometimes the returned string has garbage at the end.
Mike Frysinger [Sat, 22 Dec 2007 12:18:44 +0000 (12:18 -0000)]
plug a memory leak when using execl* functions on no-mmu
Mike Frysinger [Sat, 22 Dec 2007 06:28:23 +0000 (06:28 -0000)]
mark a bunch of public mem/str functions as weak so that people who insist 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
Mike Frysinger [Sat, 22 Dec 2007 06:23:15 +0000 (06:23 -0000)]
add hidden defs for execv/execlp for completeness