[PATCH] ld/ldlang.c: fatal error on architecture mismatch

Ian Lance Taylor iant@google.com
Fri May 4 15:16:00 GMT 2007


Nick Clifton <nickc@redhat.com> writes:

>    2. Change the linker so that if the script specifies an ENTRY symbol
>       and that symbol is not defined then an error occurs.  Presumably
>       we would also provide a new command line option to change this
>       error back to a warning for compatibility with the old behaviour.
>       (The user of the linker may not have the option of fixing the
>       linker script, so without this new option they would be stuck).

OK, I said I wouldn't reply any more, but....

A new command line option doesn't seem helpful.  They can use -e 0 to
avoid the error.

> I can see the benefits of approach 2 but also the hassle it might
> cause for already existing projects.  Maybe the default behaviour
> could be controlled by a configure time option, so that toolchain
> builders could choose whether the linker will default to generating an
> error or a warning and there could be a command line switch to
> override this default ?

Please no new configure option.

Ian



More information about the Binutils mailing list