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.
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.
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.
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.
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.
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.
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.
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.
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/>.|' {} +
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.
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.
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.