• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision721f0983ea98376644a22df578740b6489a4e49a (tree)
Time2019-07-05 21:47:21
AuthorChristoph Hellwig <hch@lst....>
CommiterWaldemar Brodkorb

Log Message

riscv: clear a3/a4 in crt1

We don't support shared libraries and thus _init/_fini. But loading
nommu binaries blows they aren't cleared, so do that.

Signed-off-by: Christoph Hellwig <hch@lst.de>

Change Summary

Incremental Difference

--- a/libc/sysdeps/linux/riscv64/crt1.S
+++ b/libc/sysdeps/linux/riscv64/crt1.S
@@ -52,6 +52,11 @@ _start:
5252 la a0, main
5353 REG_L a1, 0(sp) /* argc. */
5454 addi a2, sp, SZREG /* argv. */
55+ /*
56+ * No support fo app_init/app_fini as we don't support shared libraries.
57+ */
58+ mv a3, zero
59+ mv a4, zero
5560 andi sp, sp, ALMASK /* Align stack. */
5661 mv a6, sp /* stack_end. */
5762