Commit Graph

352 Commits

Author SHA1 Message Date
Ulrich Drepper
2c7ba672ef Helper code for TLS setup in static libc. 2003-01-17 19:19:37 +00:00
Ulrich Drepper
6edfd8f2f6 (elf_machine_type_class): Add TLS relocs for class PLT. 2003-01-17 19:18:51 +00:00
Ulrich Drepper
a48dbdf044 (elf_machine_rela): Compute DTPREL64 and TPREL64 without loadbase applied. 2003-01-12 19:22:32 +00:00
Ulrich Drepper
6ad3dd03b3 (elf_machine_rela): Move CHECK_STATIC_TLS before l_tls_offset use. 2003-01-12 08:47:37 +00:00
Ulrich Drepper
db16023193 Use libc_hidden_def(name) instead of strong_alias (name, __GI_name). 2002-12-31 20:37:32 +00:00
Ulrich Drepper
044758323b Add __GI__setjmp alias. 2002-12-31 09:35:36 +00:00
Roland McGrath
f8a26bed6f 2002-12-08 Roland McGrath <roland@redhat.com>
* elf/Makefile (tests): Uncomment tst-array[123].
	* Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
	* csu/elf-init.c: New file.
	* csu/Makefile (routines, static-only-routines): Add elf-init.
	* sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
	and __libc_csu_fini in place of _fini.
	* sysdeps/arm/elf/start.S: Likewise.
	* sysdeps/cris/elf/start.S: Likewise.
	* sysdeps/hppa/elf/start.S: Likewise.
	* sysdeps/i386/elf/start.S: Likewise.
	* sysdeps/ia64/elf/start.S: Likewise.
	* sysdeps/m68k/elf/start.S: Likewise.
	* sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
	* sysdeps/mips/elf/start.S: Likewise.
	* sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
	* sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
	* sysdeps/s390/s390-32/elf/start.S: Likewise.
	* sysdeps/s390/s390-64/elf/start.S: Likewise.
	* sysdeps/sh/elf/start.S: Likewise.
	* sysdeps/sparc/sparc32/elf/start.S: Likewise.
	* sysdeps/sparc/sparc64/elf/start.S: Likewise.
	* sysdeps/x86_64/elf/start.S: Likewise.
