libgloss: riscv: Fix envp parameter for mainmainmaster
commit730703bdb8e1ae671517efaa0b9e273eef52d724
authorBernd Edlinger <bernd@edlinger-online.de>
Thu, 11 Apr 2024 12:57:11 +0000 (11 14:57 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 12 Apr 2024 09:44:07 +0000 (12 11:44 +0200)
tree8a647da529f300213c21343ba744b4b2242fcb63
parent579064bf4d408e99ed7556f36a3050c7ee99dee6
libgloss: riscv: Fix envp parameter for main

The envp paramter is currently NULL when crt0.S calls main.
With this patch the envp parameter should now be set correctly.
Tested with riscv32 and riscv64: both gdb/sim and qemu do work.
libgloss/riscv/crt0.S