[PATCH v1 0/5] Add support for LoongArch32

Xi Ruoyao xry111@xry111.site
Tue Dec 2 14:14:50 GMT 2025


On Tue, 2025-12-02 at 20:57 +0800, mengqinggang wrote:
> These patches are based on Jiajie Chen's previous work[1].
> The binutils and gcc patches is here[2] [3].
> The binutils and gcc source code can also be find at here[4] [5].
> A Chinese LA32R instruction set manual is here[6].
> There is currently no separate LA32 instruction set manual.
> The LA64 instruction set manual[7] specifies the instructions
> available in LA32.

Generally Glibc does not take a Linux port until Linus' kernel tree
supports the machine.  Maybe LA32 isn't a completely new port, but the
spirit should be the same: if the ABI between kernel and userspace isn't
defined yet, Glibc developers are not in a position to define it.

And I think the epoch symbol version of LA32 should be GLIBC_2.43
instead of GLIBC_2.36.

And, as a new 32-bit port (or sub-port) IMO we should start to force the
use of 64-bit time_t on the first day we add it, instead of repeating
the nasty and still ongoing time_t transition for the existing 32-bit
ports in the (not so far) future.

-- 
Xi Ruoyao <xry111@xry111.site>


More information about the Libc-alpha mailing list