diff options
author | Ulrich Weigand <Ulrich.Weigand@de.ibm.com> | 2013-12-04 06:49:15 -0600 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-12-04 07:41:38 -0600 |
commit | d31beafa8e4ca69faa4cf362784796ef17299341 (patch) | |
tree | c19f21db80ede177c9205a7bb5749a5d3fdcda4c /sysdeps/unix/sysv | |
parent | b525166bb93b060e1146f0263b76a9c1e7455b06 (diff) | |
download | glibc-d31beafa8e4ca69faa4cf362784796ef17299341.tar.gz glibc-d31beafa8e4ca69faa4cf362784796ef17299341.tar.xz glibc-d31beafa8e4ca69faa4cf362784796ef17299341.zip |
PowerPC64 ELFv2 ABI 1/6: Code refactoring
This is the first patch to support the new ELFv2 ABI in glibc. As preparation, this patch simply refactors some of the powerpc64 assembler code to move all code related to creating function descriptors (.opd section) or using function descriptors (function pointer call) into a central place in sysdep.h. Note that most locations creating .opd entries were already using macros in sysdep.h, this patch simply extends this to the remaining places. No relevant change in generated code expected.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S index cf46856e1a..4151d15c37 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S @@ -99,9 +99,7 @@ L(oldpid): std r2,40(r1) /* Call procedure. */ - ld r0,0(r30) - ld r2,8(r30) - mtctr r0 + PPC64_LOAD_FUNCPTR r30 mr r3,r31 bctrl ld r2,40(r1) |