New port created but need advice when linking.

Ian Lance Taylor iant@google.com
Tue Aug 31 02:09:00 GMT 2010


Support at Computer Systems Services <support@computer-ss.com> writes:

> I added the xgate relocations to the main processor port, but when I
> call it I get the following error.
>
> "
> mc9s12x-elf-ld -m mc9s12xelfb --defsym _start=800 -T memory.x -o 
> test.elf main.o
> mc9s12x-elf-ld: main.o: Relocations in generic ELF (EM: 192)
> mc9s12x-elf-ld: main.o: Relocations in generic ELF (EM: 192)
> main.o: could not read symbols: File in wrong format
> "

This means that ld does not recognize the object format used for main.o.
The first thing to check would be the ELF machine number.

Ian



More information about the Binutils mailing list