I am trying to edit some software to work with both Big and Little Endian ELF/DWARF files. In order to this, I think it would be a good ide开发者_StackOverflowa to have both a Little and Big ELF file of the same data. I am using a simple program in a compiler to create an ELF Object file, however the object file is formatted always in the endianness of the architecture of the chip I am using. Is there a way to obtain both endianness for a single program on a single chip?
Thanks.
精彩评论