-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.option norvc disables all 16-bit instructions in binutils #1542
Comments
I think Nelson had a solution in Binutils part, please check the follow issue and PR, thanks. |
Shouldn't there be an issue logged upstream against Binutils (ld?) for this? And maybe against the LLVM linker too? And other linkers such as Mold and Gold? Or does it need to be addressed in the ABI spec first? |
The ASM manual states:
So, the ASM manual does not state that |
Isn't this issue a duplicate of this one: Do we actually need both issues open or can they be "merged"? |
Thanks for the responses. Example 1:
Example 2:
Example 1 can be assembled, but Example 2 cannot be assembled. |
Hi @yclwlcy - so the issue is that I presume that |
Yes.
I suggest modifying the behavior of
|
Apologies if any of these are dumb questions/comments but...
|
Yes.
Yes, just like
Just let them imply |
Thanks.
Sorry - where is it specified and/or implemented that
Sorry - I don't understand what you mean. Maybe you can clarify? BTW - the link in the original post is broken:
|
In binutils,
In binutils, all the extensions which contain 16-bit instructions imply
It seems to be moved to RISC-V Assembly Programmer's Manual. Thanks for reminding! |
What needs to be done in order to resolve and close this issue? |
Anybody? |
@TommyMurphyTM1234, I have sent my commit to binutils mailing list. |
I see that the discussion in ongoing in earnest over in the Binutils mailing list. As such I guess that the issue will be thrashed out and any necessary changes implemented upstream. So I will close this issue. |
According to the RISC-V Assembly Programmer's Manual, .option norvc is equivalent to .option arch, -c. However, .option norvc disables all 16-bit instructions in binutils. Should the binutils implementation be modified to align with the spec?
Thanks!
The text was updated successfully, but these errors were encountered: