OSDN Git Service

uclinux-h8/uclibc-ng.git
9 years agomerge upstream changes
Waldemar Brodkorb [Mon, 26 Jan 2015 17:22:42 +0000 (11:22 -0600)]
merge upstream changes

9 years agolibc: sync_file_range missing comma
Bernhard Reutner-Fischer [Mon, 26 Jan 2015 15:50:29 +0000 (16:50 +0100)]
libc: sync_file_range missing comma

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoadd support for $ORIGIN
Waldemar Brodkorb [Sun, 25 Jan 2015 08:20:43 +0000 (02:20 -0600)]
add support for $ORIGIN

This is for example required, used and tested with OpenJDK 7.
No regressions found, while running the testsuite with embedded-test.

9 years agolibc: ppc64 etc: Fix sync_file_range
Bernhard Reutner-Fischer [Sat, 24 Jan 2015 19:50:02 +0000 (20:50 +0100)]
libc: ppc64 etc: Fix sync_file_range

Fix copy'n paste error for ppc64 and other sync_file_range2 arches

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoxtensa: ldso: drop unused address calculation from _dl_linux_resolve
Max Filippov [Sat, 10 Jan 2015 03:48:37 +0000 (06:48 +0300)]
xtensa: ldso: drop unused address calculation from _dl_linux_resolve

The result of the calculation in register a12 is never used as the
function _dl_linux_resolver only accepts 2 arguments. Drop it.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoxtensa: ldso: coalesce dl_mprotect address ranges
Max Filippov [Sat, 10 Jan 2015 01:42:42 +0000 (04:42 +0300)]
xtensa: ldso: coalesce dl_mprotect address ranges

This noticeably lowers the number of mprotect calls at program startup,
e.g. for busybox: 7 calls vs 1835 calls.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoadd argument check in mknod
Wang Yufen [Tue, 11 Nov 2014 07:59:11 +0000 (15:59 +0800)]
add argument check in mknod

mknod() in glibc/eglibc will check the argument, like this,
  ...
  if (k_dev != dev) {
      __set_errno (EINVAL);
      return -1;
   }
  ...
So add argument check in uclibc's mknod() too.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoadd argument check in setenv()
Xishi Qiu [Tue, 4 Nov 2014 11:26:28 +0000 (19:26 +0800)]
add argument check in setenv()

setenv() in glibc/eglibc will check the argument, like this,
  ...
  if (name == NULL || *name == '\0' || strchr (name, '=') != NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }
  ...
So add argument check in uclibc's setenv() too.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agonptl: compile pt-vfork in ARM-mode
Bernhard Reutner-Fischer [Fri, 23 Jan 2015 14:47:02 +0000 (15:47 +0100)]
nptl: compile pt-vfork in ARM-mode

amending commit 49a67cf67d5a7194214566bc730ee7e28d55bbe1
could need a thumb implementation..

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibc: Avoid redundant setting of ENOMEM
Bernhard Reutner-Fischer [Mon, 19 Jan 2015 21:49:10 +0000 (22:49 +0100)]
libc: Avoid redundant setting of ENOMEM

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibcrypt: return NULL on unsupported salt
Bernhard Reutner-Fischer [Mon, 19 Jan 2015 16:24:19 +0000 (17:24 +0100)]
libcrypt: return NULL on unsupported salt

BZ #7808 asks us not to fallback to DES if the optional SHA are disabled
but requested by the user.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoremove API dir. tests are disabled anyway.
Waldemar Brodkorb [Tue, 13 Jan 2015 21:50:58 +0000 (22:50 +0100)]
remove API dir. tests are disabled anyway.

9 years agoenable microblaze. at least toolchain creation is working without NPTL
Waldemar Brodkorb [Sat, 10 Jan 2015 02:51:17 +0000 (20:51 -0600)]
enable microblaze. at least toolchain creation is working without NPTL

