OSDN Git Service

uclinux-h8/uClibc.git
14 years agonptl/sysdeps/unix/sysv/linux/i386: cleanup -DUSE___THREAD
Natanael Copa [Mon, 12 Apr 2010 12:45:50 +0000 (12:45 +0000)]
nptl/sysdeps/unix/sysv/linux/i386: cleanup -DUSE___THREAD

Remove the -DUSE___THREAD from specific assembler files since its
used everywhere anyway.

This is a cleanup after 447a9d1cc181395c3e2ea77ea88e45dee4b30ce6

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agopthread_mutex_timedlock: always build with optimizations
Bernhard Reutner-Fischer [Mon, 12 Apr 2010 13:04:23 +0000 (15:04 +0200)]
pthread_mutex_timedlock: always build with optimizations

avoids breakage with DODEBUG and lll_timedlock() constraints

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agonptl/sysdeps/unix/sysv/linux/i386: enable USE___THREAD for assembler
Timo Teräs [Mon, 12 Apr 2010 12:19:41 +0000 (12:19 +0000)]
nptl/sysdeps/unix/sysv/linux/i386: enable USE___THREAD for assembler

NPTL defines errno as __thread variable. Define USE___THREAD so proper
errno assignment is used in assembly files.

This fixes segfault while building python.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agouse user-provided host binaries
Bernhard Reutner-Fischer [Mon, 12 Apr 2010 10:43:45 +0000 (12:43 +0200)]
use user-provided host binaries

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibc_regex: __libc_lock primitives are actually available on uClibc
Carmelo Amoroso [Mon, 12 Apr 2010 07:23:43 +0000 (09:23 +0200)]
libc_regex: __libc_lock primitives are actually available on uClibc

__libc_lock primitives are actually available on uClibc when threading
support is enable, so in this case they can be used.

It also fixes the following compiler warnings:

In file included from libc/misc/regex/regex.c:55:
libc/misc/regex/regex_internal.h:49:1: warning: "__libc_lock_define" redefined
[SNIP]
libc/misc/regex/regex_internal.h:50:1: warning: "__libc_lock_init" redefined
[SNIP]
libc/misc/regex/regex_internal.h:51:1: warning: "__libc_lock_lock" redefined
[SNIP]
libc/misc/regex/regex_internal.h:52:1: warning: "__libc_lock_unlock" redefined

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agoFixes NPTL build on x86.
Natanael Copa [Fri, 9 Apr 2010 13:20:59 +0000 (06:20 -0700)]
Fixes NPTL build on x86.

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agopthread_{attr_,}{s,g}etaffinity: cleanup symbol names
Bernhard Reutner-Fischer [Wed, 7 Apr 2010 20:44:07 +0000 (22:44 +0200)]
pthread_{attr_,}{s,g}etaffinity: cleanup symbol names

fixes typo in a1ee5b32fc698297149c770417354441ee62701e which forgot to
rename __pthread_attr_getaffinity_np to pthread_attr_getaffinity_np.
Thanks to Andre DRASZIK for mentioning my omission.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoutils .gitignore update to include getconf
Austin Foxley [Tue, 6 Apr 2010 17:05:34 +0000 (10:05 -0700)]
utils .gitignore update to include getconf

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agocorrectly quote version in confstr
Austin Foxley [Tue, 6 Apr 2010 16:16:02 +0000 (09:16 -0700)]
correctly quote version in confstr

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoMerge commit 'origin/master' into nptl
Austin Foxley [Tue, 6 Apr 2010 15:58:29 +0000 (08:58 -0700)]
Merge commit 'origin/master' into nptl

Conflicts:
libc/misc/utmp/utent.c
libc/sysdeps/linux/i386/bits/syscalls.h

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agogetconf: print arbitrary GNU_LIBPTHREAD_VERSION string
Bernhard Reutner-Fischer [Tue, 6 Apr 2010 15:17:30 +0000 (17:17 +0200)]
getconf: print arbitrary GNU_LIBPTHREAD_VERSION string

