Commit graph

67 commits

Author SHA1 Message Date
Andreas Schwab 8cab192c3e (elf_machine_rela): Remove use of
RESOLVE.
2005-02-08 20:02:24 +00:00
Andreas Schwab 00f36bfbb7 * sysdeps/m68k/dl-machine.h: Remove trampoline code. Define
ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
	(elf_machine_runtime_setup): If profile != 0 does not anymore mean
	GLRO(dl_profile) != NULL.
	* sysdeps/m68k/dl-trampoline.S: New file.
	* sysdeps/m68k/bits/link.h: New file.
	* sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
	variants.
	* elf/tst-auditmod1.c: Add m68k support.
2005-01-16 02:07:29 +00:00
Andreas Schwab 7618b354bf (elf_machine_rela)
(elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
instead of static.
2004-10-30 21:44:13 +00:00
Ulrich Drepper cebbd6e78d Use GLRO instead of GL where appropriate. 2004-03-05 10:22:54 +00:00
Ulrich Drepper b82390a8da (RTLD_START): Remove setting of __libc_stack_end. 2003-09-24 21:08:31 +00:00
Alexandre Oliva 5027ae109a * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
reloc_addr is aligned.
* sysdeps/alpha/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
* sysdeps/cris/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/hppa/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
* sysdeps/ia64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/m68k/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/mips/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/powerpc/powerpc64/dl-machine.h
(elf_machine_rela_relative, elf_machine_rela): Adjust.
* sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative):
* sysdeps/sh/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/x86_64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
2003-07-31 06:33:52 +00:00
Andreas Schwab a25ef3f286 (_dl_start_user): Access
__libc_stack_end through GOT since it is a global symbol.
2003-03-01 15:33:11 +00:00
Andreas Schwab fab80146ed (_dl_start_user): Use pc-relative addressing to save GOT entries. 2003-01-25 23:07:04 +00:00
Andreas Schwab a89c56aac4 (elf_machine_runtime_setup): Make sure this is always inlined.
(elf_machine_rela): Likewise.
2003-01-06 18:10:46 +00:00
Ulrich Drepper ceb7d0bbbe Use rtld_progrname instead of _dl_argv[0]. 2002-03-01 09:43:36 +00:00
Ulrich Drepper dca9c7304b Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION. 2002-02-28 22:36:33 +00:00
Ulrich Drepper c577723005 (RTLD_START): Call _dl_init_internal instead of _dl_init. 2002-02-03 00:29:15 +00:00
Andreas Schwab d09d6903ed Don't use multi-line string literals. 2002-02-01 10:28:20 +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 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 638c8659a7 (elf_machine_rela_relative): Rename from elf_machine_rel_relative. 2001-08-24 14:51:50 +00:00
Ulrich Drepper 85bdccdbd2 Define elf_machine_rel_relative. Minor optimizations. 2001-08-24 08:43:21 +00:00
Andreas Jaeger 3214b89b32 Update to LGPL v2.1. 2001-07-06 04:56:23 +00:00
Ulrich Drepper 773b640096 Replace use of old output functions with the new ones. 2001-02-28 06:35:24 +00:00
Ulrich Drepper f1dba30859 (elf_machine_matches_host): Parameter is now pointer to ELF header. 2000-10-20 17:04:28 +00:00
Andreas Schwab ef892797ee Fix last change (misapplied). 2000-10-16 09:21:25 +00:00
Andreas Schwab b57d767cf4 2000-10-13 Michael Fedrowitz <michael@fedrowitz.de>
* sysdeps/m68k/dl-machine.h (_dl_start_user): Pass correct
	arguments to _dl_init.
2000-10-14 12:43:00 +00:00
Ulrich Drepper 408c9db5d3 (elf_machine_fixup_plt): Change return valuie to lookup_t and return the value. 2000-05-05 07:12:09 +00:00
Andreas Schwab a169be8dd3 * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
entry point, used on Hurd.
2000-04-05 11:01:20 +00:00
Andreas Schwab a502960ee1 * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
function interface.  Remove unused _dl_start_user entry point.
2000-04-04 12:08:40 +00:00
Ulrich Drepper 7189e3b807 Use D_PTR to access relocated entries in l_info. 2000-03-31 05:16:19 +00:00
Andreas Schwab 773d8a5255 * sysdeps/m68k/dl-machine.h (RTLD_START): Call pre-init funtions. 1999-07-26 08:27:39 +00:00
Roland McGrath 893f3d106f 1999-07-21 Roland McGrath <roland@baalperazim.frob.com>
* elf/dl-reloc.c (_dl_reloc_bad_type): New function.
	* elf/ldsodefs.h: Declare it.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Use it
	instead of assert.
	(elf_machine_lazy_rel): Likewise.  Take new arg MAP.
	* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/mips/mips64/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/generic/dl-machine.h (elf_machine_rel): Likewise.
	* sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/powerpc/dl-machine.h (elf_machine_lazy_rel): Likewise.
	* sysdeps/powerpc/dl-machine.c (__process_machine_rela): Use
	_dl_reloc_bad_type instead of _dl_signal_error.
	* elf/do-rel.h (elf_dynamic_do_rel): Pass MAP to elf_machine_lazy_rel.
