From: Liviu Ionescu <ilg@livius.net>
To: newlib@sourceware.org
Subject: RISC-V crt0.S
Date: Sat, 11 Jun 2022 18:56:27 +0300 [thread overview]
Message-ID: <D7505FBD-2E81-41CD-B915-396E3E990343@livius.net> (raw)
Hi,
I tried to use the RISC-V semihosting configuration, and I noticed that crt0.S is very simple, and does not process the command line arguments, as per Arm semihosting specs.
Then I tried to override _startup() with my own version, and I noticed that the function is not defined as weak, so I had to name mine differently, and call it from the reset handler.
It would be great to bring the RISC-V semihosting crt0.S to the same functionality level of Arm semihosting.
Regards,
Liviu
reply other threads:[~2022-06-11 15:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D7505FBD-2E81-41CD-B915-396E3E990343@livius.net \
--to=ilg@livius.net \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).