the NPTL should probably print the version-string of the glibc it's
compatible with and not the uClibc version (check what mysql expects).

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agogetconf: move to utils/
Bernhard Reutner-Fischer [Tue, 6 Apr 2010 14:19:46 +0000 (16:19 +0200)]
getconf: move to utils/

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoFix use-after-free bug in __dns_lookup
Gabor Juhos [Tue, 6 Apr 2010 07:55:19 +0000 (09:55 +0200)]
Fix use-after-free bug in __dns_lookup

If the type of the first answer does not match with the requested type,
then the dotted name was freed. If there are no further answers in
the DNS reply, this pointer was used later on in the same function.
Additionally it is passed to the caller, and caused strange
behaviour.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoi386/bits/syscalls.h: more compact, but stack-hungry syscall code. disabled so far
Denys Vlasenko [Tue, 6 Apr 2010 03:33:01 +0000 (05:33 +0200)]
i386/bits/syscalls.h: more compact, but stack-hungry syscall code. disabled so far

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoi386/bits/syscalls.h: explain _BITS_SYSCALLS_ASM
Denys Vlasenko [Tue, 6 Apr 2010 03:32:09 +0000 (05:32 +0200)]
i386/bits/syscalls.h: explain _BITS_SYSCALLS_ASM

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoi386/bits/syscalls.h: generate better code using more restrictive asm constraints
Denys Vlasenko [Tue, 6 Apr 2010 03:29:26 +0000 (05:29 +0200)]
i386/bits/syscalls.h: generate better code using more restrictive asm constraints

Example: time() doesn't push/pop two registers now, and is smaller:

    <__GI_time>:
    -57                     push   %edi
    -8b 7c 24 08            mov    0x8(%esp),%edi
    -53                     push   %ebx
    -89 fb                  mov    %edi,%ebx
    +8b 4c 24 04            mov    0x4(%esp),%ecx
    +87 cb                  xchg   %ecx,%ebx
     b8 0d 00 00 00         mov    $0xd,%eax
     cd 80                  int    $0x80
    -5b                     pop    %ebx
    -5f                     pop    %edi
    +87 cb                  xchg   %ecx,%ebx
     c3                     ret

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoi386/bits/syscalls.h: explain how it works. no code changes
Denys Vlasenko [Tue, 6 Apr 2010 03:28:29 +0000 (05:28 +0200)]
i386/bits/syscalls.h: explain how it works. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibutil/login: was totally broken. fixed
Denys Vlasenko [Mon, 5 Apr 2010 17:27:41 +0000 (19:27 +0200)]
libutil/login: was totally broken. fixed

Also made login() and logout() usable with utmpname(non_std_utmp_file)
   text           data     bss     dec     hex filename
    111              0       0     111      6f libutil/login.o
    217              0       0     217      d9 libutil/login.o
   text           data     bss     dec     hex filename
    164              0       0     164      a4 libutil/logout.o
    134              0       0     134      86 libutil/logout.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoutent: do not create extra static functions if !THREADS
Denys Vlasenko [Mon, 5 Apr 2010 17:25:54 +0000 (19:25 +0200)]
utent: do not create extra static functions if !THREADS

   text           data     bss     dec     hex filename
    547              8     384     939     3ab libc/misc/utmp/utent.o
    519              8     384     911     38f libc/misc/utmp/utent.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoregex_old: convert static flag variable to smallint
Denys Vlasenko [Sun, 4 Apr 2010 23:32:19 +0000 (01:32 +0200)]
regex_old: convert static flag variable to smallint

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogetutid is not used internally, removing hidden_proto
Denys Vlasenko [Sun, 4 Apr 2010 23:31:27 +0000 (01:31 +0200)]
getutid is not used internally, removing hidden_proto

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agonptl needs stdio futexes enabled.
Austin Foxley [Fri, 2 Apr 2010 17:29:00 +0000 (10:29 -0700)]
nptl needs stdio futexes enabled.