9 years agotest: Adjust passed options
Bernhard Reutner-Fischer [Wed, 7 Jan 2015 12:26:42 +0000 (13:26 +0100)]
test: Adjust passed options

to follow suit 067637375658047d70c296606ae17ef0bc86499d

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoadd -fPIC to some tests.
Waldemar Brodkorb [Sun, 4 Jan 2015 15:05:12 +0000 (09:05 -0600)]
add -fPIC to some tests.

This is required to avoid a assertion error in binutils 2.24
for m68k.

9 years agomaybe fix an "noreturn function does return" warning
Thorsten Glaser [Thu, 1 Jan 2015 20:47:28 +0000 (20:47 +0000)]
maybe fix an "noreturn function does return" warning

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoshut up GCC, part 2
Thorsten Glaser [Thu, 1 Jan 2015 20:43:00 +0000 (20:43 +0000)]
shut up GCC, part 2

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agofix cast warning
Thorsten Glaser [Thu, 1 Jan 2015 19:44:26 +0000 (19:44 +0000)]
fix cast warning

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoshut up GCC
Thorsten Glaser [Thu, 1 Jan 2015 19:35:06 +0000 (19:35 +0000)]
shut up GCC

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoI think this is what you mean
Thorsten Glaser [Thu, 1 Jan 2015 19:34:08 +0000 (19:34 +0000)]
I think this is what you mean

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agosilence GCC
Thorsten Glaser [Thu, 1 Jan 2015 19:25:16 +0000 (19:25 +0000)]
silence GCC

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoremove apparently unused code, this time for real
Thorsten Glaser [Thu, 1 Jan 2015 19:13:18 +0000 (19:13 +0000)]
remove apparently unused code, this time for real

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoexplicitly cast (even though this casting is not very nice)
Thorsten Glaser [Thu, 1 Jan 2015 19:09:51 +0000 (19:09 +0000)]
explicitly cast (even though this casting is not very nice)

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agomake __dl_start, whose address is taken, into a real object type
Thorsten Glaser [Thu, 1 Jan 2015 19:08:07 +0000 (19:08 +0000)]
make __dl_start, whose address is taken, into a real object type

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoremove unused Linux 2.0 compat code, otherwise c6x without NPTL is broken
Waldemar Brodkorb [Thu, 1 Jan 2015 19:34:18 +0000 (13:34 -0600)]
remove unused Linux 2.0 compat code, otherwise c6x without NPTL is broken

9 years agobe sure to use EXTRA_CFLAGS for tests, too
Waldemar Brodkorb [Tue, 30 Dec 2014 21:25:59 +0000 (22:25 +0100)]
be sure to use EXTRA_CFLAGS for tests, too

9 years agoremove another two warnings.
Waldemar Brodkorb [Tue, 30 Dec 2014 20:28:10 +0000 (21:28 +0100)]
remove another two warnings.

9 years agoMerge branch 'master' of git+ssh://openadk.org/git/uclibc-ng
Waldemar Brodkorb [Tue, 30 Dec 2014 17:34:38 +0000 (18:34 +0100)]
Merge branch 'master' of git+ssh://openadk.org/git/uclibc-ng

9 years agoreenable c6x for toolchain testing without NPTL
Waldemar Brodkorb [Tue, 30 Dec 2014 17:34:30 +0000 (18:34 +0100)]
reenable c6x for toolchain testing without NPTL

9 years agoremove comment
Waldemar Brodkorb [Mon, 29 Dec 2014 05:08:54 +0000 (23:08 -0600)]
remove comment

9 years agoreduce some unneeded warnings.
Waldemar Brodkorb [Mon, 29 Dec 2014 05:05:39 +0000 (23:05 -0600)]
reduce some unneeded warnings.

9 years agoremove hidden warning option, not useful for others.
Waldemar Brodkorb [Mon, 29 Dec 2014 04:55:38 +0000 (22:55 -0600)]
remove hidden warning option, not useful for others.

