[cfarm-users] gcc230: Unable to use GDB on 64-bit mips executable

Andy Polyakov appro at cryptogams.org
Wed Jun 18 00:03:48 CEST 2025


>> No, this won't work. "el" stands for "endian little" and it's a no-go 
>> on big-endian system such as the one in question.
> 
> Woops, looks like the second part got lost:
> 
> I thought that MIPS CPUs were generally bi-endian like PowerPC.

Trick question. MIPS CPUs *are* indeed bi-endian, but one has to choose 
endianness upon system initialization. Originally PowerPC were also like 
that, endianness at initialization, but one can mix little- and 
big-endian VMs[!] on POWER8 and forward.

> So, at 
> least in theory, it should be possible to run both big and little endian 
> userlands? Maybe not at the same time though...

Right, not at the same time. Userland has to match the kernel endianness.

Cheers.



More information about the cfarm-users mailing list