This is the mail archive of the binutils@sourceware.org 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]

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


On Mon, Apr 30, 2007 at 05:51:36PM +0930, Alan Modra wrote:
> I'm not strongly opposed to the patch either, since someone wanting to
> link foreign object files can always turn off the error.

I think it should be a fatal error by default.  I was going to say
that we needed a documentation update to go with this patch, but
although the option is --no-warn-mismatch the documentation says:

 Normally ld will give an error if you try to link together input files
 that are mismatched for some reason, perhaps because they have been
 compiled for different processors or for different endiannesses.  This
 option tells ld that it should silently permit such possible errors.
 This option should only be used with care, in cases when you have
 taken some special action that ensures that the linker errors are
 inappropriate.

While we're on the subject of errors, it bugs me that the linker warns
and auto-selects an address if you don't provide _start or specify an
entry point.  How do you feel about making that fatal?

-- 
Daniel Jacobowitz
CodeSourcery


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