Suppressing unresolved symbol errors when a library couldn't be found

Alan Modra amodra@gmail.com
Fri Jun 27 00:57:00 GMT 2014


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



More information about the Binutils mailing list