summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldso/ldso/powerpc/boot1_arch.h4
-rw-r--r--ldso/ldso/powerpc/dl-startup.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/ldso/ldso/powerpc/boot1_arch.h b/ldso/ldso/powerpc/boot1_arch.h
index 615db6926..2f54ed9d9 100644
--- a/ldso/ldso/powerpc/boot1_arch.h
+++ b/ldso/ldso/powerpc/boot1_arch.h
@@ -9,8 +9,10 @@ asm("" \
" .text\n" \
" .globl _dl_boot\n" \
"_dl_boot:\n" \
-" mr 3,1\n" \
+" mr 3,1\n" \
+" li 4,0\n" \
" addi 1,1,-16\n" \
+" stw 4,0(1)\n" \
" bl _dl_boot2\n" \
".previous\n" \
);
diff --git a/ldso/ldso/powerpc/dl-startup.h b/ldso/ldso/powerpc/dl-startup.h
index 615db6926..2f54ed9d9 100644
--- a/ldso/ldso/powerpc/dl-startup.h
+++ b/ldso/ldso/powerpc/dl-startup.h
@@ -9,8 +9,10 @@ asm("" \
" .text\n" \
" .globl _dl_boot\n" \
"_dl_boot:\n" \
-" mr 3,1\n" \
+" mr 3,1\n" \
+" li 4,0\n" \
" addi 1,1,-16\n" \
+" stw 4,0(1)\n" \
" bl _dl_boot2\n" \
".previous\n" \
);