This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Help! Code bloat with ld 2.11.2 (but newer one doesn't work)
- From: John Blevin <blevin at lucent dot com>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: binutils at sources dot redhat dot com, drow at force dot org, "Blevin, John H" <blevin at lucent dot com>
- Date: Thu, 04 Mar 2004 16:13:16 -0500
- Subject: Re: Help! Code bloat with ld 2.11.2 (but newer one doesn't work)
- Organization: Lucent Technologies
- Original-cc: binutils at sources dot redhat dot com, drow at force dot org, "Blevin, John H" <blevin at lucent dot com>
- References: <40478BCC.5F162B3@lucent.com> <m3ad2wwf1o.fsf@gossamer.airs.com>
Ian,
The ld version I referred to, was one that already exists on the host.
It sounds like I might need to install ld in my local area, and configure
it for a PPC target. Correct?
Too bad it can't be configured via a command-line option... :)
Thanks,
- John
Ian Lance Taylor wrote:
>
> 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