OSDN Git Service

uclinux-h8/uclibc-ng.git
8 years agodisable for sparc/mips, need to analyze later
Waldemar Brodkorb [Mon, 8 Jun 2015 17:42:47 +0000 (12:42 -0500)]
disable for sparc/mips, need to analyze later

8 years agoavoid some compiler warnings
Waldemar Brodkorb [Sun, 7 Jun 2015 18:29:33 +0000 (13:29 -0500)]
avoid some compiler warnings

Patch seen here:
http://lists.uclibc.org/pipermail/uclibc/2015-April/048892.html

8 years agojust use 4k pages for microblaze, the config are missing and never committed into...
Waldemar Brodkorb [Sun, 7 Jun 2015 18:15:59 +0000 (13:15 -0500)]
just use 4k pages for microblaze, the config are missing and never committed into uClibc

8 years agoh8300 has no NPTL
Waldemar Brodkorb [Sun, 7 Jun 2015 07:32:35 +0000 (02:32 -0500)]
h8300 has no NPTL

8 years agodisable not available CFLAGS for h8300
Waldemar Brodkorb [Sun, 7 Jun 2015 07:30:16 +0000 (02:30 -0500)]
disable not available CFLAGS for h8300

8 years agoresolve merge conflicts
Waldemar Brodkorb [Thu, 4 Jun 2015 21:54:18 +0000 (16:54 -0500)]
resolve merge conflicts

8 years agouse static directories
Waldemar Brodkorb [Sat, 30 May 2015 08:23:46 +0000 (03:23 -0500)]
use static directories

The list might not exist on target when cross-compiling.

8 years agogetconf.c: undef VERSION
Bernhard Reutner-Fischer [Thu, 28 May 2015 15:05:43 +0000 (17:05 +0200)]
getconf.c: undef VERSION

might come in via nptl so undef it before redefining it

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
8 years agoARC: enable IPv6 in defconfigs
Alexey Brodkin [Mon, 25 May 2015 10:50:42 +0000 (13:50 +0300)]
ARC: enable IPv6 in defconfigs

These days IPv6 is used more and more in different software
packages. And so we're adding IPv6 support by default in uClibc
for ARC cores.

Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Anton Kolesov <akolesov@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
8 years agoh8300: Makefile update
Yoshinori Sato [Sat, 23 May 2015 17:06:27 +0000 (02:06 +0900)]
h8300: Makefile update

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
8 years agoh8300: Add new feature
Yoshinori Sato [Sat, 23 May 2015 17:06:26 +0000 (02:06 +0900)]
h8300: Add new feature

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
8 years agoh8300: headers update
Yoshinori Sato [Sat, 23 May 2015 17:06:25 +0000 (02:06 +0900)]
h8300: headers update

- wire up new kernel

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
8 years agoh8300: Assembly functions
Yoshinori Sato [Sat, 23 May 2015 17:06:24 +0000 (02:06 +0900)]
h8300: Assembly functions

- remove symbol prefix
- new startup
- new clone syscall support

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
8 years agoh8300: 64bit integer support
Yoshinori Sato [Sat, 23 May 2015 17:06:23 +0000 (02:06 +0900)]
h8300: 64bit integer support

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
8 years agoh8300: config update
Yoshinori Sato [Sat, 23 May 2015 17:06:22 +0000 (02:06 +0900)]
h8300: config update

- New toolchain
- Add new flags

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
8 years agoimplement experimental pure-sh testsuite runner and generation
mirabilos [Sun, 24 May 2015 17:21:54 +0000 (19:21 +0200)]
implement experimental pure-sh testsuite runner and generation

9 years agoadd thanks file
Waldemar Brodkorb [Thu, 21 May 2015 19:38:31 +0000 (21:38 +0200)]
add thanks file

9 years agosiginfo: add signal info for seccomp related SIGSYS
Daniel Golle [Sun, 17 May 2015 20:49:23 +0000 (22:49 +0200)]
siginfo: add signal info for seccomp related SIGSYS

uClibc doesn't define signal info for the SIGSYS signal which is issued
in case of hitting a syscall prohibited by seccomp.
This is sad as it makes debugging seccomp filter policies impossible on
some architectures (at least ARM and PowerPC, maybe also others) which
do not coincidentally set si_value.sival_int as the syscall number.

