Chris Metcalf [Fri, 11 May 2012 18:42:46 +0000 (14:42 -0400)]
tile: update pthread_attr_t and struct siginfo names
This adds a tag to the pthread_attr_t underlying type so we can
forward-declare it, and removes the siginfo_t type, to match
changes in the main tree.
Chris Metcalf [Fri, 11 May 2012 18:27:57 +0000 (14:27 -0400)]
tile: Remove elf/ and create crti.S/crtn.S
This patches fixes up the tile startup files, moving elf/start.S up a
directory level and implementing the required crti.S and crtn.S files
based on the old initfini.c compiler output (hand-optimized to bum a
couple of cycles).
Chris Metcalf [Fri, 11 May 2012 18:03:30 +0000 (14:03 -0400)]
Add _SNSECONDS_T_TYPE for linux-generic
Andreas Schwab [Thu, 10 May 2012 15:38:20 +0000 (17:38 +0200)]
m68k: update libm test ULPs
Andreas Schwab [Thu, 10 May 2012 15:37:38 +0000 (17:37 +0200)]
Update Changelog.m68k
Carlos O'Donell [Tue, 8 May 2012 02:14:44 +0000 (22:14 -0400)]
ARM: Use /lib/ld-linux-armhf.so.3 for the hard-float ABI.
The hard-float ABI will now use /lib/ld-linux-armhf.so.3.
We detect the use of the hard-float ABI and select the
appropriate dynamic linker name. You must have a new or
patched compiler which also uses the new dynamic loader
name when the hard-float ABI is selected.
Joseph Myers [Tue, 8 May 2012 14:45:14 +0000 (14:45 +0000)]
Rearrange MIPS libm-test-ulps files.
Mike Frysinger [Tue, 8 May 2012 03:17:48 +0000 (23:17 -0400)]
ia64: include errno.h in sysdep.h
This header uses __set_errno(), so make sure we include errno.h for it.
Otherwise, if INLINE_SYSCALL() is used and errno.h isn't included, we
hit warnings like so:
In file included from libc-start.c:36:0:
../sysdeps/unix/sysv/linux/dl-osinfo.h: In function '_dl_setup_stack_chk_guard':
../sysdeps/unix/sysv/linux/dl-osinfo.h:79:7: warning: implicit declaration of function '__set_errno'
Which culminate in errors like so:
libc-start.c:(.text+0x692): undefined reference to '__set_errno'
libc-start.c:(.text+0x752): undefined reference to '__set_errno'
collect2: ld returned 1 exit status
Reported-by: Dennis Schridde <devurandom@gmx.net>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 6 May 2012 22:24:32 +0000 (18:24 -0400)]
ia64: add matherr[fl] to libm.so plt whitelist
The ia64 math code has extra matherr functions (f and l variants),
so add them to the libm.so plt whitelist like the existing matherr
in the main code.
The check-localplt test now passes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 6 May 2012 09:39:09 +0000 (05:39 -0400)]
ia64: update abilist
For the most part, these are adding symbols from newer glibc releases that
should have been added to ia64 in the first place, but no one noticed.
There were also adding symbols from older versions, but that appears to be
an oversight in the old abilist files where the ia64 tuple wasn't added to
the symbol block.
A few symbols did get deleted, but that looks normal as no other arch has
them, and comparing to an old glibc-2.7 build, things have been this way
for quite a while.
After this, `make check-abi` now passes for ia6.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 6 May 2012 08:49:52 +0000 (04:49 -0400)]
ia64: restore abilist files
These are the abilists as ia64 had them before being removed from the
main tree. Most libs pass, but a bunch need updating. That'll be done
in a follow up commit.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Joseph Myers [Tue, 1 May 2012 15:48:54 +0000 (08:48 -0700)]
Restore MIPS n64 posix_fadvise64 export at GLIBC_2.3.3 (bug 14044).
Joseph Myers [Tue, 1 May 2012 14:22:52 +0000 (07:22 -0700)]
Restore ARM profil_counter export (bug 14043).
Andreas Schwab [Sat, 28 Apr 2012 13:09:57 +0000 (15:09 +0200)]
m68k: add abilist files
Joseph Myers [Sat, 28 Apr 2012 11:29:32 +0000 (04:29 -0700)]
Add abilist data for MIPS.
Joseph Myers [Sat, 28 Apr 2012 10:41:29 +0000 (03:41 -0700)]
Avoid endian.h include in MIPS64 string functions.
Joseph Myers [Sat, 28 Apr 2012 10:04:28 +0000 (03:04 -0700)]
Add abilist data for ARM.
Mike Frysinger [Wed, 18 Apr 2012 03:31:26 +0000 (23:31 -0400)]
ia64: math: rename s_ilogbl.S to e_ilogbl.S
The main tree renamed these files as well as the symbols.
Update ia64 accordingly.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:55:11 +0000 (22:55 -0400)]
ia64: define __ASSUME_ACCEPT4
The latest kernels finally added accept4() to the ia64 kernel.
Define __ASSUME_ACCEPT4 accordingly.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:51:44 +0000 (22:51 -0400)]
ia64: add new GET_ADDR_PARAM define
The main tree updated the dl-tls code to use a new GET_ADDR_PARAM macro.
We need to define that to fix a build error due to it missing.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:47:48 +0000 (22:47 -0400)]
ia64: split 16bit funcs out of byteswap.h and into byteswap-16.h
The main tree split the 16bit byteswap funcs out into a dedicated header.
Do the same for ia64.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:45:14 +0000 (22:45 -0400)]
ia64: ucontext.h: drop __cplusplus
Building a lot of glibc files trigger warnings like so:
.../ucontext.h:52:25: warning: variably modified '_pad' at file scope
The ia64 header protects the use of __builtin_offsetof by a C++
compiler, but this builtin works just fine with C compilers, so
allow it to be used there too.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:44:55 +0000 (22:44 -0400)]
ia64: pthread_attr_t type mangling
This applies the same updates that already exist in the main tree for
making the pthread_attr_t union more standards compliant.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:44:23 +0000 (22:44 -0400)]
ia64: add MAP_{STACK,HUGETLB} to bits/mman.h
Just adding new bit flags that newer kernels define.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:43:09 +0000 (22:43 -0400)]
ia64: math: add __scalbn* aliases
All other ports have __scalbn* aliases pointing back to scalbn*, but
the ia64 code had omitted them. This didn't really matter as none
of the common code called them, but after a recent update, that's no
longer true. Add the aliases needed by some common code to fix link
errors with libm due to them missing.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:39:07 +0000 (22:39 -0400)]
ia64: drop __STDC__ handlings
The main tree dropped support for !__STDC__ code, so drop it from the
few places in the ia64 code too.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:36:02 +0000 (22:36 -0400)]
ia64: math: stub out new e_rem_pio2l func
The ia64 math code stubs out the existing [er]_rem_*.c files, but the
main tree has added a new one since its removal. Stub out that new
file too.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:21:32 +0000 (22:21 -0400)]
ia64: convert __const to const
The main tree decided to drop support for pre-ISO C code, so we
can use "const" instead of "__const".
Processed with a simple sed script:
find `find sysdeps/ -name ia64` -type f -exec sed -i \
's:\<__const\>:const:' {} +
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:19:02 +0000 (22:19 -0400)]
ia64: convert "math{,_private}.h" to <math{,_private}.h>
The main tree decided to change all these includes to <...>, so update
the ia64 code accordingly.
Processed with a simple sed script:
find `find sysdeps/ -name ia64` -type f -exec sed -i \
-r '/include/s:"(math.h|math_private.h)":<\1>:' {} +
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:16:47 +0000 (22:16 -0400)]
ia64: convert <stdio-common/_itoa.h> to <_itoa.h>
The main tree relocated the _itoa.h header, so update our include
paths to match.
Processed with a simple sed script:
find `find sysdeps/ -name ia64` -type f -exec sed -i \
'/<stdio-common._itoa.h>/s:<stdio-common/_itoa.h>:<_itoa.h>:' {} +
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:28:03 +0000 (22:28 -0400)]
ia64: initfini.c -> crt{i,n}.S split
This was done mostly by looking at the processed crt{i,n}.S files in
glibc-2.15, and then added the required update for using in either
csu/ or nptl/.
Seems to work -- when an earlier version didn't call the initializers,
many tests (pthread related) failed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:30:43 +0000 (22:30 -0400)]
ia64: merge sysdeps/ia64/elf/ into sysdeps/ia64/
Moved the files, and then pasted the configure.in contents into the
parent file.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:52:56 +0000 (22:52 -0400)]
ia64: add split-out settings into dedicated files
Logic specific to ia64 used to live in the main tree in common files.
Now that we can't do that (with #ifdef and such), we need to add that
logic into dedicated overriding files.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:46:52 +0000 (22:46 -0400)]
ia64: update include paths
We need to update the file paths after the ia64 code was moved from
the main tree to ports/. In the case of backtrace.c, the main tree
actually copied the ia64 version to the x86_64 code, so we can go
ahead and drop the ia64 version.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Joseph Myers [Fri, 27 Apr 2012 20:52:33 +0000 (20:52 +0000)]
Increase minimum MIPS kernel version to 2.6.12.
Matt Turner [Fri, 27 Apr 2012 02:40:14 +0000 (22:40 -0400)]
alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
Matt Turner [Fri, 27 Apr 2012 02:22:59 +0000 (22:22 -0400)]
alpha: Use fopen "rce" in ioperm
Matt Turner [Fri, 27 Apr 2012 02:07:54 +0000 (22:07 -0400)]
alpha: Update bits/mman.h.
Matt Turner [Fri, 27 Apr 2012 02:07:53 +0000 (22:07 -0400)]
alpha: Remove __STDC__ conditionals.
Matt Turner [Fri, 27 Apr 2012 02:07:52 +0000 (22:07 -0400)]
alpha: Use const instead of __const.
Matt Turner [Fri, 27 Apr 2012 02:07:51 +0000 (22:07 -0400)]
alpha: Define O_PATH.
Joseph Myers [Thu, 26 Apr 2012 19:39:33 +0000 (19:39 +0000)]
Remove unused sysdeps/unix/mips files.
Joseph Myers [Thu, 26 Apr 2012 19:23:08 +0000 (19:23 +0000)]
Avoid endian.h include in MIPS string functions.
Joseph Myers [Thu, 26 Apr 2012 19:20:45 +0000 (19:20 +0000)]
Use siginfo_t instead of struct siginfo for MIPS kernel_rt_sigframe.
Joseph Myers [Thu, 26 Apr 2012 18:17:08 +0000 (18:17 +0000)]
Remove unused sysdeps/arm files.
Siddhesh Poyarekar [Thu, 26 Apr 2012 15:08:17 +0000 (17:08 +0200)]
m68k: move definition of libgcc_s soname to shlib-versions
Mike Frysinger [Tue, 17 Apr 2012 02:15:13 +0000 (22:15 -0400)]
ia64: fix license text to "Lesser" not "Library"
Looks like these two files got the wrong boiler plate text.
Convert them over to the right one.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Joseph Myers [Tue, 24 Apr 2012 23:05:20 +0000 (23:05 +0000)]
Remove unused sysdeps/unix/mips/fork.S.
Joseph Myers [Tue, 24 Apr 2012 23:04:58 +0000 (23:04 +0000)]
Remove unused sysdeps/unix/arm/fork.S.
Mike Frysinger [Tue, 17 Apr 2012 01:49:06 +0000 (21:49 -0400)]
mips: use $dir for path to ldd-rewrite.sed
The $dest variable is based on the top build dir but we need the ldd
rewrite variable to be based on the top source dir, so use $dir.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:10:24 +0000 (22:10 -0400)]
ia64: update FSF license address to URL
Processed with a simple sed script:
find `find sysdeps/ -name ia64` -type f -exec sed -i \
-e '/Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA/d' \
-e 's:License along with the GNU C Library; if not, write to the Free:License along with the GNU C Library; if not, see:' \
-e 's|02111-1307 USA.|<http://www.gnu.org/licenses/>.|' {} +
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:08:04 +0000 (22:08 -0400)]
ia64: strip trailing whitespace
Many ia64 files have trailing whitespace which gets in the way and
annoys me. So strip it away:
find `find sysdeps/ -name ia64` -type f -exec sed -i 's:[[:space:]]*$::' {} +
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 17 Apr 2012 02:02:27 +0000 (22:02 -0400)]
ia64: move from main tree
This is a simple copy of the last version of ia64 in the main tree.
It does not work as-is, but serves as a basis for follow up changes
to restore it to working order.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Joseph Myers [Sat, 21 Apr 2012 17:03:39 +0000 (10:03 -0700)]
Remove ARM EABI/old-ABI conditionals.
Joseph Myers [Sat, 21 Apr 2012 16:30:03 +0000 (09:30 -0700)]
Merge sysdeps/arm/eabi into sysdeps/arm.
Joseph Myers [Sat, 21 Apr 2012 15:38:55 +0000 (08:38 -0700)]
Merge sysdeps/unix/sysv/linux/arm/eabi into sysdeps/unix/sysv/linux/arm.
Andreas Schwab [Wed, 18 Apr 2012 09:06:17 +0000 (11:06 +0200)]
m68k: update libm test ULPs
Andreas Schwab [Tue, 17 Apr 2012 21:59:10 +0000 (23:59 +0200)]
m68k: rename s_ilogb* to e_ilogb*
Andreas Jaeger [Tue, 17 Apr 2012 05:59:37 +0000 (07:59 +0200)]
Avoid warnings about redefinition
* sysdeps/unix/sysv/linux/arm/ldsodefs.h: Undefine
MORE_ELF_HEADER_DATA to avoid warnings about redefinition.
Carlos O'Donell [Tue, 17 Apr 2012 04:01:19 +0000 (06:01 +0200)]
hppa: Build fixes for STT_GNU_IFUNC.
Stub out enough files to allow the hppa
port to build without STT_GNU_IFUNC.
Carlos O'Donell [Tue, 17 Apr 2012 03:46:34 +0000 (05:46 +0200)]
hppa: Remove relocation in OPD handling code.
A current bug in the hppa binutils code causes
relative relocations to be mixed with OPD relocations.
The OPD handling code in ld.so requires a relocation to
setup one of the data structures.
At startup ld.so tries to use the structure to handle
an OPD relocation *before* the structure is completely
setup by the relative relocation and this causes a crash.
This code is a workaround and a bandaid, the real fix
is in the static linker, but until then we must avoid
relocations in dl-fptr.c.
We copy dl-fptr.c from generic code, modify it, and
adjust the headers to fixup the structure at runtime
instead of having the relocation do this for us
automatically.
Carlos O'Donell [Tue, 17 Apr 2012 03:29:00 +0000 (05:29 +0200)]
hppa: Remove elf/ and create crti.S/crtn.S
This patch removes the elf/ directory, moving any
special configury down a directory e.g. TLS checks.
This patch also implements the required crti.S
and crtn.S files, verifying that they match the
current implementation.
Mike Frysinger [Sun, 15 Apr 2012 01:10:30 +0000 (21:10 -0400)]
tile: update _itoa.h include path
Common code moved _itoa.h necessitating a change in the #include path.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Andreas Schwab [Wed, 28 Mar 2012 16:39:51 +0000 (18:39 +0200)]
m68k: define MAP_STACK and MAP_HUGETLB
Joseph Myers [Wed, 28 Mar 2012 12:37:21 +0000 (12:37 +0000)]
MIPS: Define MAP_STACK and MAP_HUGETLB.
Joseph Myers [Wed, 28 Mar 2012 12:36:51 +0000 (12:36 +0000)]
ARM: Define MAP_STACK and MAP_HUGETLB.
Andreas Schwab [Tue, 27 Mar 2012 21:47:41 +0000 (23:47 +0200)]
m68k: drop elf directory
Richard Henderson [Tue, 27 Mar 2012 21:29:13 +0000 (14:29 -0700)]
Merge sysdeps/alpha/elf/ into sysdeps/alpha/.
Joseph Myers [Tue, 27 Mar 2012 21:10:20 +0000 (21:10 +0000)]
Merge sysdeps/mips/elf/ into sysdeps/mips/.
Joseph Myers [Tue, 27 Mar 2012 21:04:59 +0000 (21:04 +0000)]
Merge sysdeps/arm/elf/ into sysdeps/arm/.
Andreas Schwab [Fri, 23 Mar 2012 15:34:03 +0000 (16:34 +0100)]
m68k: update libm test ULPs
Andreas Schwab [Fri, 23 Mar 2012 15:33:37 +0000 (16:33 +0100)]
m68k: avoid undue overflow in cexp
Andreas Schwab [Fri, 23 Mar 2012 12:42:08 +0000 (13:42 +0100)]
m68k: prevent gcc from CSEing mathinline asms
Andreas Schwab [Thu, 22 Mar 2012 09:55:02 +0000 (10:55 +0100)]
m68k: update libm test ULPs
Carlos O'Donell [Thu, 22 Mar 2012 04:12:30 +0000 (00:12 -0400)]
Update copyright year to 2012.
Carlos O'Donell [Thu, 22 Mar 2012 04:05:14 +0000 (00:05 -0400)]
[PARISC] small atomic.h optimization
We do not negate the light-weight syscall return and instead
just check for the negative errno value allowing the compiler
to optimize as required.
Richard Henderson [Wed, 21 Mar 2012 15:18:55 +0000 (08:18 -0700)]
alpha: Update _itoa.h include.
Andreas Schwab [Tue, 20 Mar 2012 23:38:10 +0000 (00:38 +0100)]
m68k: update _itoa.h include
Joseph Myers [Tue, 20 Mar 2012 23:14:19 +0000 (23:14 +0000)]
MIPS: Update _itoa.h include.
Joseph Myers [Tue, 20 Mar 2012 23:13:50 +0000 (23:13 +0000)]
ARM: Update _itoa.h include.
Andreas Schwab [Mon, 19 Mar 2012 23:25:54 +0000 (00:25 +0100)]
m68k: update libm test ULPs
Richard Henderson [Mon, 19 Mar 2012 00:27:13 +0000 (17:27 -0700)]
alpha: Tell math_private.h that we have __isnan et al.
Andreas Schwab [Thu, 15 Mar 2012 12:33:35 +0000 (13:33 +0100)]
m68k: update libm test ULPs
Andreas Schwab [Tue, 13 Mar 2012 13:30:53 +0000 (14:30 +0100)]
m68k: update kernel-features.h
Richard Henderson [Sun, 11 Mar 2012 18:15:09 +0000 (11:15 -0700)]
alpha: replace bits/socket.h with bits/socket_type.h.
Paul Eggert [Sat, 10 Mar 2012 13:09:02 +0000 (13:09 +0000)]
Replace FSF snail mail address with URL in sysdeps/mips/mips64/gmp-mparam.h.
Richard Henderson [Sat, 10 Mar 2012 00:28:42 +0000 (16:28 -0800)]
Use include_next to chain math_private.h headers.
Richard Henderson [Fri, 9 Mar 2012 19:30:44 +0000 (11:30 -0800)]
Use <> for math.h and math_private.h everywhere.
Entire tree edited via find | grep | sed.
Paul Eggert [Fri, 9 Mar 2012 23:56:38 +0000 (23:56 +0000)]
Replace FSF snail mail address by URL.
Joseph Myers [Fri, 9 Mar 2012 22:43:01 +0000 (22:43 +0000)]
MIPS: replace bits/socket.h with bits/socket_type.h.
Michael Hope [Mon, 5 Mar 2012 22:58:13 +0000 (17:58 -0500)]
ARM: Implement *context routines.
* sysdeps/unix/sysv/linux/arm/eabi/getcontext.S: New file.
* sysdeps/unix/sysv/linux/arm/eabi/makecontext.c: New file.
* sysdeps/unix/sysv/linux/arm/eabi/setcontext.S: New file.
* sysdeps/unix/sysv/linux/arm/eabi/swapcontext.S: New file.
* sysdeps/unix/sysv/linux/arm/ucontext_i.sym: New file.
* sysdeps/unix/sysv/linux/arm/Makefile (gen-as-const-headers): Add
ucontext_i.sym.
Andreas Schwab [Mon, 5 Mar 2012 15:50:44 +0000 (16:50 +0100)]
m68k: update libm test ULPs
Carlos O'Donell [Mon, 5 Mar 2012 15:37:28 +0000 (10:37 -0500)]
HPPA: Update socket.h, pthreadtypes.h and pthread.h
Synchronize from core libc headers.
Richard Henderson [Sun, 4 Mar 2012 20:03:59 +0000 (12:03 -0800)]
alpha: Avoid -Winline warning in ioperm.c.
Specifically:
warning: inlining failed in call to 'inline_sethae.part.1':
call is unlikely and code size would grow [-Winline]
Richard Henderson [Sun, 4 Mar 2012 20:02:55 +0000 (12:02 -0800)]
alpha: Update recvmmsg and sendmmsg declarations.
Richard Henderson [Sun, 4 Mar 2012 19:30:01 +0000 (11:30 -0800)]
alpha: Update for pthread_attr_t typedef changes.
Andreas Schwab [Fri, 2 Mar 2012 21:26:47 +0000 (22:26 +0100)]
m68k: update libm test ULPs
Andreas Schwab [Mon, 27 Feb 2012 20:15:54 +0000 (21:15 +0100)]
m68k: only define pthread_attr_t if not already defined
Joseph Myers [Mon, 27 Feb 2012 15:54:30 +0000 (15:54 +0000)]
MIPS: do not declare recvmmsg and sendmmsg for !__USE_GNU.
Joseph Myers [Mon, 27 Feb 2012 15:14:41 +0000 (15:14 +0000)]
MIPS: fix pthread_attr_t definitions.