incongruency in architecture mismatch linker warnings/errors

Alan Modra
Tue Jan 21 02:31:00 GMT 2003

On Mon, Jan 20, 2003 at 12:09:25PM -0800, Doug Evans wrote:
> It's odd that if the architectures (or mach's) are incompatible during
> a relocatable link it's automatically an error whereas in a final link
> it's only a warning and then only if the user asks for it.
> Is there any reasoning behind this?

We might be able to use a "foreign" input file in a final link if the
generic linker support for that particular input is good enough.
For relocatable output, we'd need to translate relocs from one format
to another..

Alan Modra
IBM OzLabs - Linux Technology Centre

More information about the Binutils mailing list