PATCH: Multiple sections with same name don't work

H. J. Lu hjl@lucon.org
Sat May 1 03:43:00 GMT 2004


On Sat, May 01, 2004 at 12:29:13PM +0930, Alan Modra wrote:
> 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" ?
> 

Will that be generated by compiler? If not, we can issue an error.


H.J.



More information about the Binutils mailing list