aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-08-10 10:55:55 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-08-10 10:55:55 +0000
commit2f8c60c97821a886bf7aa35b67ef3f8916e362da (patch)
treeef6ad0a3b744e4e3cd73b6d230a7338eb3fd5a48
parente8fb582477a0806e6dfa44e2d98bd60b5888eebd (diff)
downloadklibc-2f8c60c97821a886bf7aa35b67ef3f8916e362da.tar.gz
Yet another victim of the bizarre ELF startup format...klibc-0.11
-rw-r--r--arch/ppc/crt0.S9
-rw-r--r--klibc/arch/ppc/crt0.S9
2 files changed, 12 insertions, 6 deletions
diff --git a/arch/ppc/crt0.S b/arch/ppc/crt0.S
index 99db069b17189..f7274b07dd549 100644
--- a/arch/ppc/crt0.S
+++ b/arch/ppc/crt0.S
@@ -15,9 +15,12 @@
.globl _start
_start:
lwz 3,0(1)
- lwz 4,4(1)
- lwz 5,8(1)
- addi 1,1,-16
+ addi 4,1,4
+ addi 5,1,8
+ slwi 0,3,2
+ add 5,5,0
+ li 0,0
+ stwu 0,-16(1)
lis 9,environ@ha
stw 5,environ@l(9)
bl main
diff --git a/klibc/arch/ppc/crt0.S b/klibc/arch/ppc/crt0.S
index 99db069b17189..f7274b07dd549 100644
--- a/klibc/arch/ppc/crt0.S
+++ b/klibc/arch/ppc/crt0.S
@@ -15,9 +15,12 @@
.globl _start
_start:
lwz 3,0(1)
- lwz 4,4(1)
- lwz 5,8(1)
- addi 1,1,-16
+ addi 4,1,4
+ addi 5,1,8
+ slwi 0,3,2
+ add 5,5,0
+ li 0,0
+ stwu 0,-16(1)
lis 9,environ@ha
stw 5,environ@l(9)
bl main