[PATCH] Set rv64gcv as default to enable vector extension for disassembly
Nelson Chu
nelson@rivosinc.com
Thu Jul 31 02:37:16 GMT 2025
On Wed, Jul 30, 2025 at 9:09 PM Andreas Schwab <schwab@suse.de> wrote:
> Why is that needed? AFAICT, objdump will happily decode any extension
> without that change.
>
I guess maybe they are trying to dump an object which writes
vector instructions by .insn directives, so the elf architecture attribute
or mapping symbols won't have v. I will suggest two solutions here rather
than just modify the default_arch,
1. using -Mmax option
2. Allow to set the default arch from the configure option, like what gas
did before. Not sure if it is possible to find a way to share the
configure set both for gas and opcode (assembler and dis-assembler).
BTW, force setting default_arch to rv64gc or whatever in dis-assembler
isn't really good, I think that I just forgot to update it before. So I
sent a patch to let riscv_parse_subset unify the default architecture
both for assembler and dis-assembler from the riscv_all_supported_ext table.
https://sourceware.org/pipermail/binutils/2025-July/143063.html
Nelson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250731/3d76ba4a/attachment.htm>
More information about the Binutils
mailing list