To fix this, import the definitions and macros needed from glibc.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agotest/silly: Extend include path.
Andrew Burgess [Thu, 7 May 2015 15:12:02 +0000 (16:12 +0100)]
test/silly: Extend include path.

When attempting to build uClibc under buildroot, including building the
tests, the silly tests don't currently compile, a result of attempting
to build using a compiler that does not yet have an installed version of
uClibc available.  The error is a missing header file, specifically
atomic.h.

Taking inspiration from the nptl tests, I have extended the EXTRA_CFLAGS
variable to add the required include paths.  The tests can now be built
under buildroot.

Signed-off-by: Andrew Burgess <andrew.burgess@embecosm.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years ago_scanf.c: Implement 'm' modifier for 'c' and '[' conversions.
Will Newton [Thu, 7 May 2015 22:15:19 +0000 (01:15 +0300)]
_scanf.c: Implement 'm' modifier for 'c' and '[' conversions.

The current code implements the 'm' modifier only for 's'
conversions and would cause a segfault if it was used for 'c'
or '[' conversions. This patch extends the code to cover these
cases too.

The original version could write scanned data outside the passed buffer
because index i used in the '[' conversion handling block was clobbered.

Signed-off-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agonptl_db: fix ommitting td_ta_setconcurrency
Bernhard Reutner-Fischer [Wed, 6 May 2015 20:38:38 +0000 (22:38 +0200)]
nptl_db: fix ommitting td_ta_setconcurrency

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoinit.c (__nptl_initial_report_events): New variable.
Roland McGrath [Tue, 28 Apr 2015 03:07:24 +0000 (11:07 +0800)]
init.c (__nptl_initial_report_events): New variable.

(__pthread_initialize_minimal_internal): Initialize pd->report_events
to that.

This patch helps NPTL report TD_CREATE event, so that GDB could catch the
event and update its thread_list.
Link: http://lists.uclibc.org/pipermail/uclibc/2015-April/048921.html
[shengyong:
 - original patch from glibc: commit 7d9d8bd18906fdd17364f372b160d7ab896ce909
 - context adjust
 - update nptl_db/ChangeLog]

Signed-off-by: Roland McGrath <roland@gnu.org>
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: pregen depends on xlocale
Bernhard Reutner-Fischer [Wed, 29 Apr 2015 21:52:18 +0000 (23:52 +0200)]
buildsys: pregen depends on xlocale

pt-initfini eventually depends on xlocale

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agostrftime: comment on %0xY %+nY %-nY
Bernhard Reutner-Fischer [Wed, 29 Apr 2015 08:41:42 +0000 (10:41 +0200)]
strftime: comment on %0xY %+nY %-nY

Would fix: date -u +%4Y%2m%2d%2H%2M%2S

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: swap V=1 with V=2 command printing
Bernhard Reutner-Fischer [Wed, 29 Apr 2015 08:22:18 +0000 (10:22 +0200)]
buildsys: swap V=1 with V=2 command printing

Previously V=1 did print abbreviated commands and V=2 the full commands.

Kbuild-based build-systems behave in the opposite way and this is
apparently confusing or inconvenient for users so swap our V handling to
be in line with kbuild (and automake as far as V=0 / V=1 is concerned).

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoRevert "Do not define unimplemented functions"
Waldemar Brodkorb [Sat, 25 Apr 2015 12:09:40 +0000 (07:09 -0500)]
Revert "Do not define unimplemented functions"

This reverts commit bd3eaf83ef1b4954b6c0e7ba8bbdd29b2cd4a833.

They are now implemented.

9 years agodisabled ARC tests working now
Waldemar Brodkorb [Sat, 25 Apr 2015 00:47:48 +0000 (02:47 +0200)]
disabled ARC tests working now

As reported by Alexey Brodkin <Alexey.Brodkin@synopsys.com>
these tests do not fail anymore. After upgrading binutils/gcc
tests compile fine.

9 years agobuildsys: LT{,.old} CRT prereq
Bernhard Reutner-Fischer [Thu, 23 Apr 2015 21:17:00 +0000 (23:17 +0200)]
buildsys: LT{,.old} CRT prereq

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: Tweak pregen wrt headers_dep
Bernhard Reutner-Fischer [Thu, 23 Apr 2015 21:15:45 +0000 (23:15 +0200)]
buildsys: Tweak pregen wrt headers_dep

