This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
should 'ld -u sym' cause an error if sym not present?
- From: cgd at broadcom dot com
- To: binutils at sources dot redhat dot com
- Date: 24 May 2004 21:55:57 -0700
- Subject: should 'ld -u sym' cause an error if sym not present?
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