This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] SEGV whilst placing sections
On Wed, Jun 21, 2006 at 12:34:38AM +0930, Alan Modra wrote:
> On Tue, Jun 20, 2006 at 03:08:52PM +0100, Mark Shinwell wrote:
> > In this case, the "after" parameter to lang_insert_orphan () corresponds
> > to the .rodata section, the last in the linked list of "asection"s.
> > The upshot is that place->section points at the "next" entry of the final
> > section in the list, .rodata. This "next" pointer is NULL, so "as" ends up
> > NULL, and we fault when "as->prev" is computed.
>
> > + if (!as)
> > + {
> > + /* Put the section at the end of the list. */
>
> Isn't the section already at the end of the list in this case?
I'm not sure I really followed this, but I think the answer is no. The
.rodata section is at the end of list, but that's not snew; snew is
.ARM.extab instead.
--
Daniel Jacobowitz
CodeSourcery