summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-02-02 13:37:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-02-02 13:37:03 +0000
commit0dab79925da5afc136281256d981ac051390bf6f (patch)
tree0344593cec364b7887308fb7587e955bcc75b781 /libexec/ld.so
parent08e5c989873ed6be040622ff1559f4ed5560c3b8 (diff)
Be sure to pass a NULL cleanup pointer to CSU.
Diffstat (limited to 'libexec/ld.so')
-rw-r--r--libexec/ld.so/m68k/ldasm.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/m68k/ldasm.S b/libexec/ld.so/m68k/ldasm.S
index 793329d6214..2b51a95b73f 100644
--- a/libexec/ld.so/m68k/ldasm.S
+++ b/libexec/ld.so/m68k/ldasm.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldasm.S,v 1.1 2013/01/23 19:15:58 miod Exp $ */
+/* $OpenBSD: ldasm.S,v 1.2 2013/02/02 13:37:02 miod Exp $ */
/*
* Copyright (c) 2006 Dale Rahn
@@ -93,6 +93,8 @@ ENTRY(_dl_start)
addl #DL_DATA_SIZE, %sp | restore sp
moveal %d0, %a0
+ clrl %d1
+ moveal %d1, %a1 | cleanup as expected by CSU
jmp (%a0)
rts