should 'ld -u sym' cause an error if sym not present?
Nick Clifton
nickc@redhat.com
Thu May 27 07:42:00 GMT 2004
Hi Chris,
>>I think that it should - but I am worried that if we change this
>>behaviour we will break build environments were a whole selection of
>>undefined symbols are supplied to the linker when only a few of them
>>are relevant to any particular link.
> Are there lots of those, where it's done intentionally?
Actually I do not know of any, but it seemed to be a possible scenario.
> There certainly *could* be, but i've only ever done it
> unintentionally. 8-) I think it's more reasonable to do that with
> ldscript EXTERN directives than with command line -u's.
That would work too.
Cheers
Nick
More information about the Binutils
mailing list