New port created but need advice when linking.

Support at Computer Systems Services support@computer-ss.com
Mon Aug 30 21:59:00 GMT 2010


Hi I created a new cpu port for Binutils,  the xgate risc 
co-processor(http://github.com/seank/FreeScale-s12x-binutils). I 
verified the output by comparing it to that of a commercial compiler, 
what I want to be able to do is link the files from the main core and 
the co-processor at the same time. Even though they are different 
machines they are both elf32 big-endian and use the same emulation so I 
don't see why it isn't possible.

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
"
LD doesn't seem to like to link object files generated by a different 
version.  Unfortunately I'm not that familiar with the Binutils suite.  
The only idea I came up with is to compile the tool chain twice. Once 
each time with the different tc- and -dis source files with a different 
output prefix.  In hopes that the linker doesn't know the difference.  
If this email should go to a "lesser" list, let me know.  Any input 
would be appreciated.

Thanks in advance,
Sean




More information about the Binutils mailing list