]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/powerpc/powerpc64/crtn.S
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / powerpc / powerpc64 / crtn.S
index 39f5c143daf08e971d459767a52a3c2a57d0a950..59396a2508803c38ac3f8821114760474765eddd 100644 (file)
@@ -1,5 +1,5 @@
 /* Special .init and .fini section support for PowerPC64.
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright (C) 2012-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,7 +31,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 /* crtn.S puts function epilogues in the .init and .fini sections
    corresponding to the prologues in crti.S. */
 #include <sysdep.h>
 
        .section .init,"ax",@progbits
-       addi r1, r1, 112
-       ld r0, 16(r1)
+       addi r1, r1, FRAME_MIN_SIZE_PARM
+       ld r0, FRAME_LR_SAVE(r1)
        mtlr r0
        blr
 
        .section .fini,"ax",@progbits
-       addi r1, r1, 112
-       ld r0, 16(r1)
+       addi r1, r1, FRAME_MIN_SIZE_PARM
+       ld r0, FRAME_LR_SAVE(r1)
        mtlr r0
        blr