This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Multiple sections with same name don't work
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at gcc dot gnu dot org>, binutils at sources dot redhat dot com
- Date: Sat, 1 May 2004 12:29:13 +0930
- Subject: Re: PATCH: Multiple sections with same name don't work
- References: <20040430221244.GA17029@lucon.org> <20040430230129.GA17907@lucon.org> <20040501003636.GA19527@lucon.org> <20040501023136.GQ2565@bubble.modra.org>
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