OSDN Git Service
Paul Mundt [Mon, 23 Oct 2006 04:20:20 +0000 (04:20 -0000)]
Merge SH-2 trapa fixups from Mark.
2006-10-16 Mark Shinwell <shinwell@codesourcery.com>
* libc/sysdeps/linux/sh/vfork.S: Use __SH_SYSCALL_TRAP_BASE.
Also use __CONFIG_SH2__ rather than __sh2__, for consistency.
* libc/sysdeps/linux/sh/syscall.c: Use __SH_SYSCALL_TRAP_BASE.
* libc/sysdeps/linux/sh/bits/uClibc_arch_features.h: Use
__CONFIG_SH2__ rather than __sh2__, for consistency.
* libc/sysdeps/linux/sh/bits/syscalls.h (__SH_SYSCALL_TRAP_BASE):
New.
Use instead of hard-coded trap numbers in the various __NR_<name>
macros.
* libc/sysdeps/linux/sh/clone.S: Use __SH_SYSCALL_TRAP_BASE.
Also use __CONFIG_SH2__ rather than __sh2__, for consistency.
* libc/sysdeps/linux/sh/crti.S: Disable GOT-related code if
__HAVE_SHARED__ is not set.
* libc/sysdeps/linux/sh/pipe.c (pipe): Use __SH_SYSCALL_TRAP_BASE.
Mike Frysinger [Sun, 22 Oct 2006 00:22:29 +0000 (00:22 -0000)]
dont require DOPIC with FORCE_SHAREABLE_TEXT_SEGMENTS
Eric Andersen [Thu, 19 Oct 2006 21:28:37 +0000 (21:28 -0000)]
Joseph S. Myers writes:
There are many directories called "CVS" checked into uClibc SVN, probably
as a side-effect of importing a CVS checkout. I don't think these are
particularly useful to have checked in.
Peter Kjellerstedt [Thu, 19 Oct 2006 10:17:12 +0000 (10:17 -0000)]
Make strdup() use memcpy() rather than strcpy() to duplicate the string.
The rationale is that we already have the length of the string to
duplicate (from doing the malloc()), and memcpy() should then always be
faster than strcpy() (or at least as fast).
Khem Raj [Tue, 10 Oct 2006 01:03:46 +0000 (01:03 -0000)]
Make _dl_linux_resolve interworking safe. Thanks Paul Brook
Khem Raj [Sat, 7 Oct 2006 22:22:51 +0000 (22:22 -0000)]
Add the mmap.c missed out in the last commit.
Khem Raj [Sat, 7 Oct 2006 06:54:35 +0000 (06:54 -0000)]
Add config options to select ARM ARMv5 and Intel iwmmxt variants.
Khem Raj [Sat, 7 Oct 2006 06:50:44 +0000 (06:50 -0000)]
Add mmap function needed for ARM EABI and define thumb specific INTERNAL_SYSCALL macro which saves r7 before making the call and pops it back after return.
Khem Raj [Sat, 7 Oct 2006 06:40:33 +0000 (06:40 -0000)]
Sergey Lapin says the undefined syscall numbers from unistd.h do not get propogated into generated sysnum.h.
Mike Frysinger [Sat, 7 Oct 2006 06:40:20 +0000 (06:40 -0000)]
fixup from Bernd Schmidt to properly document DL_ADDR_TO_FUNC_PTR
Mike Frysinger [Sat, 7 Oct 2006 06:36:32 +0000 (06:36 -0000)]
Bernd Schmidt writes:
This introduces a new SEND_EARLY_STDERR macro that is to be used in
dl-startup.c before ld.so is relocated. It is needed on Blackfin (and
frv) FDPIC since we have to use special tricks to get the address of a
string constant.
EARLY_STDERR_SPECIAL gets defined on such a machine and prevents
printing of debug strings inside the loop that relocates ld.so, since we
can't decide which of the two variants to use.
Khem Raj [Sat, 7 Oct 2006 06:32:44 +0000 (06:32 -0000)]
Don't use r10 to find PIC base. In GCC 4.1.1 onwards ARM PIC handling uses pseudo register for PIC base so load and relocate it.
Mike Frysinger [Sat, 7 Oct 2006 06:01:37 +0000 (06:01 -0000)]
the makefile will include elf.h for us #778
Mike Frysinger [Thu, 28 Sep 2006 20:41:28 +0000 (20:41 -0000)]
implement support for the rest of the 32bit uid syscalls
Peter Kjellerstedt [Mon, 25 Sep 2006 07:38:13 +0000 (07:38 -0000)]
Do not include tls.h unless __UCLIBC_HAS_THREADS__ is defined.
Mike Frysinger [Sat, 23 Sep 2006 04:10:42 +0000 (04:10 -0000)]
fix return casts for a bunch of functions
Mike Frysinger [Sat, 23 Sep 2006 04:05:33 +0000 (04:05 -0000)]
grab s_lrint from glibc for C99
Mike Frysinger [Sat, 23 Sep 2006 03:44:35 +0000 (03:44 -0000)]
only include _lfs_64.h when __UCLIBC_HAS_LFS__ is defined as pointed out by Miguel Ángel
Peter Kjellerstedt [Fri, 22 Sep 2006 16:54:49 +0000 (16:54 -0000)]
Added support for sysconf(_SC_MONOTONIC_CLOCK).
Peter Kjellerstedt [Fri, 22 Sep 2006 16:40:00 +0000 (16:40 -0000)]
Remove code to define errno in this file. It is definitly not needed
when building with thread support (which we normally do), and as far
as I can tell it should not be needed otherwise either. And as it did
not build with the latest binutils and gcc, the choice was easy...
Mike Frysinger [Thu, 21 Sep 2006 01:46:11 +0000 (01:46 -0000)]
use proper #APP lines so that the assembler knows when it needs to handle parsing (see sources.redhat.com/ml/binutils/2004-04/msg00665.html)
Peter Kjellerstedt [Tue, 19 Sep 2006 07:44:15 +0000 (07:44 -0000)]
Allow the res argument to clock_getres() to be NULL.
Mike Frysinger [Tue, 19 Sep 2006 01:29:11 +0000 (01:29 -0000)]
merge some more FDPIC related fixes from Bernd Schmidt
Eric Andersen [Mon, 11 Sep 2006 18:46:39 +0000 (18:46 -0000)]
Atsushi Nemoto writes:
The "make headers_install" in kernel 2.6.18 does not export
asm-mips/asm.h, asm-mips/regdef.h and asm-mips/sysmips.h. Do not use
them. We can use sys/asm.h and sys/regdef.h instead. The sysmips.h
part of this patch is came from glibc 2.4 code.
Eric Andersen [Mon, 11 Sep 2006 18:40:10 +0000 (18:40 -0000)]
The readahead syscall requires LFS/64 bit support
Mike Frysinger [Sun, 10 Sep 2006 06:10:52 +0000 (06:10 -0000)]
remove version checking code and add some more comments
Mike Frysinger [Sat, 9 Sep 2006 22:35:00 +0000 (22:35 -0000)]
make this stuff actually readable
Mike Frysinger [Fri, 8 Sep 2006 23:07:54 +0000 (23:07 -0000)]
add some inline funcs for the mlock funcs on no-mmu
Khem Raj [Thu, 31 Aug 2006 19:49:16 +0000 (19:49 -0000)]
Fix from Joseph Myers: Save and restore iWMMXt registers in ARM setjmp/longjmp
Peter Kjellerstedt [Thu, 31 Aug 2006 11:39:36 +0000 (11:39 -0000)]
Made it compile again.
Eric Andersen [Wed, 30 Aug 2006 17:24:44 +0000 (17:24 -0000)]
fix bug 1012 as noted by moschny
Eric Andersen [Wed, 30 Aug 2006 17:12:51 +0000 (17:12 -0000)]
tweak a few syscalls using varargs
Mike Frysinger [Fri, 25 Aug 2006 04:59:43 +0000 (04:59 -0000)]
fix from psm to make sure host make is new enough
Mike Frysinger [Fri, 25 Aug 2006 04:58:11 +0000 (04:58 -0000)]
fix from psm: DODEBUG_PT is only meaningful for LINUXTHREADS_OLD, add: depends on LINUXTHREADS_OLD
Mike Frysinger [Fri, 25 Aug 2006 04:57:01 +0000 (04:57 -0000)]
fix from psm: makes use of the malloc debug option in malloc-standard as well
Paul Mundt [Fri, 25 Aug 2006 04:54:39 +0000 (04:54 -0000)]
Bump SHMLBA up to a sensible size for dcache alias avoidance to coincide with
the kernel's get_unmapped_area() behaviour. Ideally this should be more tightly
packed based off of the L1 dcache shape, once we're able to handle it through
the auxiliary vector.
Mike Frysinger [Fri, 25 Aug 2006 04:28:12 +0000 (04:28 -0000)]
merge with psm: sync with common socket headers
Mike Frysinger [Thu, 24 Aug 2006 23:47:02 +0000 (23:47 -0000)]
merge fixes from upstream (rev 1.10 -> 1.13)
Bernhard Reutner-Fischer [Thu, 24 Aug 2006 21:39:49 +0000 (21:39 -0000)]
- only link asm-generic if it exists.
PS: test for existence on Slowaris was disfunctional, last time i looked. Shouldn't matter much here, though..
Mike Frysinger [Thu, 24 Aug 2006 21:15:57 +0000 (21:15 -0000)]
fix from psm: enable readahead prototype
Mike Frysinger [Thu, 24 Aug 2006 19:47:34 +0000 (19:47 -0000)]
only pull in errno.h when not assembler
Mike Frysinger [Thu, 24 Aug 2006 19:13:14 +0000 (19:13 -0000)]
implement readahead()
Mike Frysinger [Thu, 24 Aug 2006 18:49:16 +0000 (18:49 -0000)]
fixups from psm for ASSEMBLER handling
Mike Frysinger [Thu, 24 Aug 2006 18:11:33 +0000 (18:11 -0000)]
use the common huge_val.h version now
Mike Frysinger [Thu, 24 Aug 2006 18:06:51 +0000 (18:06 -0000)]
update to new huge_val headers
Mike Frysinger [Thu, 24 Aug 2006 18:02:17 +0000 (18:02 -0000)]
fix from psm: disable unsupported features
Mike Frysinger [Thu, 24 Aug 2006 18:00:30 +0000 (18:00 -0000)]
fix from psm: just use common resource.h
Mike Frysinger [Thu, 24 Aug 2006 17:48:23 +0000 (17:48 -0000)]
just be like every other uclibc port
Mike Frysinger [Thu, 24 Aug 2006 17:25:18 +0000 (17:25 -0000)]
sync with glibc
Mike Frysinger [Thu, 24 Aug 2006 03:55:55 +0000 (03:55 -0000)]
psm says: use $(top_builddir) instead of $(top_srcdir) when accessing generated header files
Mike Frysinger [Thu, 24 Aug 2006 03:52:27 +0000 (03:52 -0000)]
add back in HIDDEN_JUMPTARGET() as pointed out by psm
Mike Frysinger [Thu, 24 Aug 2006 02:43:08 +0000 (02:43 -0000)]
fix by Bernhard Fischer to move local prototypes to a header to keep things sane
Mike Frysinger [Thu, 24 Aug 2006 02:32:08 +0000 (02:32 -0000)]
fix from psm: only define __ASSUME_NETLINK_SUPPORT if not defined
Mike Frysinger [Thu, 24 Aug 2006 02:29:56 +0000 (02:29 -0000)]
sync with upstream via psm
Mike Frysinger [Thu, 24 Aug 2006 02:29:27 +0000 (02:29 -0000)]
s/ifdef ASM/ifndef ASM/ as point out by psm
Mike Frysinger [Thu, 24 Aug 2006 00:15:09 +0000 (00:15 -0000)]
sync with upstream via psm
Mike Frysinger [Thu, 24 Aug 2006 00:05:09 +0000 (00:05 -0000)]
sync with upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 23:25:34 +0000 (23:25 -0000)]
psm updates: add __libc symbols for signal cancellation
Mike Frysinger [Wed, 23 Aug 2006 23:24:24 +0000 (23:24 -0000)]
sync with upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 23:20:30 +0000 (23:20 -0000)]
sync with psm: update errno handling to be the same on all arches
Mike Frysinger [Wed, 23 Aug 2006 23:14:49 +0000 (23:14 -0000)]
only define offsetof() if it isnt already defined
Mike Frysinger [Wed, 23 Aug 2006 22:43:25 +0000 (22:43 -0000)]
merge from psm: hide more brk
Mike Frysinger [Wed, 23 Aug 2006 20:28:56 +0000 (20:28 -0000)]
sync with upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 19:27:42 +0000 (19:27 -0000)]
sync with upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 19:25:34 +0000 (19:25 -0000)]
import new headers from upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 19:21:41 +0000 (19:21 -0000)]
fix from psm: remove unused defines/includes
Mike Frysinger [Wed, 23 Aug 2006 19:21:01 +0000 (19:21 -0000)]
fixes from psm: use new clone definition
Mike Frysinger [Wed, 23 Aug 2006 19:19:35 +0000 (19:19 -0000)]
fixes from psm: use __asm__/__volatile__
Mike Frysinger [Wed, 23 Aug 2006 19:17:31 +0000 (19:17 -0000)]
fix from psm: remove unused defines/includes
Mike Frysinger [Wed, 23 Aug 2006 19:17:04 +0000 (19:17 -0000)]
sync with upstream glibc
Mike Frysinger [Wed, 23 Aug 2006 19:16:29 +0000 (19:16 -0000)]
fixes from psm: hide internal brk symbols
Mike Frysinger [Wed, 23 Aug 2006 19:13:46 +0000 (19:13 -0000)]
fixes from psm: disable unsupported __fpu_control and sync with upstream
Mike Frysinger [Wed, 23 Aug 2006 19:02:31 +0000 (19:02 -0000)]
sync with psm: add copyright notice
Mike Frysinger [Wed, 23 Aug 2006 15:28:48 +0000 (15:28 -0000)]
pull from upstream
Mike Frysinger [Wed, 23 Aug 2006 15:26:46 +0000 (15:26 -0000)]
fixes from psm so we can pull in uClibc headers properly
Mike Frysinger [Wed, 23 Aug 2006 15:15:47 +0000 (15:15 -0000)]
fix from psm: add UCLIBC_ prefix to HAS_SHADOW option
Paul Mundt [Wed, 23 Aug 2006 05:11:29 +0000 (05:11 -0000)]
Bogus page size comment for frv PAGE_SHIFT.
Mike Frysinger [Wed, 23 Aug 2006 04:20:54 +0000 (04:20 -0000)]
Jie Zhang writes: Fix struct kernel_stat64 for Blackfin.
Mike Frysinger [Wed, 23 Aug 2006 01:05:58 +0000 (01:05 -0000)]
fix upstream blackfin page.h rather than duplicating effort here
Eric Andersen [Mon, 21 Aug 2006 23:29:36 +0000 (23:29 -0000)]
bits/profil-counter.h and bits/atomicity.h are leftovers from the old gprof
based profiling I nuked ages ago since tools like oprofile are non invasive
and work so much better.
Mike Frysinger [Sat, 5 Aug 2006 04:56:37 +0000 (04:56 -0000)]
merge fix from blackfin cvs:
bernds writes: Use __alignof__ instead of sizeof to get alignments. Eliminates some warnings about misalignments when malloc debugging is enabled.
Mike Frysinger [Mon, 31 Jul 2006 20:21:45 +0000 (20:21 -0000)]
fix h_alias handling in gethostbyaddr_r() just like in gethostbyname_r()
otherwise we get messed up alias memory and this simple test case will
segfault:
python -c 'import socket; print socket.gethostbyaddr("80.68.88.204")[2];'
see bug report in blackfin tracker for more info:
http://blackfin.uclinux.org/tracker/index.php?func=detail&aid=1503&group_id=17&atid=141
Eric Andersen [Thu, 13 Jul 2006 17:06:43 +0000 (17:06 -0000)]
psm writes:
forgotten to mention to remove glob-hooks.c and the reference in
Makefile.in (the prototypes for the 3 hooks were already removed by the
patch applied here)
Peter
Eric Andersen [Thu, 13 Jul 2006 16:32:02 +0000 (16:32 -0000)]
patch from psm:
- malloc/realloc/free are not prepared to be hidable in trunk, you can't
use libc_hidden_proto(x) for them
- using libc_hidden_proto(x64) LFS unguarded will fail because the header
does not provide the prototype
- if you are using libc_hidden_proto(collated_compare|prefix_array), you
also need libc_hidden_def|_weak(x) after the function itself, the result
being to provide a hidden __GI_collated_compare and a visible
collated_compare, for this case I do not consider this necessary,
especially that collated_compare is hidden already (I have chosen to
prefix them with __ to know that they are intended to be internal only,
against the practice in glibc, you could go without prefix as well)
Mike Frysinger [Fri, 7 Jul 2006 19:10:34 +0000 (19:10 -0000)]
add some fun syscall TODOs and mark cris/bfin as working again
"Steven J. Hill" [Thu, 6 Jul 2006 01:40:24 +0000 (01:40 -0000)]
Remove SA_ONSTACK handling for ARM based up on glibc code as submitted by Paul Brook <paul@codesourcery.com>.
Mike Frysinger [Wed, 5 Jul 2006 23:35:08 +0000 (23:35 -0000)]
fix signed warnings with gcc-4
Mike Frysinger [Wed, 5 Jul 2006 23:31:34 +0000 (23:31 -0000)]
clean subdir as well
Mike Frysinger [Wed, 5 Jul 2006 23:21:22 +0000 (23:21 -0000)]
patch from Bernd Schmidt to abstract away initializing of relocation addresses
Eric Andersen [Wed, 5 Jul 2006 23:01:52 +0000 (23:01 -0000)]
remove jump relocs, with minor related cleanups
Eric Andersen [Wed, 5 Jul 2006 20:15:38 +0000 (20:15 -0000)]
bump the version, in preparation for actually cutting a release
at some point in the relatively near future.
Mike Frysinger [Wed, 5 Jul 2006 20:06:17 +0000 (20:06 -0000)]
bfin works again
Eric Andersen [Wed, 5 Jul 2006 19:52:39 +0000 (19:52 -0000)]
replace my @debian.org addr with @uclibc.org. Fixup license on
readelf and ldd to again state that they are GPLv2
Mike Frysinger [Wed, 5 Jul 2006 19:31:48 +0000 (19:31 -0000)]
patch from Bernd Schmidt to abstract away initializing of prog load addresses
Mike Frysinger [Wed, 5 Jul 2006 19:27:41 +0000 (19:27 -0000)]
convert #if 0 code to _dl_if_debug_print()
Mike Frysinger [Wed, 5 Jul 2006 19:24:48 +0000 (19:24 -0000)]
update license
Mike Frysinger [Wed, 5 Jul 2006 19:17:19 +0000 (19:17 -0000)]
patch from Bernd Schmidt to abstract away load address types
Mike Frysinger [Wed, 5 Jul 2006 19:05:55 +0000 (19:05 -0000)]
patch from Bernd Schmidt to abstract away load address checks
Mike Frysinger [Wed, 5 Jul 2006 19:04:29 +0000 (19:04 -0000)]
add some more rpaths to keep the tests happy
Eric Andersen [Wed, 5 Jul 2006 18:53:34 +0000 (18:53 -0000)]
fixup my copyright notice, trim stale remnants of older notices which
I had clearly run search/replace on that were cluttering things up.