9 years agofix warning when doing make clean
Waldemar Brodkorb [Mon, 29 Dec 2014 04:51:58 +0000 (22:51 -0600)]
fix warning when doing make clean

9 years agoupdate INSTALL
Waldemar Brodkorb [Mon, 29 Dec 2014 04:51:11 +0000 (22:51 -0600)]
update INSTALL

9 years agorevert getopt changes to tests
Waldemar Brodkorb [Mon, 29 Dec 2014 04:10:35 +0000 (22:10 -0600)]
revert getopt changes to tests

The upstream changes are not complete and let the tests
fail. Revert the changes for now, may be upstream will make
a better fix later.

9 years agofor mips64 with N32 ABI we need to use newfstatat
Waldemar Brodkorb [Sun, 28 Dec 2014 20:33:35 +0000 (21:33 +0100)]
for mips64 with N32 ABI we need to use newfstatat

Fixes compile errors with latest util-linux.

9 years agorelocation fixes
Waldemar Brodkorb [Sun, 28 Dec 2014 16:09:15 +0000 (17:09 +0100)]
relocation fixes

From OpenWrt:
https://dev.openwrt.org/browser/trunk/toolchain/uClibc/patches-0.9.33.2/613-mips64_more_relocation_fixes.patch

9 years agosparc64 support was removed recently
Waldemar Brodkorb [Sun, 28 Dec 2014 16:02:28 +0000 (17:02 +0100)]
sparc64 support was removed recently

Remove leftover code.

9 years agodon't optimize for special mips cpu
Waldemar Brodkorb [Fri, 26 Dec 2014 17:43:07 +0000 (18:43 +0100)]
don't optimize for special mips cpu

When building optimized code for Lemote Yeelong system, a conflict
occurs. Better use optimized flags in your buildsystem, not in uClibc-ng.

9 years agomerge upstream changes
Waldemar Brodkorb [Thu, 25 Dec 2014 21:48:20 +0000 (22:48 +0100)]
merge upstream changes

9 years agosync tcp header with glibc
Waldemar Brodkorb [Thu, 25 Dec 2014 06:28:36 +0000 (07:28 +0100)]
sync tcp header with glibc

Nginx tries to find TCP_FASTOPEN, which is missing here.

9 years agomkostemp: fix implementation
Anthony G. Basile [Mon, 27 Oct 2014 20:13:34 +0000 (16:13 -0400)]
mkostemp: fix implementation

mkostemp(char *template, int flags) generates a unique temporary
filename from a template.  The flags parameter accepts three of
the same flags as open(2): O_APPEND, O_CLOEXEC, and O_SYNC.  The
current implementation of mkostemp(3) does not respect the flags
and in fact confuses the flags with the file mode which should
always be S_IRUSR | S_IWUSR.  This patch corrects this issue.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agotest: Some more tests under conditionals
Bernhard Reutner-Fischer [Mon, 15 Dec 2014 16:32:57 +0000 (17:32 +0100)]
test: Some more tests under conditionals

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agostdio: Fix printing 0.0
Bernhard Reutner-Fischer [Mon, 15 Dec 2014 15:13:01 +0000 (16:13 +0100)]
stdio: Fix printing 0.0

We were relying on FE_DIVBYZERO being turned off when printing
"%f", +-.0
Avoid the whole issue by looking at the sign-bit (in a rough
approximation).

Note that we do not handle gracefully:
  printf ("\n%llf\n", -0.0);
  printf ("\n%llf\n",  0.0);
nor %Lf for both when NOT cast to long double. Avoiding an FPE due to
broken numbers like these does not make sense to me.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agounistd: allow to turn off getopt_long
Bernhard Reutner-Fischer [Fri, 12 Dec 2014 15:18:12 +0000 (16:18 +0100)]
unistd: allow to turn off getopt_long

The GNU variant of getopt() previously had no way to turn off
getopt_long() support.

