PATCH: Better handle discarded definition (take 2)

Alan Modra amodra@bigpond.net.au
Mon Jun 2 15:23:00 GMT 2003


On Mon, Jun 02, 2003 at 08:01:02AM -0700, H. J. Lu wrote:
> The current handling of discarded definitions is not very informative.
> It is very easy to tell what the problem really is. This patch tries
> to improve it.

> -			      if (! ((*finfo->info->callbacks->undefined_symbol)
[snip]
> +			    finfo->info->callbacks->error_handler

I like the idea of giving better error messages, but is it correct in
this case to use error_handler instead of undefined_symbol?  Someone
might be using bfd with their own undefined_symbol handler.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list