[PATCH] RISC-V: Clear EF_RISCV_RVC/EF_RISCV_TSO when RVC/TSO is disabled using .attribute arch
Jan Beulich
jbeulich@suse.com
Tue Nov 12 09:23:21 GMT 2024
On 12.11.2024 03:07, Yu-Cheng Liang wrote:
> Thanks for the clarification. However, I want to know if it could
> cause confusion for users when they build binutils with RVC/TSO added
> to the default architecture attributes, as disabling RVC/TSO using
> -march and .attribute arch results in different EF_RISCV_RVC/TSO
> values (-march sets EF_RISCV_RVC/TSO to 0, while .attribute arch sets
> it to 1).
I'm afraid I don't fully get what you're asking. Whatever is set on the
gas command line should affect what is emitted. Whatever you set via
directives should only affect what is emitted if it increases constraints.
Please can you clarify what your concern is?
Jan
More information about the Binutils
mailing list