Required for !NPTL, !context-funcs for example.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC: enable more options to satisfy build requirements of applications
Alexey Brodkin [Wed, 22 Apr 2015 04:01:38 +0000 (09:31 +0530)]
ARC: enable more options to satisfy build requirements of applications

As reported by Buildroot autobuilder following options were missing:

 * Libutil stub (UCLIBC_HAS_LIBUTIL option)
   http://autobuild.buildroot.org/results/ce3/ce39eb9b9ece0968563641fb2207099d1a37b191/

 * Program_invocation_name (UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y)
   http://autobuild.buildroot.org/results/154/1546d909e606daefd41b87dece94d642c0fdeba4/
   http://autobuild.buildroot.org/results/bd5/bd54581d7b0cc73bc501072d27e870a443dfce79/

 * Ifaddrd support (UCLIBC_SUPPORT_AI_ADDRCONFIG=y)
   http://autobuild.buildroot.org/results/134/134e78ef1fa87f7fbf26c23ec5dfc68785d79613/

 * Libnsl (UCLIBC_HAS_LIBNSL_STUB=y)
   http://autobuild.buildroot.net/results/331/331ed781b422448205fb9e7c9730ec0c438d6306/
   http://autobuild.buildroot.net/results/402/402d64965ac7ac6e1d4e1990080394958802fe8c/
   http://autobuild.buildroot.net/results/960/9605bac2972d3e3d3fb91947ae6921e89210247b/
   http://autobuild.buildroot.net/results/6b6/6b61ea80a3a6dcead233c4b408eba8b8d647e841/

* UTMP got reworked recently, which breaks packages such as busybox, gdbserver
  etc so enable that too

Enabling mentioned options to make sure more packages could be built with ARC pre-built uClibc tools.

Note UCLIBC_USE_NETLINK is a prerequisite for UCLIBC_SUPPORT_AI_ADDRCONFIG.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Anton Kolesov <akolesov@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: pregen depends on xlocale
Bernhard Reutner-Fischer [Sat, 18 Apr 2015 20:57:45 +0000 (22:57 +0200)]
buildsys: pregen depends on xlocale

since ae9e3f46 sched.h pulls in stdlib.h (for malloc() and free()) and
thus also xlocale..

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoarm: Add BX and BXC macros
Bernhard Reutner-Fischer [Sat, 18 Apr 2015 20:41:46 +0000 (22:41 +0200)]
arm: Add BX and BXC macros

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoarm: Fix POP_RET for armv4t && interworking
Bernhard Reutner-Fischer [Sat, 18 Apr 2015 20:38:29 +0000 (22:38 +0200)]
arm: Fix POP_RET for armv4t && interworking

It seems the condition was reversed which lead to e.g. arm-920t being
confused

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoNPTL: Rename a variable
Bernhard Reutner-Fischer [Sat, 18 Apr 2015 19:37:30 +0000 (21:37 +0200)]
NPTL: Rename a variable

There seems to be a bug in gold with static TLS at least on x86_64 (?)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoldso: PRELINK: Remove surplus newline
Bernhard Reutner-Fischer [Sat, 18 Apr 2015 19:36:26 +0000 (21:36 +0200)]
ldso: PRELINK: Remove surplus newline

in early debugging code

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: try to merge all constants
Bernhard Reutner-Fischer [Sat, 18 Apr 2015 18:24:44 +0000 (20:24 +0200)]
buildsys: try to merge all constants

Saves a couple of bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoreturn NULL for realloc(p,0) like glibc
Waldemar Brodkorb [Fri, 3 Apr 2015 10:20:41 +0000 (05:20 -0500)]
return NULL for realloc(p,0) like glibc

See discussion here about the issue:
https://sourceware.org/bugzilla/show_bug.cgi?id=12547

Fixes testsuite errors.

9 years agosimplify malloc, remove sbrk support
Waldemar Brodkorb [Fri, 20 Mar 2015 06:57:40 +0000 (01:57 -0500)]
simplify malloc, remove sbrk support

9 years agostick with one malloc implementation for all
Waldemar Brodkorb [Thu, 19 Mar 2015 18:51:09 +0000 (13:51 -0500)]
stick with one malloc implementation for all