this got reverted in the merge I just did

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agopoll.c: fix incorrect merge
Austin Foxley [Fri, 2 Apr 2010 16:25:02 +0000 (09:25 -0700)]
poll.c: fix incorrect merge

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoRevert "remove config knobs that belong to the nptl branch"
Austin Foxley [Fri, 2 Apr 2010 16:18:09 +0000 (09:18 -0700)]
Revert "remove config knobs that belong to the nptl branch"

This reverts commit de82658a05de0ace6f3d261dedc358d3a14f3681.

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoMerge commit 'origin/master' into nptl
Austin Foxley [Fri, 2 Apr 2010 16:17:30 +0000 (09:17 -0700)]
Merge commit 'origin/master' into nptl

Conflicts:
Makefile.in
extra/Configs/Config.in
libc/sysdeps/linux/common/bits/kernel-features.h
libc/sysdeps/linux/common/poll.c
libc/sysdeps/linux/common/sysdep.h
libc/sysdeps/linux/sh/sysdep.h

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agobump version to 0.9.32-git
Bernhard Reutner-Fischer [Fri, 2 Apr 2010 16:01:41 +0000 (18:01 +0200)]
bump version to 0.9.32-git

NPTL merge candidate, finally!

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoRelease 0.9.31
Bernhard Reutner-Fischer [Fri, 2 Apr 2010 15:34:27 +0000 (17:34 +0200)]
Release 0.9.31

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoresolv: DEBUG-print nameserver we talk to
Bernhard Reutner-Fischer [Tue, 30 Mar 2010 15:18:03 +0000 (17:18 +0200)]
resolv: DEBUG-print nameserver we talk to

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoutils: hide comment if !V
Bernhard Reutner-Fischer [Tue, 30 Mar 2010 09:45:48 +0000 (11:45 +0200)]
utils: hide comment if !V

14 years agopass CFLAGS-dir to CC-m
Bernhard Reutner-Fischer [Thu, 25 Mar 2010 15:42:04 +0000 (16:42 +0100)]
pass CFLAGS-dir to CC-m

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoprettify make clean
Bernhard Reutner-Fischer [Thu, 25 Mar 2010 14:17:10 +0000 (15:17 +0100)]
prettify make clean

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agonios2: Define INTERNAL_SYSCALL_NCS, use common sycall defines
Tobias Klauser [Thu, 18 Mar 2010 11:24:08 +0000 (12:24 +0100)]
nios2: Define INTERNAL_SYSCALL_NCS, use common sycall defines

Define the nios2 version of INTERNAL_SYSCALL_NCS and remove all sycall
defines already defined by the common syscall defines.

This will make the master branch of uClibc compile again for nios2.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agonios2: Update fcntl.h from m68k
Tobias Klauser [Thu, 18 Mar 2010 11:24:07 +0000 (12:24 +0100)]
nios2: Update fcntl.h from m68k

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agolift printf field width limit
Michael Deutschmann [Wed, 17 Mar 2010 12:36:34 +0000 (13:36 +0100)]
lift printf field width limit

uClibc mishandles printf field width limits larger than 40959, as a
result of misguided overflow-protection code.  This causes spurious test
failures with GNU coreutils, which depends on "%65536s" and "%20000000f"
working according to spec.

Signed-off-by: Michael Deutschmann <michael@talamasca.ocis.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agonios2: Add sys/user.h
Tobias Klauser [Mon, 15 Mar 2010 10:04:05 +0000 (11:04 +0100)]
nios2: Add sys/user.h

This is a fixed version containing copyright information. The patch should now
apply using 'git am'.

linux/user.h is no longer exported during kernel make headers_install

Signed-off-by: Atle Nissestad <atle@nissestad.no>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoconfig: tweak text
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 23:31:36 +0000 (00:31 +0100)]
config: tweak text

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobuildsys: touchup 'make dist' a tiny bit
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 20:58:29 +0000 (21:58 +0100)]
buildsys: touchup 'make dist' a tiny bit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobump version
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 20:50:18 +0000 (21:50 +0100)]
bump version

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobump version to 0.9.31-rc1
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 20:49:21 +0000 (21:49 +0100)]
bump version to 0.9.31-rc1

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobuildsys: Fix O= PREFIX= case
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 18:13:49 +0000 (19:13 +0100)]
buildsys: Fix O= PREFIX= case

