Add sparc64 TLS and NPTL support.
authorUlrich Drepper <drepper@redhat.com>
Thu, 14 Apr 2005 21:46:37 +0000 (21:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 14 Apr 2005 21:46:37 +0000 (21:46 +0000)
commitedac0e8f443c332821a63e4f26e298a1622827fe
tree120a94bb8e7ff4f2fd6bc9975ea3c20758596eda
parent506cbf1f43a3bba63b9f4dd6d5a9a1d15f0dcf2c
Add sparc64 TLS and NPTL support.

* elf/tls-macros.h: Add Sparc64 defines.
* sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
always_inline.
(elf_machine_fixup_plt): Likewise.
(elf_machine_rela): Handle TLS relocations.
(elf_machine_type_cleaa): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
(SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
It does not always fit in R_SPARC_GOT13 when building -fPIC.
Also, add TLS handling.
* sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
Increase it to 2.4.21 for sparc64.
* sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
backtrace by zero'ing out %fp.  Store away flags, func_ptr,
and func_arg in global registers not local registers.
* sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
and CTID arguments properly.  Add RESET_PID handling.
* sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
do not invoke __sigprocmask().  We can always assume rt signals
are present on sparc64, so just do an inline syscall.

2005-04-13  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
inclusion guard for the first half of the header.
(elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
#ifndef dl_machine_h guarded part of the header.
12 files changed:
ChangeLog
elf/tls-macros.h
nptl/ChangeLog
nptl/sysdeps/sparc/sparc64/jmpbuf-unwind.h [new file with mode: 0644]
nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S [new file with mode: 0644]
sysdeps/sparc/sparc64/dl-machine.h
sysdeps/unix/sysv/linux/configure
sysdeps/unix/sysv/linux/configure.in
sysdeps/unix/sysv/linux/sparc/sparc32/clone.S
sysdeps/unix/sysv/linux/sparc/sparc64/clone.S
sysdeps/unix/sysv/linux/sparc/sparc64/pause.c
sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h