Supporting three different malloc implementations seems
a big overhead to be avoided. Just use malloc, which
works for MMU/no-MMU devices just fine.

9 years agofix static linking of pthread apps
Waldemar Brodkorb [Wed, 15 Apr 2015 17:47:57 +0000 (12:47 -0500)]
fix static linking of pthread apps

When compiling python you get duplicate symbol problem.
Seen in the autobuilders of buildroot project.

9 years agouse weak to fix f.e. cdrkit static compile. fixes #3
Waldemar Brodkorb [Thu, 26 Feb 2015 19:46:11 +0000 (20:46 +0100)]
use weak to fix f.e. cdrkit static compile. fixes #3

9 years agoarm: thumb1: Fix conflicting types for _v3
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
arm: thumb1: Fix conflicting types for _v3

In file included from ./include/sys/syscall.h:33:0,
                 from libc/sysdeps/linux/common/sync_file_range.c:10:
libc/sysdeps/linux/common/sync_file_range.c: In function '__sync_file_range_nocancel':
./include/bits/syscalls.h:144:16: error: conflicting types for '_v3'
   register int _v3 __asm__ ("v3") = _v3tmp;
                ^
./libc/sysdeps/linux/arm/sysdep.h:281:7: note: in expansion of macro 'LOAD_ARGS_7'
       LOAD_ARGS_##nr (args)     \
       ^
./libc/sysdeps/linux/arm/sysdep.h:324:2: note: in expansion of macro 'INTERNAL_SYSCALL_RAW'
  INTERNAL_SYSCALL_RAW(SYS_ify(name), err, nr, args)
  ^
