summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-11-01 10:25:34 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-11-01 10:25:34 +0000
commit8ec2fa17c268e9b9c59695007d8d01eda03dbd60 (patch)
treef26af1afdfcc5d8410c516265403a9e102e8a11a /libexec/ld.so
parent3e894385f9270ed9b5e48e20e90bb2039e96480b (diff)
Clear r7 before passing control to the main object.
Diffstat (limited to 'libexec/ld.so')
-rw-r--r--libexec/ld.so/sh/ldasm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/sh/ldasm.S b/libexec/ld.so/sh/ldasm.S
index dea82277e77..29dad9de690 100644
--- a/libexec/ld.so/sh/ldasm.S
+++ b/libexec/ld.so/sh/ldasm.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldasm.S,v 1.8 2012/10/24 03:26:56 guenther Exp $ */
+/* $OpenBSD: ldasm.S,v 1.9 2012/11/01 10:25:33 kettenis Exp $ */
/*
* Copyright (c) 2006 Dale Rahn
@@ -86,7 +86,7 @@ ENTRY(_dl_start)
shll2 r6
add r5, r6 // calc envp
jmp @r0
- nop
+ mov #0, r7
.align 2
.L_boot_bind: