should 'ld -u sym' cause an error if sym not present?

cgd@broadcom.com cgd@broadcom.com
Tue May 25 06:31:00 GMT 2004


so, i was just messing around with ld -u, and noticed that it doesn't
seem to cause an error of the undefined symbol isn't available (even
if doing a final link, in an environment w/o shlibs -- i know those
things are some reasonable variables for generating undefined
symbols).

Should it?  I'd think so, given that the undefined symbol was
explicitly requested.

(i was messing with it to pull in code from a library, that has a
constructor to be run at startup.  obviously, if one messes up in that
case, one unexpectedly doesn't have one's constructor run, with
... possibly interesting results.)


thoughts/comments appreciated...


chris



More information about the Binutils mailing list