9 years agotest: disable ptytest unless HAS_PTY
Bernhard Reutner-Fischer [Fri, 12 Dec 2014 15:06:17 +0000 (16:06 +0100)]
test: disable ptytest unless HAS_PTY

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoconfig: move STDIO_FUTEXES up a bit
Bernhard Reutner-Fischer [Fri, 12 Dec 2014 13:43:55 +0000 (14:43 +0100)]
config: move STDIO_FUTEXES up a bit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agodisable test for noMMU
Waldemar Brodkorb [Wed, 10 Dec 2014 19:05:43 +0000 (13:05 -0600)]
disable test for noMMU

9 years agomkostemp: fix implementation
Anthony G. Basile [Mon, 27 Oct 2014 20:13:34 +0000 (16:13 -0400)]
mkostemp: fix implementation

mkostemp(char *template, int flags) generates a unique temporary
filename from a template.  The flags parameter accepts three of
the same flags as open(2): O_APPEND, O_CLOEXEC, and O_SYNC.  The
current implementation of mkostemp(3) does not respect the flags
and in fact confuses the flags with the file mode which should
always be S_IRUSR | S_IWUSR.  This patch corrects this issue.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
9 years agoadd argument check in mknod
wangyufen [Tue, 11 Nov 2014 07:59:11 +0000 (15:59 +0800)]
add argument check in mknod

mknod() in glibc/eglibc will check the argument, like this,
  ...
  if (k_dev != dev) {
      __set_errno (EINVAL);
      return -1;
   }
  ...
So add argument check in uclibc's mknod() too.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Tue, 9 Dec 2014 14:06:31 +0000 (15:06 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agosigaction: Fix !HAS_REALTIME compilation
Bernhard Reutner-Fischer [Tue, 9 Dec 2014 13:30:39 +0000 (14:30 +0100)]
sigaction: Fix !HAS_REALTIME compilation

In file included from ./include/signal.h:279:0,
 from libc/sysdeps/linux/x86_64/sigaction.c:22:
./include/bits/sigaction.h:32:29: error: unknown type name 'siginfo_t'
   void (*sa_sigaction)(int, siginfo_t *, void *);

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoremove text files not useful for uClibc-ng
Waldemar Brodkorb [Mon, 8 Dec 2014 05:56:29 +0000 (06:56 +0100)]
remove text files not useful for uClibc-ng

9 years agoarm: add RESET_PID in the clone impl
Wang Yufen [Fri, 5 Sep 2014 07:19:21 +0000 (15:19 +0800)]
arm: add RESET_PID in the clone impl

