PATCH: Multiple sections with same name don't work

Alan Modra amodra@bigpond.net.au
Sat May 1 02:59:00 GMT 2004


On Sat, May 01, 2004 at 12:01:36PM +0930, Alan Modra wrote:
> On Fri, Apr 30, 2004 at 05:36:37PM -0700, H. J. Lu wrote:
> > bar.s:14: Error: can't resolve `.text' {.text section} - `.LFB359' {.text
> > section}
> 
> I expect you need to rewrite all the parts of gas dealing with section
> symbols.  :-(  The assumption is that global symbols have unique names,
> which is no longer true.

Actually, it is probably a mistake to try to support multiple sections
of the same name in gas.  For instance, if you have two .text sections,
how is gas supposed to evaluate ".long .text" ?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list