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: Suppressing unresolved symbol errors when a library couldn't be found


On Thu, Jun 26, 2014 at 01:36:48PM -0700, Cary Coutant wrote:
> I've received a request for a change to gold that would suppress the
> hundreds of useless unresolved symbol errors that follow an error for
> a missing library (as all the unresolved symbols would have been
> resolved by the missing library).
> 
> It looks like Gnu ld works like this already -- the link terminates
> before printing any unresolved symbol errors. (But if there are
> multiple files that can't be found, it does print them all before
> exiting.)
> 
> Any objections to changing gold so that the unresolved symbol errors
> don't get printed? Does Gnu simply exit before getting that far, or
> does it suppress the unresolved symbol errors?

Gnu ld exits.  ldlang.c:open_input_bfds():

  /* Exit if any of the files were missing.  */
  if (input_flags.missing_file)
    einfo ("%F");
}

-- 
Alan Modra
Australia Development Lab, IBM


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