Confusing behaviour from gcc and ld with --as-needed
Mike Hearn
mike@navi.cx
Mon Apr 4 22:21:00 GMT 2005
On Mon, 2005-04-04 at 15:42 -0400, Daniel Jacobowitz wrote:
> This is not what's supposed to happen. Are there undefined references?
> There was no link error in your first mail.
No, it compiles and links OK but at runtime the DT_NEEDED entries are
missing so LD_BIND_NOW=1 ./vfolder-magic gives undefined reference
errors.
> What version of ld are you using? Have you tried a more recent one?
GNU ld version 2.15.92.0.2 20040927
This is from Fedora Core 3 so it's pretty recent.
I haven't tried a newer one. Do you recommend trying the last release or
CVS?
thanks -mike
More information about the Binutils
mailing list