This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]