summaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2021-05-16 16:00:51 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2021-05-16 16:00:51 +0000
commit4ee1cd42ea1c4848cc4d2edb8fd79e6e28aedcce (patch)
tree118d62cbd48e7e4c234e0336fe95f92a5bfbfbca /lib/csu
parent34af6ddc0e453b20a9c839cca5c9a197d3f4ab50 (diff)
Correct problem in riscv64 dtors execution load the function pointer
correctly and do not overwrite it in csu. allows most ld.so regressions to pass confirmed by jsg@, ok kettenis
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/riscv64/md_init.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/csu/riscv64/md_init.h b/lib/csu/riscv64/md_init.h
index 83d3b4502c3..8328b838112 100644
--- a/lib/csu/riscv64/md_init.h
+++ b/lib/csu/riscv64/md_init.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: md_init.h,v 1.1 2021/04/28 00:11:11 drahn Exp $ */
+/* $OpenBSD: md_init.h,v 1.2 2021/05/16 16:00:50 drahn Exp $ */
/*
* Copyright (c) 2020 Dale Rahn <drahn@openbsd.org>
*
@@ -62,7 +62,6 @@
" .type __start, @function \n" \
"_start: \n" \
"__start: \n" \
- " mv a3, a2 # cleanup \n" \
"/* Get argc/argv/envp from stack */ \n" \
" ld a0, (sp) \n" \
" addi a1, sp, 0x8 \n" \