2002-12-09 20:37:24 +00:00
Roland McGrath
fbd3097515 2002-11-07 Richard Henderson <rth@redhat.com>
* configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
	* configure: Regenerated.
	* config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
	* sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
	(RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
	_dl_fini via gp-relative relocations.
	* sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
	* elf/tls-macros.h: Add alpha versions.
	* sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
	* sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
	* sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
	* sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
	* sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
	* sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2002-11-08 02:19:00 +00:00
Roland McGrath
18fefdbe94 2002-11-07 Richard Henderson <rth@redhat.com>
* configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
	* configure: Regenerated.
	* config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
	* sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
	(RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
	_dl_fini via gp-relative relocations.
	* sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
2002-11-08 02:18:58 +00:00
Roland McGrath
d0d0df1dd3 2002-11-07 Richard Henderson <rth@redhat.com>
* linuxthreads/sysdeps/alpha/tls.h: New file.
	* sysdeps/alpha/dl-tls.h: New file.
2002-11-08 02:18:51 +00:00
Roland McGrath
69211cccc6 2002-10-19 Roland McGrath <roland@redhat.com>
* configure: Regenerated (using Autoconf 2.54).
	* sysdeps/alpha/elf/configure: Likewise.
	* sysdeps/generic/configure: Likewise.
	* sysdeps/i386/elf/configure: Likewise.
	* sysdeps/ia64/elf/configure: Likewise.
	* sysdeps/mach/hurd/configure: Likewise.
	* sysdeps/mach/configure: Likewise.
	* sysdeps/unix/configure: Likewise.
	* sysdeps/unix/common/configure: Likewise.
	* sysdeps/unix/sysv/aix/configure: Likewise.
	* sysdeps/unix/sysv/linux/configure: Likewise.
	* sysdeps/unix/sysv/linux/mips/configure: Likewise.
	* sysdeps/x86_64/elf/configure: Likewise.
2002-10-19 20:03:50 +00:00
Roland McGrath
12e56cf46d 2002-10-18 Jeff Bailey <jbailey@gnu.org>
* configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
        * sysdeps/alpha/elf/configure.in: Likewise.
        * sysdeps/i386/elf/configure.in: Likewise.
        * sysdeps/mach/hurd/configure.in: Likewise.
        * sysdeps/x86_64/elf/configure.in: Likewise.
2002-10-18 20:27:53 +00:00
Roland McGrath
aa858c3e99 2002-10-18 Jeff Bailey <jbailey@gnu.org>
* sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
        * sysdeps/generic/configure.in: Likewise.
        * sysdeps/i386/elf/configure.in: Likewise.
        * sysdeps/ia64/elf/configure.in: Likewise.
        * sysdeps/mach/configure.in: Likewise.
        * sysdeps/mach/hurd/configure.in: Likewise.
        * sysdeps/unix/configure.in: Likewise.
        * sysdeps/unix/common/configure.in: Likewise.
        * sysdeps/unix/sysv/aix/configure.in: Likewise.
        * sysdeps/unix/sysv/linux/configure.in: Likewise.
        * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
        * sysdeps/x86_64/elf/configure.in: Likewise.
2002-10-18 19:38:00 +00:00
Ulrich Drepper
d78045b1a2 Don't access memory beyond the source buffer. 2002-10-03 09:14:46 +00:00
Ulrich Drepper
d044736b27 Temporarily enable R_*_NONE relocs in ld.so. 2002-10-02 20:24:20 +00:00
Ulrich Drepper
cf16933e96 Regenerated: autoconf sysdeps/alpha/elf/configure.in 2002-10-02 05:07:46 +00:00
Roland McGrath
93697b95eb 2002-09-20 Roland McGrath <roland@redhat.com>
* sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
	(BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
	terms of __WORDSIZE.
	* sysdeps/x86_64/gmp-mparam.h: File removed.
	* sysdeps/sparc/gmp-mparam.h: File removed.
	* sysdeps/mips/mips64/gmp-mparam.h: File removed.
	* sysdeps/ia64/gmp-mparam.h: File removed.
	* sysdeps/alpha/gmp-mparam.h: File removed.
2002-09-20 21:49:06 +00:00
Ulrich Drepper
280ad607c7 Add libm_hidden_ver. 2002-09-10 01:26:37 +00:00
Ulrich Drepper
efd36212eb Regenerated. 2002-08-28 22:15:36 +00:00
Ulrich Drepper
9d131243df (libc_cv_alpha_hidden_gprel): New check.
(PI_STATIC_AND_HIDDEN): Define if check succeeded.
2002-08-28 22:15:22 +00:00
Roland McGrath
12ddb09b0a 2002-07-06 Bruno Haible <bruno@clisp.org>
* sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2002-08-26 11:37:35 +00:00
Andreas Jaeger
978d532dd9 Regenerate. 2002-08-19 07:41:58 +00:00
Ulrich Drepper
e5d48d74e6 (__stpcpy): Add libc_hidden_def. 2002-08-04 01:22:10 +00:00
Ulrich Drepper
b8daff95dd (__rawmemchr): Add libc_hidden_def. 2002-08-03 06:41:33 +00:00
Ulrich Drepper
d8c656cee5 (__stpncpy): Add libc_hidden_def. 2002-08-03 06:30:45 +00:00
Roland McGrath
dced4334e4 2002-06-15 Roland McGrath <roland@frob.com>
* sysdeps/alpha/divrem.h: Use local label instead of global one for
	jump to local subroutine.
2002-06-15 20:53:37 +00:00
Roland McGrath
5c07e4b79e 2002-06-04 Roland McGrath <roland@frob.com>
* sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
	* sysdeps/alpha/elf/configure: New file (generated).
2002-06-05 08:55:48 +00:00
Roland McGrath
3616a53d7d 2002-06-04 Roland McGrath <roland@frob.com>
* sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
	* sysdeps/alpha/elf/configure: New file (generated).
2002-06-04 19:02:43 +00:00
Roland McGrath
21b4728e4f 2002-04-24 Roland McGrath <roland@frob.com>
* sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
	macro; we need this for Hurd.
2002-04-24 18:17:02 +00:00
Ulrich Drepper
2b0a7e122e (ELF_MACHINE_REL_RELATIVE): Define. 2002-04-06 00:33:22 +00:00
Ulrich Drepper
dca9c7304b Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION. 2002-02-28 22:36:33 +00:00
Ulrich Drepper
88706a4c84 (elf_machine_load_address, RTLD_START): Work around an Alpha gas bug. 2002-02-27 18:10:53 +00:00
Ulrich Drepper
64e7a2bf11 Use \n\ for multiline string. 2002-02-09 01:58:16 +00:00
Ulrich Drepper
c577723005 (RTLD_START): Call _dl_init_internal instead of _dl_init. 2002-02-03 00:29:15 +00:00
Ulrich Drepper
f71d7f5726 Move global variables for SHARED code in struct _rtld_global. Export
this struct, remove all exports for the signal variables.
2002-02-01 01:32:06 +00:00
Ulrich Drepper
6fbd2f3d0c (pic-ccflag): New variable. 2002-01-29 03:53:32 +00:00
Ulrich Drepper
18328fa8da (__ieee754_sqrt): Don't use multi-line string literals.
(__full_ieee754_sqrt): Add __attribute_used__.
2002-01-11 01:03:15 +00:00
Ulrich Drepper
0a6fc182da (elf_machine_runtime_setup): Avoid warning.
(TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
literals to avoid warnings.
2001-12-31 17:33:59 +00:00
Ulrich Drepper
d70bbfe3be (elf_machine_runtime_setup): Reinitialize
.plt for prelinked libraries where prelinking info cannot be used.
(elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
2001-12-12 00:10:27 +00:00
Ulrich Drepper
89a817b087 GCC frame description for Alpha. 2001-11-16 01:06:40 +00:00
Ulrich Drepper
8755441d32 (elf_machine_load_address): Compute the difference between base address and
first PT_LOAD's virtual address, not the base address.
2001-09-22 21:32:57 +00:00
Ulrich Drepper
00268a805b Startup code for Alpha/ELF. 2001-09-01 19:24:46 +00:00
Ulrich Drepper
fed1030448 Not needed anymore. 2001-09-01 19:23:47 +00:00
Ulrich Drepper
9f888890de Support for high-precision timers on Alpha. 2001-09-01 06:08:44 +00:00
Ulrich Drepper
6222fd02e7 (elf_machine_rela): Remove unused code.
Don't add old memory content for R_ALPHA_REFQUAD.
2001-09-01 05:32:08 +00:00
Ulrich Drepper
952ec50e9e (elf_machine_rela): Don't handle
R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only
check for rtld map if RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2001-08-30 23:09:10 +00:00
Ulrich Drepper
703aebdd7b Adjust j0 ULPs. 2001-08-30 20:22:48 +00:00
Ulrich Drepper
b5fdbb191a Adjust j0 ULPs. 2001-08-30 20:04:34 +00:00
Ulrich Drepper
5c6029e5c0 (elf_machine_lookup_noplt_p, elf_machine_lookup_noexec_p): Remove.
(elf_machine_type_class): Define.
2001-08-26 22:26:38 +00:00
Ulrich Drepper
b934c935cb (elf_machine_rela_relative): Rename from elf_machine_rel_relative. Fix argument types. 2001-08-24 14:53:03 +00:00