Called getpid() When creating a new process with clone(), getpid() returns
the father_process's value. It should be child_process's value.
The reason is missing a RESET_PID in the arm clone impl.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Thu, 4 Dec 2014 18:34:29 +0000 (19:34 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agomips: rename siginfo _timer members
Bernhard Reutner-Fischer [Wed, 3 Dec 2014 16:43:25 +0000 (17:43 +0100)]
mips: rename siginfo _timer members

Rename _timer[12] to si_tid and si_overrun to fix compilation of
strace-4.9+

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: remove some obsolete optimization CFLAGS
Bernhard Reutner-Fischer [Wed, 3 Dec 2014 15:18:54 +0000 (16:18 +0100)]
buildsys: remove some obsolete optimization CFLAGS

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Mon, 1 Dec 2014 19:47:00 +0000 (20:47 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agolocale: Add wcsftime()
Bernhard Reutner-Fischer [Tue, 18 Nov 2014 17:27:47 +0000 (18:27 +0100)]
locale: Add wcsftime()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Thu, 13 Nov 2014 22:27:23 +0000 (23:27 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agonptl: compile pt-vfork in ARM-mode
Bernhard Reutner-Fischer [Thu, 13 Nov 2014 19:58:52 +0000 (20:58 +0100)]
nptl: compile pt-vfork in ARM-mode

could need a thumb implementation..

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Tue, 11 Nov 2014 19:58:19 +0000 (20:58 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agoConfig.in.arch: enable long double math for xtensa
Max Filippov [Sat, 25 Oct 2014 10:32:35 +0000 (14:32 +0400)]
Config.in.arch: enable long double math for xtensa

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agostatfs: fix compile error when UCLIBC_LINUX_SPECIFIC is not set
Anthony G. Basile [Sat, 6 Sep 2014 23:45:34 +0000 (19:45 -0400)]
statfs: fix compile error when UCLIBC_LINUX_SPECIFIC is not set

statfs() is a Linux-specific function.  When building without
UCLIBC_LINUX_SPECIFIC set, libc_hidden_proto(statfs) in
include/sys/statfs.h is unmatched with libc_hidden_def(statfs)
in libc/sysdeps/linux/common/statfs.c, leading to a compile
error.  This patch fixes this, as well as adds statfs() to the
list of Linux-specific functions in extra/Configs/Config.in.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoreduce the list of supported architectures
Waldemar Brodkorb [Tue, 14 Oct 2014 18:57:16 +0000 (20:57 +0200)]
reduce the list of supported architectures

As most of these architectures either does not compile or embedded
hardware is difficult to get, I disable them for now.
I do not remove the existing code and hope to enable many
of them in the future, but not for 1.0.

9 years agom68k: remove reg.h
Waldemar Brodkorb [Sat, 11 Oct 2014 20:03:17 +0000 (22:03 +0200)]
m68k: remove reg.h

If reg.h exist, gdbserver fails to compile.
I am not sure if this header file is needed for anything.

9 years agoc6x: disable it at the moment
Waldemar Brodkorb [Fri, 10 Oct 2014 19:29:05 +0000 (21:29 +0200)]
c6x: disable it at the moment

There is a NPTL port of uCLibc for c6x, but it doesn't work
with uClibc master. May be someone with real hardware could
sync it. Unfortunately I got no respone from Aurelien and
no response on the mailing list.

9 years agotest: disable for noMMU case
Waldemar Brodkorb [Wed, 8 Oct 2014 06:23:30 +0000 (08:23 +0200)]
test: disable for noMMU case

Pthread tests are failing for coldfire with linuxthreads
enabled.

9 years agodisable a test for avr32, compile failure.
Waldemar Brodkorb [Sun, 5 Oct 2014 20:01:48 +0000 (22:01 +0200)]
disable a test for avr32, compile failure.

9 years agodisable some test for avr32, compile failures.
Waldemar Brodkorb [Sun, 5 Oct 2014 18:32:10 +0000 (20:32 +0200)]
disable some test for avr32, compile failures.

9 years agolinuxthreads: fix compile error for non-MMU
Waldemar Brodkorb [Fri, 3 Oct 2014 06:15:19 +0000 (08:15 +0200)]
linuxthreads: fix compile error for non-MMU

Otherwise you get following linking error, because
of missing functions in libc.a:
undefined reference to `__libc_enable_asynccancel'

Fix by Thorsten Glaser while hacking session.

9 years agom68k: fix linuxthreads compile for coldfire
Waldemar Brodkorb [Fri, 3 Oct 2014 04:27:04 +0000 (06:27 +0200)]
m68k: fix linuxthreads compile for coldfire

The tas instruction is not available for most coldfire CPU's.
Use bset instead in this case as already used in linuxthreads.old.

9 years agodisable linkage of gcc_eh
Waldemar Brodkorb [Fri, 3 Oct 2014 04:11:32 +0000 (06:11 +0200)]
disable linkage of gcc_eh

As recently discussed on the uClibc mailing list here:
http://lists.uclibc.org/pipermail/uclibc/2014-September/048659.html

I think it is not required for gcc 4.8.3, which is default in
f.e. OpenADK. Tested with a DODEBUG build for x86.

9 years agoremove forced gcc optimization
Waldemar Brodkorb [Wed, 1 Oct 2014 18:54:18 +0000 (20:54 +0200)]
remove forced gcc optimization

It was added in 6d6bd8ba78434ecb09395582b5f3e41febd4d4ee,
but it is unclear for me, why this is needed or if it is
required. I don't think we should depend on some gcc
optimization, which might change in the future.
Anyway, this breaks c6x toolchain building (ICE), so I remove it.
Testsuite run for supported architectures didn't add any
new errors.

9 years agolibpthread: disable unimplemented configurations
Waldemar Brodkorb [Fri, 26 Sep 2014 17:16:24 +0000 (19:16 +0200)]
libpthread: disable unimplemented configurations

When NPTL is available for an architecture just allow the use of it.
If NPTL is not available for an architecture, allow to choose between
LT and LT.old. This minimizes misconfiguration of threading library.

9 years agoenable this symbol by default
Waldemar Brodkorb [Fri, 26 Sep 2014 17:00:16 +0000 (19:00 +0200)]
enable this symbol by default

disabling this results in non-working toolchain building, so
better do not allow anyone to disable it.

9 years agoAdd eventfd_read() and eventfd_write()
Waldemar Brodkorb [Sat, 5 Jul 2014 16:09:19 +0000 (18:09 +0200)]
Add eventfd_read() and eventfd_write()

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoDo not define unimplemented functions
Cristian Morales Vega [Tue, 23 Sep 2014 12:17:25 +0000 (13:17 +0100)]
Do not define unimplemented functions

e.g. fminf() is not implemented, only fmin(), but both are defined.

Signed-off-by: Cristian Morales Vega <cristian@samknows.com>
9 years agocris: remove call to HIDDEN_JUMPTARGET
Waldemar Brodkorb [Fri, 26 Sep 2014 09:46:22 +0000 (11:46 +0200)]
cris: remove call to HIDDEN_JUMPTARGET

errno_location is no longer hidden, so remove the call
to the macro, like done for sparc recently.

9 years agocris: do not include asm/elf.h
Waldemar Brodkorb [Fri, 26 Sep 2014 09:37:02 +0000 (11:37 +0200)]
cris: do not include asm/elf.h

elf.h is not exported by the Linux kernel, do not include
it here. Done like in other architectures.

9 years agotestsuite: fix xtensa macros
Waldemar Brodkorb [Tue, 23 Sep 2014 20:02:18 +0000 (22:02 +0200)]
testsuite: fix xtensa macros

9 years agoadd tls test macros for xtensa
Waldemar Brodkorb [Tue, 23 Sep 2014 16:31:31 +0000 (18:31 +0200)]
add tls test macros for xtensa

http://lists.linux-xtensa.org/pipermail/linux-xtensa/Week-of-Mon-20130819/001153.html

9 years agoxtensa: add support for NPTL
Waldemar Brodkorb [Sat, 20 Sep 2014 20:36:23 +0000 (22:36 +0200)]
xtensa: add support for NPTL

Changes from:
https://github.com/foss-xtensa/uClibc/commits/xtensa_nptl

Author: Chris Zankel <chris@zankel.net>
Author: Baruch Siach <baruch@tkos.co.il>

9 years agodisable tests for arc as long as binutils is buggy
Waldemar Brodkorb [Tue, 9 Sep 2014 16:40:22 +0000 (18:40 +0200)]
disable tests for arc as long as binutils is buggy

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
9 years agodisable tests if HAVE_SHARED is not set
Waldemar Brodkorb [Sun, 7 Sep 2014 14:38:14 +0000 (16:38 +0200)]
disable tests if HAVE_SHARED is not set

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
9 years agolinuxthreads: remove unused s390 code
Waldemar Brodkorb [Sat, 6 Sep 2014 12:45:42 +0000 (14:45 +0200)]
linuxthreads: remove unused s390 code

Cleanup linuxthreads by removing unused s390 code.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
9 years agonptl: remove duplicate vfork() in libpthread
Waldemar Brodkorb [Sat, 20 Sep 2014 20:09:00 +0000 (22:09 +0200)]
nptl: remove duplicate vfork() in libpthread

Automatic patching via two oneliners by Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>:
sed -i -e 's/[[:space:]]pt-vfork\.[csS]//' -e '/^ASFLAGS-pt-vfork\./d' $(git grep -l pt-vfork libpthread/nptl/sysdeps)
find libpthread/nptl -name "*pt-vfork*" -exec git rm {} \;

Reported-By: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
9 years agotest: disable posix_fallocate64 for small embedded systems
Waldemar Brodkorb [Mon, 1 Sep 2014 19:02:19 +0000 (21:02 +0200)]
test: disable posix_fallocate64 for small embedded systems

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
9 years agodisable broken architectures
Waldemar Brodkorb [Wed, 17 Sep 2014 21:46:56 +0000 (23:46 +0200)]
disable broken architectures

9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Wed, 17 Sep 2014 21:41:56 +0000 (23:41 +0200)]
Merge remote-tracking branch 'origin/upstream'

9 years agom68k: libc: add fmovem* mcffpu condition
Bernhard Reutner-Fischer [Wed, 17 Sep 2014 18:45:26 +0000 (20:45 +0200)]
m68k: libc: add fmovem* mcffpu condition

add fmovem{x,.d,.*} ISA conditional
Fixes assembler errors for 5206.
isa_a, isa_b (or a+, don't remember) do not have emx, use em.d there.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agosparc: update ptrace.h to latest from glibc
Gustavo Zacarias [Sun, 7 Sep 2014 15:01:34 +0000 (12:01 -0300)]
sparc: update ptrace.h to latest from glibc

Update sys/ptrace.h to latest glibc release for a lot of missing
definitions.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agopowerpc: update ptrace.h to latest from glibc
Gustavo Zacarias [Sun, 7 Sep 2014 15:01:33 +0000 (12:01 -0300)]
powerpc: update ptrace.h to latest from glibc

Update sys/ptrace.h to latest glibc release for a lot of missing
definitions.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: remove now redundant lib placement defines
Bernhard Reutner-Fischer [Tue, 16 Sep 2014 20:07:12 +0000 (22:07 +0200)]
buildsys: remove now redundant lib placement defines

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibc: silence missing prototype warning
Bernhard Reutner-Fischer [Tue, 16 Sep 2014 19:36:54 +0000 (21:36 +0200)]
libc: silence missing prototype warning

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: fix IS_IN_lib*
Bernhard Reutner-Fischer [Mon, 15 Sep 2014 20:13:07 +0000 (22:13 +0200)]
buildsys: fix IS_IN_lib*

define NOT_IN_libc / IS_IN_libxxx appropriately
to fix pthread_once

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agonptl: rephrase *.sym handling
Bernhard Reutner-Fischer [Wed, 10 Sep 2014 20:18:55 +0000 (22:18 +0200)]
nptl: rephrase *.sym handling

Avoids circular dependency warning from make by generating the .h
directly from the .sym files, elimination intermediate files.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Tue, 9 Sep 2014 19:20:07 +0000 (21:20 +0200)]
Merge remote-tracking branch 'origin/upstream'

9 years agobuildsys: Fix typo
Bernhard Reutner-Fischer [Tue, 9 Sep 2014 11:49:34 +0000 (13:49 +0200)]
buildsys: Fix typo

LDFLAG-fuse-ld looked at a non-existing var, use the correct one

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibc: add fallocate() and fallocate64()
Anthony G. Basile [Sun, 7 Sep 2014 19:33:46 +0000 (15:33 -0400)]
libc: add fallocate() and fallocate64()

We add the Linux-specific function fallocate() which allows the user to
directly manipulate allocate space for a file.  fallocate() can operate
in different modes, but the default mode is equivalent to posix_fallocate()
which is specified in POSIX.1.

Recent releases of e2fsprogs 1.42.11 and above expect fallocate64() to be
available.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>