[PATCH 1/2] RISC-V: Fix abort when displaying .dword
Jan Beulich
jbeulich@suse.com
Wed Feb 12 10:06:48 GMT 2025
On 12.02.2025 09:57, Nelson Chu wrote:
> On Wed, Feb 12, 2025 at 4:06 PM Jan Beulich <jbeulich@suse.com> wrote:
>
>> While this follows what's done in the 3-byte case, I don't consider this
>> (or the 3-byte logic) correct. When I see .dword, I expect what's printed
>> covers full 8 bytes. Imo fake .<N>byte directives (which the assembler
>> doesn't recognize for non-power-of-2 N) would be more logical to use.
>
> Well if I see .word, I also expect to print the full 4 bytes, so probably
> just remove the case 3, and then make sure that we only have 1/2/4/8 for
> data, which means .byte/.short/.word/.dword.
Except that there is no 4th byte to print in that case. That wants expressing
somehow, without taking a value out of thin air.
Jan
More information about the Binutils
mailing list