[PATCH] ld/ldlang.c: fatal error on architecture mismatch
Richard Sandiford
richard@codesourcery.com
Fri May 4 08:41:00 GMT 2007
Richard Sandiford <richard@codesourcery.com> writes:
> It sounds like you're talking about the default entry point that's
> compiled into the linker itself. I agree that if the linker script
> has no ENTRY point, the warning about not defining the compiled-in
> symbol should remain a warning.
Sorry, I misremembered how this worked. We don't even warn in
that case:
if (entry_symbol.name == NULL)
{
/* No entry has been specified. Look for the default entry, but
don't warn if we don't find it. */
entry_symbol.name = entry_symbol_default;
warn = FALSE;
}
In other words, if you use a custom linker script with no ENTRY,
you already (silently) get an entry point of 0. Does that make
the warning->error change OK with you?
Richard
More information about the Binutils
mailing list