./libc/sysdeps/linux/arm/sysdep.h:256:40: note: in expansion of macro 'INTERNAL_SYSCALL'
   ({ unsigned int _inline_sys_result = INTERNAL_SYSCALL (name, , nr, args); \
                                        ^
libc/sysdeps/linux/common/sync_file_range.c:32:9: note: in expansion of macro 'INLINE_SYSCALL'
  return INLINE_SYSCALL(sync_file_range, 7, fd, 0,
         ^
In file included from ./libpthread/nptl/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h:18:0,
                 from ./include/cancel.h:58,
                 from libc/sysdeps/linux/common/sync_file_range.c:15:
./libc/sysdeps/linux/arm/sysdep.h:280:21: note: previous definition of '_v3' was here
       register int *_v3 __asm__ ("v3") = _sys_buf;  \
...

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibrt: Add missing __dso_handle
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
librt: Add missing __dso_handle

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibrt: Refine LIBS
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
librt: Refine LIBS

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibrt: honour HAS_STUBS in buildsys
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
librt: honour HAS_STUBS in buildsys

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoinclude/: ignore sys/random.h symlink
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
include/: ignore sys/random.h symlink

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibrt: Rephrase librt.so library dependencies
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
librt: Rephrase librt.so library dependencies

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibrt: Fix librt.so depends for !NPTL
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
librt: Fix librt.so depends for !NPTL

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoprelink: handle _begin in a gold-agnostic way
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
prelink: handle _begin in a gold-agnostic way

The nostartfiles is redundant but better be safe

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: pass -O to ld unless DODEBUG
Bernhard Reutner-Fischer [Tue, 14 Apr 2015 21:58:41 +0000 (23:58 +0200)]
buildsys: pass -O to ld unless DODEBUG

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agofix compile error when LDSO_RUNPATH_OF_EXECUTABLE is set
Waldemar Brodkorb [Mon, 13 Apr 2015 05:34:36 +0000 (07:34 +0200)]
fix compile error when LDSO_RUNPATH_OF_EXECUTABLE is set

9 years agoremove more of the link_warnings
Waldemar Brodkorb [Sun, 12 Apr 2015 16:40:58 +0000 (18:40 +0200)]
remove more of the link_warnings

Only the stub warnings left for now.

9 years agoremove link warnings
Waldemar Brodkorb [Sun, 12 Apr 2015 16:32:11 +0000 (18:32 +0200)]
remove link warnings

As recently discussed on the pgsql mailinglist, this
warnings are more or less useless and some configure scripts
are failing when these warnings are enabled.

http://www.postgresql.org/message-id/20150320132351.GS3636@alvh.no-ip.org

9 years agoremove regex old and fnmatch old
Waldemar Brodkorb [Thu, 2 Apr 2015 20:22:12 +0000 (15:22 -0500)]
remove regex old and fnmatch old

9 years agofor xtensa this is still required to avoid build breakage
Waldemar Brodkorb [Thu, 2 Apr 2015 20:20:39 +0000 (15:20 -0500)]
for xtensa this is still required to avoid build breakage

9 years agolibc: Fix page-size in getifaddrs()
Bernhard Reutner-Fischer [Tue, 31 Mar 2015 20:44:25 +0000 (22:44 +0200)]
libc: Fix page-size in getifaddrs()

TODO: this could need a cleanup..

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: Do not build crt upon pregen
Bernhard Reutner-Fischer [Tue, 31 Mar 2015 20:44:22 +0000 (22:44 +0200)]
buildsys: Do not build crt upon pregen

No need to build crt when just generating headers

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: tweak ucontext_i.h prerequisites
Bernhard Reutner-Fischer [Tue, 31 Mar 2015 20:44:19 +0000 (22:44 +0200)]
buildsys: tweak ucontext_i.h prerequisites

ucontext_i.h too depends on uClibc_config.h.
Update it to look like the other MANGLE generated files and tweak
prereqs

Fixes: make realclean ; make -j libc/misc/internals/__uClibc_main.i

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: Fix setting LIBGCC
Bernhard Reutner-Fischer [Tue, 31 Mar 2015 20:44:12 +0000 (22:44 +0200)]
buildsys: Fix setting LIBGCC

We were ending up with multiple entries in LIBGCC for recursive child
make instances, avoid that.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoRevert "librt: Use -nodefaultlibs instead of -nostdlib"
Bernhard Reutner-Fischer [Tue, 31 Mar 2015 20:43:52 +0000 (22:43 +0200)]
Revert "librt: Use -nodefaultlibs instead of -nostdlib"

This reverts commit 534f44d53146457b3ca686c47efb9207543b88e1.

I don't think this is wanted.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agowe need -fPIC for the new test for m68k binutils problem
Waldemar Brodkorb [Tue, 31 Mar 2015 18:56:17 +0000 (13:56 -0500)]
we need -fPIC for the new test for m68k binutils problem

9 years agoremove sh64 support
Waldemar Brodkorb [Mon, 30 Mar 2015 08:48:56 +0000 (03:48 -0500)]
remove sh64 support

No real hardware available. The project for sh64 with sh5 seems
dead since 10 years.

9 years agoRevert "gcc 4.9.x produces some calls to abort()"
Waldemar Brodkorb [Sun, 29 Mar 2015 21:22:30 +0000 (16:22 -0500)]
Revert "gcc 4.9.x produces some calls to abort()"

This reverts commit 8d73c06c7a78745a50dc8683fd117aeacd71a04b.

Fixed in a better way by Bernhard in uClibc.

9 years agogcc 4.4 does not have __builtin_unreachable
Waldemar Brodkorb [Sun, 29 Mar 2015 21:20:54 +0000 (16:20 -0500)]
gcc 4.4 does not have __builtin_unreachable

For avr32 we still use gcc 4.4 compiler, so exlude the usage
of __builtin_unreachable here.

9 years agodisable new tests, atomic.h is missing
Waldemar Brodkorb [Sun, 29 Mar 2015 09:43:37 +0000 (04:43 -0500)]
disable new tests, atomic.h is missing

9 years agomerge uClibc master
Waldemar Brodkorb [Sun, 29 Mar 2015 09:42:22 +0000 (04:42 -0500)]
merge uClibc master

9 years agoARC: don't hard-code ELF_NGREG
Alexey Brodkin [Thu, 26 Mar 2015 08:55:37 +0000 (14:25 +0530)]
ARC: don't hard-code ELF_NGREG

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
[updated changelog]

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC/signal: shield sa_restorer from compiler toggle side-effects
Vineet Gupta [Thu, 26 Mar 2015 12:37:04 +0000 (18:07 +0530)]
ARC/signal: shield sa_restorer from compiler toggle side-effects

when building uClibc with -O0 (DODEBUG build) the default sigrestorer
had some extra glue code generated for stack manipulation which was
messing up resume from signal path.

So annotate the function with -Os so that gcc would only generate the
bare min 2 instruction TRAP sequence

Reported-and-Debugged-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC: switch to NPTL
Vineet Gupta [Thu, 26 Mar 2015 08:55:35 +0000 (14:25 +0530)]
ARC: switch to NPTL

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoAdd support for R_ARC_NONE relocations.
Andrew Burgess [Thu, 26 Mar 2015 08:55:34 +0000 (14:25 +0530)]
Add support for R_ARC_NONE relocations.

The R_ARC_NONE relocation is generated when --gc-sections, used by the
compile time linker, removes some sections.  This is completely normal,
and we can see that all other targets (based on random sampling) have
support for R_*_NONE relocations (named for each target).

Handling R_ARC_NONE involves doing nothing with it, which is nice and
easy.

Signed-off-by: Andrew Burgess <andrew.burgess@embecosm.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoinclude: update atomic.h from glibc
Bernhard Reutner-Fischer [Thu, 26 Mar 2015 22:12:38 +0000 (23:12 +0100)]
include: update atomic.h from glibc

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agotest: Add SIMULATOR_uclibc and SIMULATOR_glibc
Bernhard Reutner-Fischer [Thu, 26 Mar 2015 21:51:16 +0000 (22:51 +0100)]
test: Add SIMULATOR_uclibc and SIMULATOR_glibc

where SIMULATOR_glibc is an optional simulator to run host binaries and
SIMULATOR_uclibc is an optional simulator to run target (uClibc)
binaries.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoutmp: always have at least utmpx
Bernhard Reutner-Fischer [Wed, 25 Mar 2015 23:50:17 +0000 (00:50 +0100)]
utmp: always have at least utmpx

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoNPTL: SH: silence warning
Bernhard Reutner-Fischer [Wed, 25 Mar 2015 23:03:09 +0000 (00:03 +0100)]
NPTL: SH: silence warning

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoSH: add 't' to syscall clobber list
Bernhard Reutner-Fischer [Wed, 25 Mar 2015 23:03:05 +0000 (00:03 +0100)]
SH: add 't' to syscall clobber list

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoldso: mark _dl_exit as noreturn
Bernhard Reutner-Fischer [Wed, 25 Mar 2015 23:02:58 +0000 (00:02 +0100)]
ldso: mark _dl_exit as noreturn

Otherwise gcc might not understand that oom() ended control-flow and
might emit an (untaken) reference to abort() in _dl_update_slotinfo()
on e.g. SH4 which breaks linking ld-uClibc.so.
Arguably -ffreestanding should prevent GCC from emitting this
'.global abort' but alas, it does not, which is another bug..

Also mark the function cold to further lower the incoming frequency and
branch probability.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agotest: tweaks
Bernhard Reutner-Fischer [Wed, 25 Mar 2015 22:59:52 +0000 (23:59 +0100)]
test: tweaks

Fix arc4random exclusion for real.
Silence warning about missing prototype for external helper-function in
tst-scandir

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoinclude: Expand malloc-family comments
Bernhard Reutner-Fischer [Wed, 25 Mar 2015 22:59:49 +0000 (23:59 +0100)]
include: Expand malloc-family comments

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoutmp: favour POSIX utmpx over SVID utmp
Bernhard Reutner-Fischer [Wed, 25 Mar 2015 22:59:45 +0000 (23:59 +0100)]
utmp: favour POSIX utmpx over SVID utmp

Note: _PATH_UTMPX == _PATH_UTMP and the utmp struct is identical to the
utmpx struct so this only changes the external API entrypoints and NOT
the underlying data source.

This saves about 500b (~1300b from previously ~1950) while at it.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoutmp: Remove unneeded alias
Bernhard Reutner-Fischer [Wed, 25 Mar 2015 22:59:37 +0000 (23:59 +0100)]
utmp: Remove unneeded alias

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agomips: switch float_t to float
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:49 +0000 (00:11 +0100)]
mips: switch float_t to float

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibm: honor NO_LONG_DOUBLE in ldouble_wrappers
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:47 +0000 (00:11 +0100)]
libm: honor NO_LONG_DOUBLE in ldouble_wrappers

Fixes SH build breakage due to attempts to define hidden defs for
unavailable long double functions.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibcrypt: Rename some internal macros
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:44 +0000 (00:11 +0100)]
libcrypt: Rename some internal macros

