RFC: Remove sec->name and bfd_section_name

H. J. Lu hjl@lucon.org
Tue May 25 05:07:00 GMT 2004


On Tue, May 25, 2004 at 09:50:47AM +0930, Alan Modra wrote:
> On Mon, May 24, 2004 at 08:33:51AM -0700, H. J. Lu wrote:
> > We should use bfd_section_ident for the section identifier. I will
> > change bfd_section_ident to a target function later so that it will
> > support multiple sections with the same name.
> 
> I think this is heading in the wrong direction.  As far as possible, the
> bfd linker functions should be ignoring section names.  In particular,
> places that currently use a section name to infer linker behaviour
> controlled by a link script should be fixed, not hacked around.

It is for diagnostics. We will get error messages referring to .text
section, which aren't very useful with multiple sections with the
same name.


H.J.



More information about the Binutils mailing list