I'm trying to assemble some basic testing code for an embedded device I'm reverse-engineering, which runs little-endian xtensa threadx. From googling the only assembler that seems to support xtensa in my linux distro's repos (fedora) is GNU Assembler (xtensa-linux-gnu-as).
However when assembling code the output is always big-endian, with seemingly no way to change it to little-endian. Typical relevant GNU assembler options for other architectures (-mlittle-endian, -EL) don't seem to be supported for xtensa.
Is there some obscure way I couldn't find to make xtensa-linux-gnu-as output little endian? Or some other alternate assembler I can use instead that does?
Example assembly for xtensa-linux-gnu-as:
.int 0x12345678
Assembled output hex dump:
00000000: 1234 5678 .4Vx