This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Confusing behaviour from gcc and ld with --as-needed
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