make sure that something like:
$ rm -rf /dev/shm/o/* /dev/shm/o/.conf* /dev/shm/DELME
$ time (make defconfig O=/dev/shm/o 2>&1 >& /dev/null && make \
install_dev -j O=/dev/shm/o PREFIX=/dev/shm/DELME 2>&1 >& /dev/null)
works

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobuildsys: fix dir order-only prereq of unifdef
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 17:56:49 +0000 (18:56 +0100)]
buildsys: fix dir order-only prereq of unifdef

|$(@D) -> zilch, so spell it out

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoadd MULTILIB_DIR: Path component for libdirs
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 17:14:16 +0000 (18:14 +0100)]
add MULTILIB_DIR: Path component for libdirs

forgot to checkin this file

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoconfig: support make defconfig O=/f/o/o
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 16:21:02 +0000 (17:21 +0100)]
config: support make defconfig O=/f/o/o

previously wanted to create the temporary cfg file in the srcdir (which
failed on a RO srcdir)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoadd MULTILIB_DIR: Path component for libdirs
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 16:06:35 +0000 (17:06 +0100)]
add MULTILIB_DIR: Path component for libdirs

defaults to "lib". Other prominent values include "lib32" or "lib64"

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoinstall: fix O= PREFIX= install
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 15:27:42 +0000 (16:27 +0100)]
install: fix O= PREFIX= install

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoreduce number of mkdir calls
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 15:19:39 +0000 (16:19 +0100)]
reduce number of mkdir calls

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoremove config knobs that belong to the nptl branch
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 13:47:15 +0000 (14:47 +0100)]
remove config knobs that belong to the nptl branch

Fixes bug #1243

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agopull kernel-features.h from NPTL
Bernhard Reutner-Fischer [Wed, 3 Mar 2010 20:38:49 +0000 (21:38 +0100)]
pull kernel-features.h from NPTL

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agopoll: unavailable on linux < 2.2.0
Bernhard Reutner-Fischer [Thu, 4 Mar 2010 11:59:10 +0000 (12:59 +0100)]
poll: unavailable on linux < 2.2.0

fixes bug #253

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agopregen-headers: Add new target which depends on headers.
Khem Raj [Wed, 24 Feb 2010 00:32:50 +0000 (16:32 -0800)]
pregen-headers: Add new target which depends on headers.

* This target is necessary to serialize making of
  headers before pregen-headers and pregen-headers
  before the rest of build

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agopregen: Fix the parallel build problem in pregen target
Khem Raj [Wed, 24 Feb 2010 00:21:18 +0000 (16:21 -0800)]
pregen: Fix the parallel build problem in pregen target

* pregen-headers really need the headers to get themselves generated.
  so we create explicit dependency and invoke make as an action on
  pregen. This fixes the parallel build issue for better.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoget rid of extra variables for nptl pregen altogether
Austin Foxley [Tue, 23 Feb 2010 09:30:16 +0000 (01:30 -0800)]
get rid of extra variables for nptl pregen altogether

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoorder headers before pregen-headers
Austin Foxley [Tue, 23 Feb 2010 09:15:30 +0000 (01:15 -0800)]
order headers before pregen-headers

   until someone gets a chance to fix this for real, this will unbreak
   building from a clean repo, as some of the pregen headers need some
   of the static headers

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoimprove parallel make behaviour
Austin Foxley [Tue, 23 Feb 2010 09:09:22 +0000 (01:09 -0800)]
improve parallel make behaviour

 * add library dependencies for libdl,libpthread
 * fix typo in librt/Makefile.in
 * also remove extra trailing slashes on i386, sparc pregen headers

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoinitialize new pregen-headers-y variable before including sub makefiles
Austin Foxley [Mon, 22 Feb 2010 23:59:59 +0000 (15:59 -0800)]
initialize new pregen-headers-y variable before including sub makefiles

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agonptl/headers: Convert the makefile targets into variables.
Khem Raj [Mon, 22 Feb 2010 23:16:18 +0000 (15:16 -0800)]
nptl/headers: Convert the makefile targets into variables.

* Introduce pregen-headers-y which is list of generated headers
  during the build and add this to pregen target in top level makefile.
  Also add nptl_headers, nptl_arch_headers, nptl_linux_headers
  to this if compiling with nptl.

* Replace pthread_pregen var with pregen-headers-y.

* Make nptl_headers, nptl_arch_headers, nptl_linux_headers variables
  instead of sub targets.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoGet x86_64 compile to succeed.
Khem Raj [Sat, 20 Feb 2010 03:21:25 +0000 (19:21 -0800)]
Get x86_64 compile to succeed.

* The changes to clone.S needs testing

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agosparc: disable cancellable system, as it fails in strange ways right now
Austin Foxley [Fri, 19 Feb 2010 20:06:03 +0000 (12:06 -0800)]
sparc: disable cancellable system, as it fails in strange ways right now

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosparc: also needs generic version of lowlevelrobustlock
Austin Foxley [Fri, 19 Feb 2010 19:41:00 +0000 (11:41 -0800)]
sparc: also needs generic version of lowlevelrobustlock

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoAdd dummy tcb-offsets.h
Khem Raj [Fri, 19 Feb 2010 16:01:00 +0000 (08:01 -0800)]
Add dummy tcb-offsets.h

* This file is used during creation of real tcb-offsets.h
  because lowlevellock.h from i386 also include tcb-offsets.h
  and it is inturn included by tls.h and tls.h is used in
  the dummy C file generated from tcb-offsets.sym, it created
  a catch-22

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agonptl_sh: Fix build problem with FUTEX_CLOCK_REALTIME
Carmelo Amoroso [Fri, 19 Feb 2010 15:32:22 +0000 (16:32 +0100)]
nptl_sh: Fix build problem with FUTEX_CLOCK_REALTIME

This patch fixes a build problem into the lowlevellock.S
when support FUTEX_CLOCK_REALTIME (kernel newer than 2.6.29).
__have_futex_clock_realtime symbol is not defined when set
__ASSUME_FUTEX_CLOCK_REALTIME. The same is on i386 arch.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agox86_64: compile pthread it's own version of __syscall_error
Austin Foxley [Fri, 19 Feb 2010 11:29:32 +0000 (03:29 -0800)]
x86_64: compile pthread it's own version of __syscall_error

also fix up clone.S from sync

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agomore fixes for x86_64 nptl
Austin Foxley [Fri, 19 Feb 2010 11:09:06 +0000 (03:09 -0800)]
more fixes for x86_64 nptl

also cleanup some PIC (should be __PIC__) that snuck in

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoadd dwarf defines used in cfi statements
Austin Foxley [Fri, 19 Feb 2010 11:08:16 +0000 (03:08 -0800)]
add dwarf defines used in cfi statements

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoupdate kernel-features.h with futex features
Austin Foxley [Fri, 19 Feb 2010 10:51:32 +0000 (02:51 -0800)]
update kernel-features.h with futex features

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agouse macro to link ldso to libpthread, so it gets the the right name on 64 bit archs
Austin Foxley [Fri, 19 Feb 2010 10:34:10 +0000 (02:34 -0800)]
use macro to link ldso to libpthread, so it gets the the right name on 64 bit archs

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agofixes to get nptl compiling for x86_64
Austin Foxley [Fri, 19 Feb 2010 10:05:52 +0000 (02:05 -0800)]
fixes to get nptl compiling for x86_64

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agox86_64: finish up tls reloc support in ldso
Austin Foxley [Fri, 19 Feb 2010 09:41:19 +0000 (01:41 -0800)]
x86_64: finish up tls reloc support in ldso

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoFixes to get nptl compiling for x86
Khem Raj [Fri, 19 Feb 2010 08:34:29 +0000 (00:34 -0800)]
Fixes to get nptl compiling for x86

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoFix typo in generated file names.
Khem Raj [Thu, 18 Feb 2010 15:56:44 +0000 (07:56 -0800)]
Fix typo in generated file names.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoi386 unify sysdep.h
Austin Foxley [Thu, 18 Feb 2010 15:53:02 +0000 (07:53 -0800)]
i386 unify sysdep.h

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agox86_64: unify sysdep.h
Austin Foxley [Thu, 18 Feb 2010 15:42:55 +0000 (07:42 -0800)]
x86_64: unify sysdep.h

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agonptl: Fix clean target to remove generated files
Carmelo Amoroso [Thu, 18 Feb 2010 14:35:19 +0000 (15:35 +0100)]
nptl: Fix clean target to remove generated files

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agoinclude tcb-offsets.h in sysdep-cancel.h for arm.
Khem Raj [Thu, 18 Feb 2010 09:06:57 +0000 (01:06 -0800)]
include tcb-offsets.h in sysdep-cancel.h for arm.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoGet new nptl building on SH4
Khem Raj [Thu, 18 Feb 2010 07:42:28 +0000 (23:42 -0800)]
Get new nptl building on SH4

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agocompile fixes for i386 nptl
Austin Foxley [Thu, 18 Feb 2010 02:44:35 +0000 (18:44 -0800)]
compile fixes for i386 nptl

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agofix nptl build for sparc
Austin Foxley [Thu, 18 Feb 2010 00:54:59 +0000 (16:54 -0800)]
fix nptl build for sparc

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agomove pthread_barrier_{init,destroy} to sysdeps/pthread
Austin Foxley [Thu, 18 Feb 2010 00:52:15 +0000 (16:52 -0800)]
move pthread_barrier_{init,destroy} to sysdeps/pthread
for archs that implement their own like sparc and x86_64

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoFix nptl build for mips
Khem Raj [Thu, 18 Feb 2010 00:49:55 +0000 (16:49 -0800)]
Fix nptl build for mips

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agosparc/nptl: typo fixes
Austin Foxley [Wed, 17 Feb 2010 23:08:10 +0000 (15:08 -0800)]
sparc/nptl: typo fixes

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosparc/nptl: fix wrong vfork hidden def
Austin Foxley [Wed, 17 Feb 2010 23:01:37 +0000 (15:01 -0800)]
sparc/nptl: fix wrong vfork hidden def

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoAdd missing lowlevelrobustlock.c
Khem Raj [Wed, 17 Feb 2010 22:59:11 +0000 (14:59 -0800)]
Add missing lowlevelrobustlock.c

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoAdd missing libgcc_s.h header.
Khem Raj [Wed, 17 Feb 2010 22:55:18 +0000 (14:55 -0800)]
Add missing libgcc_s.h header.

* Do not include tls.h in aeabi_read_tp.S. Its not needed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoupdate nptl gitignore
Austin Foxley [Wed, 17 Feb 2010 22:55:36 +0000 (14:55 -0800)]
update nptl gitignore

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agofix typo
Austin Foxley [Wed, 17 Feb 2010 22:45:39 +0000 (14:45 -0800)]
fix typo

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoAssorted fixed to get nptl compiling on ARM
Khem Raj [Wed, 17 Feb 2010 22:28:38 +0000 (14:28 -0800)]
Assorted fixed to get nptl compiling on ARM

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoa few more build fixes nptl sync
Austin Foxley [Tue, 16 Feb 2010 23:11:07 +0000 (15:11 -0800)]
a few more build fixes nptl sync

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agomass sync with glibc nptl
Austin Foxley [Tue, 16 Feb 2010 20:27:18 +0000 (12:27 -0800)]
mass sync with glibc nptl

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosparc/sigaction: revert change. These semantics are needed for nptl
Austin Foxley [Sun, 14 Feb 2010 00:48:23 +0000 (16:48 -0800)]
sparc/sigaction: revert change. These semantics are needed for nptl

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosparc/sysdep: Unify sparc sysdep.h
Austin Foxley [Sun, 14 Feb 2010 00:23:09 +0000 (16:23 -0800)]
sparc/sysdep: Unify sparc sysdep.h

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoarm/sysdep: Unify arm sysdep.h
Khem Raj [Fri, 12 Feb 2010 05:04:15 +0000 (21:04 -0800)]
arm/sysdep: Unify arm sysdep.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agomips/sysdep.h: Unify mips sysdep.h
Khem Raj [Fri, 12 Feb 2010 04:44:18 +0000 (20:44 -0800)]
mips/sysdep.h: Unify mips sysdep.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agolibc: build tsd only when tls is enabled
Austin Foxley [Thu, 11 Feb 2010 20:04:05 +0000 (12:04 -0800)]
libc: build tsd only when tls is enabled

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoldso: fix USE_TLS check
Austin Foxley [Thu, 11 Feb 2010 19:43:46 +0000 (11:43 -0800)]
ldso: fix USE_TLS check

this was causing tls symbols to leak into non-tls builds

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agolibc_sh: Update memcpy to use the ENTRY macro
Carmelo Amoroso [Wed, 10 Feb 2010 14:24:03 +0000 (15:24 +0100)]
libc_sh: Update memcpy to use the ENTRY macro

Use the ENTRY macro now available through the sysdep.h header

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agolibc_sh: Add a sysdep header for sh
Carmelo Amoroso [Wed, 10 Feb 2010 14:18:26 +0000 (15:18 +0100)]
libc_sh: Add a sysdep header for sh

A new sysdep header for sh (ported from NPTL branch) to provide some
useful macros in asm code:
ENTRY: an entry point visible from C
PSEUDO: a wrapper for syscall with proper errno checking
SYSCALL_ERROR_HANDLER: errno check (suitable for TLS)

This will help in NPTL integration.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agolibc: Add a common sysdep header
Carmelo Amoroso [Wed, 10 Feb 2010 14:14:14 +0000 (15:14 +0100)]
libc: Add a common sysdep header

Add a common header file to provide macros useful in asm code:
C_LABEL to construct the asm name for a C symbol
cfi_xxx to generate eh_frame unwind information.

Ported from NPTL branch.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agonptl: sysdep headers update for i386, mips and x86_64
Carmelo Amoroso [Tue, 9 Feb 2010 06:49:57 +0000 (07:49 +0100)]
nptl: sysdep headers update for i386, mips and x86_64

Update the arch specific sysdep headers to include the
common header under libc/sysdeps/linux/common instead of
libpthread/nptl/sysdeps/generic.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agonptl_test: sysdep headers re-factoring
Carmelo Amoroso [Thu, 7 Jan 2010 14:05:27 +0000 (15:05 +0100)]
nptl_test: sysdep headers re-factoring

Update nptl and tls Makefiles according to new sysdep headers structure

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agonptl: sysdep headers re-factoring
Carmelo Amoroso [Thu, 7 Jan 2010 10:55:08 +0000 (11:55 +0100)]
nptl: sysdep headers re-factoring

This patch will re-factor and simplify sysdep headers
handling for nptl branch.
The reason is to use some useful macros in asm code (i.e. ENTRY()) that are available
only into nptl branch because are defined in sysdep.h header under the nptl folder
even if they are not related to NPTL at all (this was likely due to a bad choice done
at the early stage of NPTL porting).
This is a required steps for integrating into master branch some asm code available in
nptl branch for sh4.

The main changes are described below:

nptl/sysdeps/generic/sysdep.h (moved) ---> libc/sysdeps/linux/common/sysdep.h
nptl/sysdeps/arm/sysdep.h     (moved) ---> libc/sysdeps/linux/arm/sysdep.h

nptl/sysdeps/sh/sysdep.h ---------------------|
nptl/sysdeps/unix/sh/sysdep.h ----------------|
nptl/sysdeps/unix/sysv/linux/sh/sysdep.h -----|
nptl/sysdeps/unix/sysv/linux/sh/sh4/sysdep.h -|
                                              |(merged) ---> libc/sysdeps/linux/sh

nptl/sysdeps/unix/sysdep.h (deleted)

Similarly the mips and arm sysdep.h should be merged and updated as for sh arch.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>