From 8222199266b283514206a99247f8e3d3b63e2037 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 7 Jan 2005 11:36:07 +0000 Subject: Update. 2005-01-07 Ulrich Drepper * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize l_relocated of rtld map. * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file. * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here. Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT. * sysdeps/generic/ldsodefs.h (struct audif_ifaces): Add ppc64 variants. * elf/tst-auditmod1.c: Add ppc64 support. * sysdeps/powerpc/powerpc64/bits/link.h: New file. --- elf/tst-auditmod1.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'elf/tst-auditmod1.c') diff --git a/elf/tst-auditmod1.c b/elf/tst-auditmod1.c index 7d39857..987a548 100644 --- a/elf/tst-auditmod1.c +++ b/elf/tst-auditmod1.c @@ -4,6 +4,7 @@ #include #include #include +#include #include @@ -147,6 +148,29 @@ la_x86_64_gnu_pltexit (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, return 0; } +#elif defined __powerpc__ && __WORDSIZE == 64 +uintptr_t +la_ppc64_gnu_pltenter (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, + uintptr_t *defcook, La_ppc64_regs *regs, + unsigned int *flags, const char *symname, + long int *framesizep) +{ + printf ("ppc64_pltenter: symname=%s, st_value=%#lx, ndx=%u, flags=%u\n", + symname, (long int) sym->st_value, ndx, *flags); + + return sym->st_value; +} + +unsigned int +la_ppc64_gnu_pltexit (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, + uintptr_t *defcook, const La_ppc64_regs *inregs, + La_ppc64_retval *outregs, const char *symname) +{ + printf ("ppc64_pltexit: symname=%s, st_value=%#lx, ndx=%u, retval=%tu\n", + symname, (long int) sym->st_value, ndx, outregs->lrv_r3); + + return 0; +} #else # error "architecture specific code needed" #endif -- cgit v1.1