to avoid clashes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: fix IS_IN_lib* for .s
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:41 +0000 (00:11 +0100)]
buildsys: fix IS_IN_lib* for .s

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoutmp: indent
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:38 +0000 (00:11 +0100)]
utmp: indent

indent only, no code changes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoutmp: Remove unneeded aliases
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:28 +0000 (00:11 +0100)]
utmp: Remove unneeded aliases

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoutmp: add _unlocked suffix to internal helpers
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:24 +0000 (00:11 +0100)]
utmp: add _unlocked suffix to internal helpers

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: HAS_UTMP (XPG2, SVr4 compat) knob
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:21 +0000 (00:11 +0100)]
buildsys: HAS_UTMP (XPG2, SVr4 compat) knob

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibc: TIME64_COMPAT32 for sparc, mips
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:11:15 +0000 (00:11 +0100)]
libc: TIME64_COMPAT32 for sparc, mips

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoRevert "utent.c, wtent.c: move functions from utxent.c"
Bernhard Reutner-Fischer [Mon, 23 Mar 2015 23:09:45 +0000 (00:09 +0100)]
Revert "utent.c, wtent.c: move functions from utxent.c"

This reverts commit 84135275cfeebc0b233c1c96eeada4d4178a0b18.

This change is said to make systemd deadlock (cannot reproduce this)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Conflicts:
include/utmp.h

