As a first step to port the LLVM chain on an in-house big-endian processor, I’m integrating the native assembler as a new ‘-assemble –arch=’ in llvm-mc.
All work quite well, I have a correct output ELF format except that generated code is little-endian.
I’ve understood that the endianess of the LLVM chain is controlled by the DataLayout class, but it appear to me that llvm-mc does not make use of such class. Could somebody confirm my understanding and give me some tips about endianess in llvm-mc?
Thanks, Dominique T.