summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-05-26 08:43:30 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-05-26 08:43:30 +0000
commitfa6477b53718c26e87c9c493082c08817d53ee23 (patch)
tree1a1d6c2c897936b41719787648df2096f63f3e84 /libc/sysdeps/linux/powerpc
parentdf77bb0e1a9a7531dd18a4e56e82cec6d85fb3f9 (diff)
Fix "off by one" bug.
Diffstat (limited to 'libc/sysdeps/linux/powerpc')
-rw-r--r--libc/sysdeps/linux/powerpc/crt1.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/powerpc/crt1.S b/libc/sysdeps/linux/powerpc/crt1.S
index 916c34a4b..a1aa96a9c 100644
--- a/libc/sysdeps/linux/powerpc/crt1.S
+++ b/libc/sysdeps/linux/powerpc/crt1.S
@@ -66,15 +66,15 @@ _start:
mr r9,r7 /* Pass _dl_fini from ldso or NULL if statically linked */
/* Ok, now run uClibc's main() -- shouldn't return */
# ifdef L_Scrt1
- lwz r6,_init@got(r31)
- lwz r7,_fini@got(r31)
+ lwz r7,_init@got(r31)
+ lwz r8,_fini@got(r31)
lwz r3,main@got(r31)
b __uClibc_start_main@plt
# else
- lis r6,_init@ha # load top 16 bits
- addi r6,r6,_init@l # load bottom 16 bits
- lis r7,_fini@ha # load top 16 bits
- addi r7,r7,_fini@l # load bottom 16 bits
+ lis r7,_init@ha # load top 16 bits
+ addi r7,r7,_init@l # load bottom 16 bits
+ lis r8,_fini@ha # load top 16 bits
+ addi r8,r8,_fini@l # load bottom 16 bits
lis r3,main@ha # load top 16 bits
addi r3,r3,main@l # load bottom 16 bits
b __uClibc_start_main