OSDN Git Service
Denys Vlasenko [Tue, 3 May 2011 15:28:19 +0000 (17:28 +0200)]
getaddrinfo.c: improve code readability. No functional changes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Bernhard Reutner-Fischer [Tue, 3 May 2011 14:40:31 +0000 (16:40 +0200)]
string: remove unused variable
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Tue, 3 May 2011 14:36:15 +0000 (16:36 +0200)]
x86_64: silence warning if !TLS
TODO: fix all other arches
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Tue, 3 May 2011 14:24:08 +0000 (16:24 +0200)]
buildsys: prettify ssp.c handling
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Tue, 3 May 2011 14:15:30 +0000 (16:15 +0200)]
madvise is LINUX_SPECIFIC
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Filippo Arcidiacono [Tue, 3 May 2011 07:32:53 +0000 (09:32 +0200)]
test_nptl: fix expected result for tst-cputimer[123]
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Filippo Arcidiacono [Mon, 2 May 2011 10:59:18 +0000 (12:59 +0200)]
test_nptl: fix expected result for tst-clock2 test
tst-clock2 should return 0 when _SC_THREAD_CPUTIME option isn't
available, instead of treating it as an error.
Further set the expected ret value as 0 avoiding to hide any real failures
in case of THREAD_CPUTIME feature available.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Mon, 2 May 2011 08:15:41 +0000 (10:15 +0200)]
buildsys: make $(LOCAL_INSTALL_PATH) phony
Could depend on the individual files too but this makes sure that
nothing is missed.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Mon, 2 May 2011 08:10:47 +0000 (10:10 +0200)]
ether_aton: reject invalid input
fixes PR2227
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Sun, 1 May 2011 16:00:04 +0000 (18:00 +0200)]
tests: disable ether tests if !HAS_SOCKET
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
David A Ramos [Sun, 1 May 2011 15:28:31 +0000 (17:28 +0200)]
inet: add ether_aton testcase
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Fri, 29 Apr 2011 12:14:27 +0000 (14:14 +0200)]
sysconf: clock_getres depends on HAS_REALTIME
Bug was introduced in revision
a202cf6f.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Fri, 29 Apr 2011 12:05:54 +0000 (14:05 +0200)]
__rt_sigwaitinfo: depends on HAS_REALTIME
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Carmelo Amoroso [Wed, 27 Apr 2011 07:29:44 +0000 (09:29 +0200)]
buildsys: minor fixes in Makefile.arch for C6X
Just a tidy-up by removing commented-out lines.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Wed, 27 Apr 2011 07:20:48 +0000 (09:20 +0200)]
buildsys: minor fixes in Makefile.arch for microblaze
Do not include Makefile.commonarch directly from within arch specific
Makefile, as it is already done in parent Maefile.in.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Tue, 26 Apr 2011 11:54:13 +0000 (13:54 +0200)]
libubacktrace: enabled for all archs indeed.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Austin Foxley [Fri, 22 Apr 2011 23:21:30 +0000 (16:21 -0700)]
sparc: don't access fp registers when configured for no fpu
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Carmelo Amoroso [Fri, 22 Apr 2011 10:55:43 +0000 (12:55 +0200)]
libubacktrace: generic implementation based dwarf
Use the initial implementation for SH4 based on dwarf for all archs.
Indeed there are not obvious reason for which it should not work in general.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Salvatore Cro [Wed, 20 Apr 2011 10:49:25 +0000 (12:49 +0200)]
Added fts support for traversing UNIX file hierarchies.
It is required by libdwfl in elfutils package.
Signed-off-by: Salvatore Cro <salvatore.cro at st.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Salvatore Cro [Fri, 8 Apr 2011 15:56:22 +0000 (17:56 +0200)]
test: fix tst-tls13 expected result and timeout
tst-tls13 is expected to return 0 when passing.
Set higher timeout to avoid failure on slow archs.
Signed-off-by: Salvatore Cro <salvatore.cro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Kevin Cernekee [Sat, 16 Apr 2011 17:02:00 +0000 (10:02 -0700)]
dl-startup: fix typos in block comment
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Maksim Rayskiy [Fri, 15 Apr 2011 17:25:40 +0000 (10:25 -0700)]
MIPS LDSO: pass sym_ref parameter to _dl_find_hash() to support PROTECTED symbols
_dl_find_hash() relies on sym_ref parameter to check if the looked-up symbol
is protected. The code fixes a case when _dl_perform_mips_global_got_relocations()
was calling _dl_find_hash() without providing sym_ref parameter.
The bug was causing hangs if a library exporting non-protected symbol was earlier in
link order than library with the same symbol declared as protected.
Signed-off-by: Maksim Rayskiy <mrayskiy@broadcom.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Thu, 14 Apr 2011 07:59:26 +0000 (09:59 +0200)]
buildsys: do_rm ARCH_HEADERS
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Wed, 13 Apr 2011 17:38:40 +0000 (19:38 +0200)]
resolv: really fix res_close not to hang with ipv6
Fix goof in previous commit.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Wed, 13 Apr 2011 08:26:38 +0000 (10:26 +0200)]
buildsys: do not use $(and)
make-3.80 does not have $(and) and $(or), so workaround for now.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Kevin Cernekee [Sun, 10 Apr 2011 02:55:07 +0000 (19:55 -0700)]
buildsys: fix GNU make v3.80 compatibility again
GNU make 3.80 cannot handle "$(and)" or "$(or)" from commit
18e7136e
(buildsys: use kbuild style). Replace them with ifeq/ifneq.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Tue, 12 Apr 2011 07:39:20 +0000 (09:39 +0200)]
resolv: fix res_close not to hang with ipv6
Timo Teräs writes:
The memory release loop is missing an obvious counter increment.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernd Schmidt [Mon, 11 Apr 2011 11:21:23 +0000 (13:21 +0200)]
Support dynamic assignment of DSBT_INDEX
For DSBT targets (C6X only at this point), we'd like to support the case
where the user did not specify --dsbt-index at link time when building a
shared library. The dynamic linker can still assign an index at runtime
and fix up the DSBT_INDEX relocs, at the cost of startup time and memory
space.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Bernd Schmidt [Mon, 11 Apr 2011 11:19:05 +0000 (13:19 +0200)]
Fix malloc alignment
In commit
3e0a1f388, Richard tried to fix malloc alignments by using
alignof (double __attribute_aligned__(sizeof (size_t))).
This doesn't work, since attribute_aligned overrides the alignment
rather than providing a minimum. On C6X, malloc returns four-byte
aligned values rather than the necessary eight-byte alignment.
It's simpler to use a comparison and pick the bigger of the two values,
so that's what I've done.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Bernd Schmidt [Mon, 11 Apr 2011 11:13:18 +0000 (13:13 +0200)]
Fix nommu handling of DT_TEXTREL
We have a problem with DT_TEXTREL shared libraries on nommu machines.
The dynamic linker's strategy is to map the text segment read-only
first, then look for DT_TEXTREL, and use mprotect to change protections
if necessary. This fails on nommu, since a nommu kernel can decide to
share the memory for private read-only file mappings, and mprotect
doesn't (can't) do anything about this sharing. Existing nommu targets
apparently have no need for this, but on C6X, we may need to assign
library indices at run-time if no --dsbt-index option was passed to the
linker at build time.
Hence, the following patch, which instead of using mprotect, redoes the
mapping with PF_W set.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Carmelo Amoroso [Wed, 6 Apr 2011 13:13:59 +0000 (15:13 +0200)]
Merge remote-tracking branch 'origin/master' into prelink
* origin/master: (137 commits)
utils/ldd: Check for returned pointer from strrchr not the value it holds
cris: add provide arch-specific vfork implementation
lutimes.c, stubs.c: fix compiling lutimes, if __NR_utimensat is not defined
bump version to 0.9.32-rc3-git
release 0.9.32-rc3
memalign: include sys/param.h for MAX
arm/bits/atomic.h: Include common/bit/atomic.h for thumb1
wctype.h: fix libc_hidden_proto for iswupper and add it for iswspace
add libc_hidden_proto for wcs[n]casecmp_l
really fix missing __libc_drand48_data
Revert "missing prototype of __libc_drand48_data fixed"
missing prototype of __libc_drand48_data fixed
time.c, time.h: remove unused hidden strftime/strptime
nanosleep.c: remove duplicated libc_hidden_proto
ctype.c, ctype.h: remove commented parts that were banned for removal after 0.9.31
_wctype.c, wctype.h: remove unused isw* and wctype_l hidden functions
time.c, wchar.h: remove unused hidden wcsftime
str[n]casecmp.c: fix hidden usage
remove unused hidden functions
frv/memset.S: add missing libc_hidden_def
...
Conflicts:
ldso/ldso/ldso.c
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Kevin Day [Wed, 30 Mar 2011 11:51:22 +0000 (04:51 -0700)]
utils/ldd: Check for returned pointer from strrchr not the value it holds
Signed-off-by: Kevin Day <thekevinday@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Thorsten Glaser [Sat, 26 Mar 2011 15:11:51 +0000 (15:11 +0000)]
cris: add provide arch-specific vfork implementation
vfork must be called with nothing at all on the stack,
so implementing it via syscall() does not work.
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Peter S. Mazinger [Fri, 18 Mar 2011 14:37:35 +0000 (15:37 +0100)]
lutimes.c, stubs.c: fix compiling lutimes, if __NR_utimensat is not defined
while there, provide stubs for functions depending on utimensat syscall.
Reported-by: Sedat Dilek <sedat.dilek@googlemail.com>
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Bernhard Reutner-Fischer [Wed, 16 Mar 2011 19:20:32 +0000 (20:20 +0100)]
bump version to 0.9.32-rc3-git
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Wed, 16 Mar 2011 19:11:13 +0000 (20:11 +0100)]
release 0.9.32-rc3
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Wed, 16 Mar 2011 19:09:43 +0000 (20:09 +0100)]
memalign: include sys/param.h for MAX
libc/stdlib/malloc/memalign.c:22:1: warning: "MAX" redefined In file included from
./libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:25,
from ./include/bits/libc-lock.h:36,
from ./include/bits/stdio-lock.h:23,
from ./include/bits/uClibc_mutex.h:71,
from libc/stdlib/malloc/malloc.h:135,
from libc/stdlib/malloc/memalign.c:18:
./include/sys/param.h:75:1: warning: this is the location of the previous definition
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Khem Raj [Tue, 15 Mar 2011 05:45:33 +0000 (22:45 -0700)]
arm/bits/atomic.h: Include common/bit/atomic.h for thumb1
This restores the behavior for thumb1 builds and yet uses
the new atomic.h for arm and thumb2 modes.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Peter S. Mazinger [Thu, 10 Mar 2011 12:15:10 +0000 (13:15 +0100)]
wctype.h: fix libc_hidden_proto for iswupper and add it for iswspace
Old typo, became visible due to other changes.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Thu, 10 Mar 2011 12:13:26 +0000 (13:13 +0100)]
add libc_hidden_proto for wcs[n]casecmp_l
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Thu, 10 Mar 2011 12:02:19 +0000 (13:02 +0100)]
really fix missing __libc_drand48_data
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Thu, 10 Mar 2011 11:59:15 +0000 (12:59 +0100)]
Revert "missing prototype of __libc_drand48_data fixed"
This reverts commit
e2cea9b9edabe885b9bf2586f9541ffb8fe93f3f.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Thu, 10 Mar 2011 10:43:07 +0000 (11:43 +0100)]
missing prototype of __libc_drand48_data fixed
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Thu, 10 Mar 2011 10:34:38 +0000 (11:34 +0100)]
time.c, time.h: remove unused hidden strftime/strptime
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Thu, 10 Mar 2011 10:33:51 +0000 (11:33 +0100)]
nanosleep.c: remove duplicated libc_hidden_proto
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Thu, 10 Mar 2011 10:06:25 +0000 (11:06 +0100)]
ctype.c, ctype.h: remove commented parts that were banned for removal after 0.9.31
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Thu, 10 Mar 2011 09:50:01 +0000 (10:50 +0100)]
_wctype.c, wctype.h: remove unused isw* and wctype_l hidden functions
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 23:49:01 +0000 (00:49 +0100)]
time.c, wchar.h: remove unused hidden wcsftime
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 23:01:10 +0000 (00:01 +0100)]
str[n]casecmp.c: fix hidden usage
Provide visible str[n]casecmp[_l], wcs[n]casecmp[_l].
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 22:20:16 +0000 (23:20 +0100)]
remove unused hidden functions
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 21:37:05 +0000 (22:37 +0100)]
frv/memset.S: add missing libc_hidden_def
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 20:55:39 +0000 (21:55 +0100)]
memmem.c, string.h: remove unused hidden memmem
It is used only by gen_collate, not included into libc.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 20:40:01 +0000 (21:40 +0100)]
_collate.c: remove duplicated libc_hidden_proto() for strcoll*/wcscoll*
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 20:30:53 +0000 (21:30 +0100)]
wchar.h, _collate.c, strlcpy.c: use a common prototype of __wcslcpy
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 20:11:47 +0000 (21:11 +0100)]
ctype.c, _collate.c, str[n]casecmp.c, strlcpy.c: remove unused hidden functions
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 19:19:49 +0000 (20:19 +0100)]
stdlib.c, _strtod.c, stdlib.h: remove unused hidden functions
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Bernd Schmidt [Wed, 9 Mar 2011 15:06:59 +0000 (16:06 +0100)]
Select ARCH_HAS_NO_MMU for C6X.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Bernd Schmidt [Wed, 9 Mar 2011 15:05:33 +0000 (16:05 +0100)]
Add a missing macro to C6X syscalls.h.
We need _syscall_noerr0 to fix compilation of getuid.c.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Mark Salter [Sun, 6 Mar 2011 22:44:00 +0000 (17:44 -0500)]
cleanup hardcoded syscall numbers
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Mark Salter [Sun, 6 Mar 2011 00:46:48 +0000 (19:46 -0500)]
support c6x kernel using generic stat.h
Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Mark Salter [Sun, 6 Mar 2011 03:03:21 +0000 (22:03 -0500)]
support generic kernel posix_types.h
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Mark Salter [Sat, 5 Mar 2011 16:17:54 +0000 (11:17 -0500)]
use clone syscall for vfork
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Mark Salter [Sat, 5 Mar 2011 16:13:16 +0000 (11:13 -0500)]
remove unused vfork.c
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Mark Salter [Thu, 9 Sep 2010 18:40:03 +0000 (14:40 -0400)]
sunrpc: fix spurious fall-through
Fix spurious fall-through.
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Bernd Schmidt [Wed, 9 Mar 2011 14:14:37 +0000 (15:14 +0100)]
Add C6X-specific sys/ptrace.h
The debugger needs some C6X-specific ptrace operations to get information
about the DSBT binaries; similar to what's done on FD-PIC targets.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Peter S. Mazinger [Wed, 9 Mar 2011 14:19:10 +0000 (15:19 +0100)]
arc4random.c, stdlib.h: get rid of hidden arc4random_stir
The function is used only in one file, make an internal static version for this
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 14:14:48 +0000 (15:14 +0100)]
regcomp.c, aeabi_mb_cur_max.c: use unconditionally MB_CUR_MAX from stdlib.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 14:06:17 +0000 (15:06 +0100)]
fnmatch.c: use MB_CUR_MAX from stdlib.h included earlier
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 14:05:00 +0000 (15:05 +0100)]
stdlib.h: move MB_CUR_MAX = 1 from wchar-stub.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 13:48:45 +0000 (14:48 +0100)]
move prototype for __drand48_iterate and __libc_drand48_data to stdlib.h
Move them to a common header guarded by _LIBC
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 13:45:04 +0000 (14:45 +0100)]
stdlib.c: remove duplicate libc_hidden_proto for strtoul/strtoul_l
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 13:18:15 +0000 (14:18 +0100)]
_strtod.c: only strtod hidden version is needed
Do not provide hidden strtod_l, wcstod and wcstod_l
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 12:36:36 +0000 (13:36 +0100)]
disable _POSIX2_LOCALEDEF
uClibc does not provide the localedef utility
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 12:32:30 +0000 (13:32 +0100)]
remove trailing ';' from _syscallX()
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 12:10:41 +0000 (13:10 +0100)]
bits/statvfs.h: update, adding ST_RELATIME
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 12:07:05 +0000 (13:07 +0100)]
add bits/atomic.h for hppa
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 11:35:27 +0000 (12:35 +0100)]
bits/statvfs.h: the common one is good for alpha and sparc
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 11:31:15 +0000 (12:31 +0100)]
bits/kernel_stat.h: no need for _LIBC guard, the file is not installed on target
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 11:20:28 +0000 (12:20 +0100)]
bits/kernel_stat.h: use the same guard on all archs
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 08:54:15 +0000 (09:54 +0100)]
types.h: remove __ipc_pid_t
Remove __ipc_pid_t, not needed internally,
we do not support pre glibc-2.2 version of shmid_ds structure.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Wed, 9 Mar 2011 08:23:48 +0000 (09:23 +0100)]
guard *_chk() related stuff with UCLIBC_HAS_FORTIFY
Guard x86_64 memset_chk/memcpy_chk be guarded by UCLIBC_HAS_FORTIFY.
Compile ssp.c if one of SSP/FORTIFY is defined.
Guard __chk_fail() with UCLIBC_HAS_FORTIFY and move its prototype to libc-internal.h.
Disable _FORTIFY_SOURCE if UCLIBC_HAS_FORTIFY is not set.
The config option itself is omitted on purpose,
headers need to be reviewed and generic *_chk() functions need to be first provided.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Tobias Klauser [Tue, 8 Mar 2011 08:34:25 +0000 (09:34 +0100)]
nios2: Correct guard #defines in bits/kernel_types.h
The guards in posix_types.h are called _ASM_NIOS2_POSIX_TYPES_H, so
correctly use them here. Otherwise we wont be able to build uClibc
with headers exported from the current nios2 kernel.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
William Pitcock [Tue, 8 Mar 2011 08:12:11 +0000 (02:12 -0600)]
nptl: fix compilation on x86_64
This commit gives us a fully functioning NPTL on x86-64 by using the GOTOFF macro
as needed.
Signed-off-by: William Pitcock <nenolod@dereferenced.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Peter S. Mazinger [Tue, 8 Mar 2011 16:23:30 +0000 (17:23 +0100)]
shm.h: fix vax's bits/shm.h
Do not use __ipc_pid_t, since that is not visible after install.
Provide and use shmatt_t.
Add missing __END_DECLS.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Tue, 8 Mar 2011 14:50:01 +0000 (15:50 +0100)]
Makefile.in: remove uClibc_fpmax.h independently of any config option
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Tue, 8 Mar 2011 13:01:04 +0000 (14:01 +0100)]
resolv.h: disable unneeded prototypes
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Tue, 8 Mar 2011 13:00:06 +0000 (14:00 +0100)]
Makefile.in: remove uClibc_uwchar.h and uClibc_va_copy.h on install
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Tue, 8 Mar 2011 11:56:13 +0000 (12:56 +0100)]
Makerules: respect HARDWIRED_ABSPATH in interp.c
Build LDSO path according to the HARDWIRED_ABSPATH setting
While there, remove duplicated slashes in interp.c
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Tue, 8 Mar 2011 11:49:10 +0000 (12:49 +0100)]
try to fix duplicated slashes in the generated lib*.so files (round 2)
sed s://:/:g on libc.so/libpthread.so if HARDWIRED_ABSPATH is defined
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Carmelo Amoroso [Tue, 8 Mar 2011 10:39:48 +0000 (11:39 +0100)]
Revert "buildsys: prefer the form HEADERS_RM-$(<config>)"
This reverts commit
07044019e6260991729926645e7d221f38376f9d.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Mon, 7 Mar 2011 17:31:19 +0000 (18:31 +0100)]
buildsys: prefer the form HEADERS_RM-$(<config>)
Fix removal of sgtty.h using HEADERS_RM-$(<config>) syntax.
Sort it alphabetically.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Thu, 3 Mar 2011 08:22:15 +0000 (09:22 +0100)]
ldso: use ADDR_ALIGN instead of hard-coded value
Use ADDR_ALIGN to align the minvma when loading shared libraries instead
of the hard coded 0xffffU value.
This fixes teh stand/alone support on ARM as reported in bug #3133.
Signed-off-by: Sven Ola <sven-ola@gmx.de>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
(cherry picked from commit
435471db8561e4686e5921b7f719ab6d5a0d06f7)
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Peter S. Mazinger [Mon, 7 Mar 2011 16:39:14 +0000 (17:39 +0100)]
locale.c: export newlocale only if XLOCALE is defined
newlocale is used by setlocale, so we need the hidden version
even if XLOCALE is not defined
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Mon, 7 Mar 2011 16:28:57 +0000 (17:28 +0100)]
locale.c, locale.h: no need for hidden duplocale
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Sun, 6 Mar 2011 16:08:38 +0000 (17:08 +0100)]
simplify ffs* code
Remove __libc_ffs*, unneeded
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Sun, 6 Mar 2011 16:02:56 +0000 (17:02 +0100)]
remove unused ARCH_CFLAGS and ARCH_LDFLAGS
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger [Sun, 6 Mar 2011 14:40:09 +0000 (15:40 +0100)]
Revert "try to fix duplicated slashes in the generated lib*.so files"
This reverts commit
624be66cb9b350d5c6538fca8592cdb3a4c23d37.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Bernd Schmidt [Tue, 22 Feb 2011 23:14:42 +0000 (00:14 +0100)]
Implement ffsl and ffsll.
This imports and adapts ffsll.c from glibc. The same mechanism as in glibc
is used to choose between ffs and ffsll to implement ffsl. The single user
in libc is changed to use the hidden version __libc_ffs.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Acked-by: Bernhard Reutner-Fischer <aldot@uclibc.org>
Mark Salter [Wed, 2 Mar 2011 20:12:48 +0000 (21:12 +0100)]
Add sanity checks to ld.so DSBT support
This adds some DSBT index sanity checks to the runtime linker. It
catches libraries which have no index (index 0) and libraries which
try to use an already used index.
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Aurelien Jacquiot [Wed, 23 Feb 2011 12:04:59 +0000 (13:04 +0100)]
The C6X port
This adds support for the TI C6X family of processors.
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>