This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: New port created but need advice when linking.
- From: Ian Lance Taylor <iant at google dot com>
- To: Support at Computer Systems Services <support at computer-ss dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 30 Aug 2010 16:44:40 -0700
- Subject: Re: New port created but need advice when linking.
- References: <4C7C2687.8030002@computer-ss.com>
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