That seems pretty unlikely, considering that the code works fine on
SPARC which also has quite stringent alignment requirements. I
presume you're compiling a 32 bit binary, not 64 bit. Perhaps shorts
are bigger than 16 bits on your platform?
32-bit, yes. Otherwise nothing out of the ordinary:
(from the target)
The only thing which is somewhat unusual is that I use musl libc
). However I also use this on my x86_64 dev boxes
and everything works fine.
I'm currently building an eglibc toolchain for MIPS just to rule that