http://sourceware.org/bugzilla/show_bug.cgi?id=14773
--- Comment #3 from Adam Sampson <ats-sourceware at offog dot org> 2012-11-01 09:47:28 UTC --- Thanks very much for your explanation -- I understand what ld's doing better now. Yes, sorry, I'm not saying that it's wrong to give an error -- I'm saying that the error message is unhelpful in terms of identifying the cause of the problem. >From my perspective, I've done everything necessary for libshared.so's reference to XFillRectangle to be resolved -- if I wasn't using libstatic.a, it'd work fine -- but ld is effectively indicating that the fault is with libshared.so. So I guess my wishlist item is for it to report all the places where an undefined reference has been seen, rather than just the first. "This doesn't happen if ld has already decided the library isn't needed" is a bit surprising, but it makes sense, since otherwise you wouldn't get an error in this case. Would it be worth mentioning this in the documentation for --as-needed? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils