Help! Code bloat with ld 2.11.2 (but newer one doesn't work)

Ian Lance Taylor ian@wasabisystems.com
Thu Mar 4 20:09:00 GMT 2004


John Blevin <blevin@lucent.com> writes:

> OK, so I tried changing the makefiles to point to the more up-to-date
> linker, GNU ld 2.14.  The problem is that when using this linker, I
> get the following error:
> 
> /usr/add-on/exptools/gnu/bin/ld: cpuOcc.o: Relocations in generic ELF (EM: 20)
> cpuOcc.o: could not read symbols: File in wrong format
> 
> An objdump on the .o file results in:
> 
> cpuOcc.o:     file format elf32-big
> 
> I also tried using '-b elf32-big' in the ld options, but it didn't help.

The linker you are using was not configured for your target.

The fix is to use the right target name when you run configure.

Ian



More information about the Binutils mailing list