diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-01-07 23:14:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-01-07 23:14:21 +0000 |
commit | 2413fdba7a02ba8916f75d17199a6e9133a8f7b0 (patch) | |
tree | cf40b3f04dc99bbdb0559858b7c98298e69768db /elf | |
parent | ae7f5313dfb6c9df557d3904a22ac74d3347eed1 (diff) | |
download | glibc-2413fdba7a02ba8916f75d17199a6e9133a8f7b0.tar.gz glibc-2413fdba7a02ba8916f75d17199a6e9133a8f7b0.tar.xz glibc-2413fdba7a02ba8916f75d17199a6e9133a8f7b0.zip |
Update.
* sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names. * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file. * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here. Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT. * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants. * elf/tst-auditmod1.c: Add ppc32 support. * sysdeps/powerpc/powerpc32/bits/link.h: New file. * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/tst-auditmod1.c | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/elf/tst-auditmod1.c b/elf/tst-auditmod1.c index 987a548067..054c27dba2 100644 --- a/elf/tst-auditmod1.c +++ b/elf/tst-auditmod1.c @@ -126,7 +126,7 @@ la_i86_gnu_pltexit (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook, return 0; } #elif defined __x86_64__ -uintptr_t +Elf64_Addr la_x86_64_gnu_pltenter (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, uintptr_t *defcook, La_x86_64_regs *regs, unsigned int *flags, const char *symname, @@ -148,8 +148,31 @@ la_x86_64_gnu_pltexit (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, return 0; } +#elif defined __powerpc__ && __WORDSIZE == 32 +Elf32_Addr +la_ppc32_gnu_pltenter (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook, + uintptr_t *defcook, La_ppc32_regs *regs, + unsigned int *flags, const char *symname, + long int *framesizep) +{ + printf ("ppc32_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_ppc32_gnu_pltexit (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook, + uintptr_t *defcook, const La_ppc32_regs *inregs, + La_ppc32_retval *outregs, const char *symname) +{ + printf ("ppc32_pltexit: symname=%s, st_value=%#lx, ndx=%u, retval=%tu\n", + symname, (long int) sym->st_value, ndx, outregs->lrv_r3); + + return 0; +} #elif defined __powerpc__ && __WORDSIZE == 64 -uintptr_t +Elf64_Addr 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, |