This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ld/ldlang.c: fatal error on architecture mismatch
On Thu, May 03, 2007 at 04:07:19PM +0100, Richard Sandiford wrote:
> Right. I think that's really the situation that motivated
> Dan's original comment. The default linker scripts are based
> on a particular entry point (and particular sections related
> to it). If you accidentally use them instead of the linker
> script for your board, or forget to use an appropriate crt0.o
> file, the worst you get is a warning.
I think it's a pretty important warning too. For a favorite problem
case, try --gc-sections...
Would anyone be more amenable to making it an error with an entry in
NEWS or in the manual describing how to build an image without an
entry point? Someone else will have to write it; I never do that.
--
Daniel Jacobowitz
CodeSourcery