1999-07-21 16:57:52 +00:00
Ulrich Drepper e675032fec (elf_machine_runtime_setup): DT_PLTGOT entry is already relocated. 1999-02-20 18:22:38 +00:00
Ulrich Drepper a2790a3c68 (elf_machine_rela): DT_STRTAB is already relocated. 1999-02-20 14:58:50 +00:00
Andreas Schwab 6d1d5abfa2 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Reorder expression
to avoid accessing global data in the usual case.
1999-01-04 01:36:55 +00:00
Andreas Schwab 641d707400 * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
flag.
1998-10-07 02:02:53 +00:00
Andreas Schwab b3e2d5611f * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
optimized.
1998-09-22 01:42:11 +00:00
Andreas Schwab 739902c55d * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
instead of _dl_default_scope[2] as argument to _dl_init_next.
1998-09-09 01:36:38 +00:00
Ulrich Drepper 68d11b268e (elf_machine_lazy_rel): Change first parameter and use this value. 1998-08-28 22:54:12 +00:00
Andreas Schwab 08016d928b * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Set
_dl_profile_map only if the name matches.
	(_dl_start_user): Remember stack address.
	* sysdeps/m68k/elf/start.S: Pass new argument to
	__libc_start_user.
1998-06-10 01:35:06 +00:00
Andreas Schwab 1e0c166557 * sysdeps/m68k/dl-machine.h: (elf_machine_load_address): Use word
offsets into the GOT.
	(RTLD_START): Likewise.
1998-03-04 02:36:01 +00:00
Ulrich Drepper 989166429c (elf_machine_rela): Fix last change.
The R_68K_GLOB_DAT and R_68K_JMP_SLOT relocations really ignore
the addend, Richard.
(elf_machine_fixup_plt): Don't add the addend.
(elf_machine_plt_value): New function.
1997-10-12 03:41:56 +00:00
Ulrich Drepper ff91cf3056 (elf_machine_relplt): Killed.
(ELF_MACHINE_JMP_SLOT): Renamed.
(elf_machine_fixup_plt): New function.
1997-09-27 00:20:13 +00:00
Ulrich Drepper ea420deaef (elf_machine_load_address): Use _dl_start instead of a local label, to
avoid getting an unreadable label name.
1997-09-05 01:40:47 +00:00
Ulrich Drepper c0d5b73e05 (RTLD_START): Switch back to previous section to avoid confusing the
compiler.
1997-08-27 19:58:41 +00:00
Ulrich Drepper 6e8e1d85e0 Add support for shared library profiling. 1997-08-02 20:56:48 +00:00
Ulrich Drepper 482bd6c6e4 (elf_machine_runtime_setup): Add new parameter to enable profiling.
(elf_machine_rela): Add new parameter to specify place to store result in.
1997-07-28 22:31:42 +00:00
Ulrich Drepper 09d24ad477 (elf_machine_rela): Mention program name in warning message. 1997-07-22 00:03:10 +00:00
Ulrich Drepper c96df8ef30 (elf_machine_rela): Check that the symbol was found. 1997-06-21 02:08:10 +00:00
Ulrich Drepper b5fba1adf7 (elf_machine_rel): Print warning about changed size in copy relocation
only if symbol in shared object is larger or _dl_verbose is nonzero.
1997-05-25 01:07:16 +00:00
Ulrich Drepper e295f61993 (elf_machine_runtime_setup): Return lazy. 1997-05-24 02:15:43 +00:00
Ulrich Drepper e9b08b8835 (elf_machine_rela): Check for mismatch in size for copy relocation. 1997-05-07 14:32:55 +00:00
Ulrich Drepper fea9a86a67 (elf_machine_rela): Rewritten as for i386.
(elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p,
ELF_MACHINE_RELOC_NOPLT): Define.
1997-03-27 01:57:11 +00:00
Ulrich Drepper d6abe77e92 update from main archive 970218 1997-02-19 04:43:26 +00:00