Re: [arm-gnu] Need clarification: Link time error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Need clarification: Link time error



Mark,
Thanks for your support,Your suggestion helped me to fix the issue.
In general can we use gcc instead ld by passing options using Wl, ?
Thanks,Rajanikanth
--- On Wed, 8/26/09, Mark Mitchell <mark@xxxxxxxxxxxxxxxx> wrote:

From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
Subject: Re: [arm-gnu] Need clarification: Link time error
To: "H.V Raj" <rajanikanthhv@xxxxxxxxx>
Cc: arm-gnu@xxxxxxxxxxxxxxxx
Date: Wednesday, August 26, 2009, 3:47 PM

H.V Raj wrote:

> test.so:(.text+0x185c): unresolvable R_ARM_MOVW_ABS_NC relocation
> against symbol `stdout@@GLIBC_2.4' <mailto:`stdout@@GLIBC_2.4'>

Are you compiling with -fpic or -fPIC?  If not, try that.

And, we recommend you link with "gcc -shared" rather than with "ld".

-- 
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713