This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Suppressing unresolved symbol errors when a library couldn't be found
- From: Alan Modra <amodra at gmail dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Binutils <binutils at sourceware dot org>, "H.J. Lu" <hjl dot tools at gmail dot com>, Nick Clifton <nickc at redhat dot com>, Ian Lance Taylor <iant at google dot com>
- Date: Fri, 27 Jun 2014 10:27:31 +0930
- Subject: Re: Suppressing unresolved symbol errors when a library couldn't be found
- Authentication-results: sourceware.org; auth=none
- References: <CAHACq4r655AYmAom_G6dQwrggZA5fXiEHXezDa4XPLm=Jv3rtA at mail dot gmail dot com>
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