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


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


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