From 404a4e2fb3e29843d1cc14d2c77cf984cc98b4be Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 5 Apr 2005 21:37:05 +0000 Subject: * sysdeps/sparc/sparc32/dl-trampoline.S: New file. * sysdeps/sparc/sparc32/dl-machine.h: Move PLT trampolines there. Use RESOLVE_MAP instead of RESOLVE to protect relocation code. (elf_machine_runtime_setup): Test for dl_profile non-null. * sysdeps/sparc/sparc64/dl-trampoline.S: New file. (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New. * sysdeps/sparc/sparc64/dl-machine.h: Move PLT trampolines there. Use RESOLVE_MAP instead of RESOLVE to protect relocation code. (elf_machine_runtime_setup): Test for dl_profile non-null. * sysdeps/sparc/bits/link.h: New file. * sysdeps/generic/ldsodefs.h (La_sparc32_regs, La_sparc32_retval, La_sparc64_regs, La_sparc64_retval): New. (struct audit_ifaces): Add sparc entries. * elf/tst-auditmod1.c: Add sparc entries. --- elf/tst-auditmod1.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'elf') diff --git a/elf/tst-auditmod1.c b/elf/tst-auditmod1.c index 3876822429..73d341d72b 100644 --- a/elf/tst-auditmod1.c +++ b/elf/tst-auditmod1.c @@ -180,6 +180,18 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, # define La_regs La_mips_64_regs # define La_retval La_mips_64_retval # define int_retval lrv_v0 +#elif defined __sparc__ && __WORDSIZE == 32 +# define pltenter la_sparc32_gnu_pltenter +# define pltexit la_sparc32_gnu_pltexit +# define La_regs La_sparc32_regs +# define La_retval La_sparc32_retval +# define int_retval lrv_reg[0] +#elif defined __sparc__ && __WORDSIZE == 64 +# define pltenter la_sparc64_gnu_pltenter +# define pltexit la_sparc64_gnu_pltexit +# define La_regs La_sparc64_regs +# define La_retval La_sparc64_retval +# define int_retval lrv_reg[0] #else # error "architecture specific code needed" #endif -- cgit v1.2.3