SegaXtreme

It appears that files got different architectures(flags, HAS_*) after conversion(sh->sh4, 0x30->0x10, HAS_LOCALS->).

objcopy sets architecture from input file only, so no chance to do that manually.

Code:
sh-elf-objdump -f sglA00.o

sglA00.o: file format coff-sh

architecture: sh, flags 0x00000030:

HAS_SYMS, HAS_LOCALS

...

sh-elf-objcopy -Icoff-sh -Oelf32-sh sglA00.o

sh-elf-objdump -f sglA00.o

sglA00.o: file format elf32-sh

architecture: sh4, flags 0x00000010:

HAS_SYMS

...

I decided to take format elf32-sh because a file compiled with sh-elf-gcc -m2 got that format.

Is there any problem with that? I tried to link to the ELF version of SGL, but the linker reports unknown references...
Top