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 Tue, Jun 03, 2003 at 01:12:20AM +0930, Alan Modra wrote:
> 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.
But it doesn't help user very much. When a user does "nm/objdump",
he/she will see a definition:
http://sources.redhat.com/ml/binutils/2003-05/msg00807.html
I don't think anyone wants to spend time on it.
H.J.