[PATCH] riscv: Add big-endian support to string-fzi.h.

Jovan Dmitrovic jovan.dmitrovic@htecgroup.com
Fri Jun 12 12:44:59 GMT 2026


On 6/11/26 18:18, Jeffrey Law wrote:
> On 6/10/2026 9:56 AM, Adhemerval Zanella Netto wrote:
>> 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
> There's a bit of a chicken and the egg problem here.  We need fixes in
> various places before we can test the GCC bits, including QEMU and GLIBC.
>
> I don't personally think that BE RISC-V is terribly interesting, but I
> wouldn't block its progress just because Linus doesn't like it. So if
> folks are going to step up to make work, maintain it over time, etc then
> we should enable them to do that.
>
> jeff

Thanks Jeff for your support, our team is interested in making this work.

Once the psABI proposal is finalized, we will post patches for both GCC 
and LLVM backend,
considering we merged the LLVM codegen support for RISC-V last year [1].

Also, QEMU support is finalized [2], we are only waiting for that series
to be merged to master.

Regards,
Jovan

[1] https://github.com/llvm/llvm-project/pull/172668
[2] https://lists.nongnu.org/archive/html/qemu-devel/2026-05/msg07505.html


More information about the Libc-alpha mailing list