[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a problem with ld options
From: |
Alan Modra |
Subject: |
Re: a problem with ld options |
Date: |
Tue, 26 Oct 2004 09:24:12 +0930 |
User-agent: |
Mutt/1.4i |
On Mon, Oct 25, 2004 at 12:41:52PM +0100, Nick Clifton wrote:
> Hi Chenyu,
>
> > I'm encoutering a problem with ld.
> > First, I compile and link my program as follows:
> > gcc -Wl,-r -Wl,-d -static try.c -o try.o
> > ld -q try.o -o try.out
>
> I am unable to complete this last step (running ld with the -q option).
> It always fails for me with the message:
>
> undefined reference to `printf'
I used the try.o provided in PR 465, and since I had mips-linux
binutils available, ran "mips-linux/ld/ld-new -EL -q try.o"
--
Alan Modra
IBM OzLabs - Linux Technology Centre