[PATCH] riscv: Add big-endian support to string-fzi.h.
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Wed Jun 10 15:56:40 GMT 2026
What about Linux support? Last time I checked there is no option for
CPU_BIG_ENDIAN on arch/riscv and I recall that Linus was not very
enthusiastic about it.
Also, the pull request also states that BE support is not yet complete
on gcc [1], is that the case?
[1] https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/470#issuecomment-4610611607
On 10/06/26 11:32, Jovan Dmitrovic wrote:
> Hello everyone,
> thank you for the replies. We should be able to see big-endian be
> introduced into psABI in the near future:
>
> https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/470
>
> There are efforts across the board in order to introduce
> big-endian RISC-V (GCC and qemu already have support for BE).
> So I've sent this patch in order to get this process underway
> for glibc as well. There are some things that are definitely
> missing, but I will be sending patches as I go.
>
> Regards,
> Jovan
>
> On 6/8/26 15:33, Carlos O'Donell wrote:
>> On 6/3/26 9:52 AM, Jovan Dmitrovic wrote:
>>> Functions index_first and index_last should depend on endianness,
>>> considering we are looking at raw bytes.
>>
>> Is RISC-V BE officially supported by the ecosystem at large?
>>
>> We only support 2 LE variants in glibc's official ABI list:
>> https://sourceware.org/glibc/wiki/ABIList#RISC-V
>>
>> --
>> Cheers,
>> Carlos.
>>
More information about the Libc-alpha
mailing list