9 years agookay, chicken-egg-problem solved really now. (was xtensa no thread failure)
Waldemar Brodkorb [Sun, 8 Mar 2015 19:00:06 +0000 (14:00 -0500)]
okay, chicken-egg-problem solved really now. (was xtensa no thread failure)

9 years agotest: add utmpx test
Bernhard Reutner-Fischer [Sun, 22 Mar 2015 13:47:29 +0000 (14:47 +0100)]
test: add utmpx test

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibc: add getrandom(2)
Bernhard Reutner-Fischer [Sun, 22 Mar 2015 13:47:29 +0000 (14:47 +0100)]
libc: add getrandom(2)

Introduce a <sys/random.h> for it.

/* FIXME: aren't there a couple of __restrict and const missing ?
 */
extern int getrandom(void *__buf, size_t count, unsigned int flags)
    __nonnull ((1)) __wur;

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibrt: Use -nodefaultlibs instead of -nostdlib
Khem Raj [Sat, 23 Jun 2012 23:51:52 +0000 (16:51 -0700)]
librt: Use -nodefaultlibs instead of -nostdlib

nostdlib disables linking in startup files too which is not
what we want here since it needs to resolve __dso_handle
which comes from crtbeginS.o, otherwise librt has this
undefined reference to a weak undefined __dso_handle that
shows up as error (with gold linker)
when shared libraries are being built which are
linking in librt

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agonptl/atfork: Hide pthread_atfork in shared versions
Khem Raj [Sat, 23 Jun 2012 22:59:01 +0000 (15:59 -0700)]
nptl/atfork: Hide pthread_atfork in shared versions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibc: Fix vfprintf compilation without HAS_FLOATS
Bernhard Reutner-Fischer [Sun, 22 Mar 2015 13:47:29 +0000 (14:47 +0100)]
libc: Fix vfprintf compilation without HAS_FLOATS

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agonptl/arm: Move aeabi_read_tp to uclibc_nonshared.a
Khem Raj [Sat, 23 Jun 2012 21:21:17 +0000 (14:21 -0700)]
nptl/arm: Move aeabi_read_tp to uclibc_nonshared.a

Otherwise it creates wrong references from shared libs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoatexit_old: Do not add it to shared libc
Khem Raj [Sat, 23 Jun 2012 20:26:30 +0000 (13:26 -0700)]
atexit_old: Do not add it to shared libc

atexit should only be in either uclibc_nonshared.a
shared libc case or libc.a in static build case

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agotest: enable libm test log2
Bernhard Reutner-Fischer [Sun, 22 Mar 2015 13:47:29 +0000 (14:47 +0100)]
test: enable libm test log2

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoextra: add clang flags for gen_bits_syscall_h
Bernhard Reutner-Fischer [Sun, 22 Mar 2015 13:47:29 +0000 (14:47 +0100)]
extra: add clang flags for gen_bits_syscall_h

Closes bugzilla #6008

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>