aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-auditmod1.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-04-05 21:37:05 +0000
committerRoland McGrath <roland@gnu.org>2005-04-05 21:37:05 +0000
commit404a4e2fb3e29843d1cc14d2c77cf984cc98b4be (patch)
tree928374a6bbb611366e1b4180f2070d88207c3809 /elf/tst-auditmod1.c
parent328a48c5791aa2fd4ca223e8d75e923382656663 (diff)
downloadglibc-404a4e2fb3e29843d1cc14d2c77cf984cc98b4be.zip
glibc-404a4e2fb3e29843d1cc14d2c77cf984cc98b4be.tar.gz
glibc-404a4e2fb3e29843d1cc14d2c77cf984cc98b4be.tar.bz2
* 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.
Diffstat (limited to 'elf/tst-auditmod1.c')
-rw-r--r--elf/tst-auditmod1.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/elf/tst-auditmod1.c b/elf/tst-auditmod1.c
index 3876822..73d341d 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