This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Better handle discarded definition (take 2)
On Mon, Jun 02, 2003 at 08:27:32AM -0700, H. J. Lu wrote:
> On Tue, Jun 03, 2003 at 12:53:22AM +0930, Alan Modra wrote:
> > 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.
>
> The problem is the symbol is not exactly undefined. I think
> undefined_symbol is misused here.
Well, depends on your point of view. I think discarded sections
should be treated as if they weren't even supplied to the linker
in the first place.
--
Alan Modra
IBM OzLabs - Linux Technology Centre