This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Handle section group for ld -r
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at gcc dot gnu dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 30 Apr 2004 21:56:30 +0930
- Subject: Re: PATCH: Handle section group for ld -r
- References: <20040429205047.GA24657@lucon.org>
On Thu, Apr 29, 2004 at 01:50:47PM -0700, H. J. Lu wrote:
> This patch fixes section group for ld -r.
I doubt it. :) ld -r and sections groups are difficult to handle
correctly. The problem is what to do with sections that have the same
name as sections belonging to the group. Normally, ld -r would merge
such sections, leading to other sections incorrectly becoming part of
the group. We need to stop that happening, which could be done easily
enough by modifying unique_section_p. I'll take a look at that.
Meanwhile, I guess your patch is OK.
> * elf.c (bfd_section_from_shdr): Maintain the section order in
> a section group.
> (special_sections): Add ".note.GNU-stack".
> (elf_fake_sections): Handle section group for relocatable
> link..
--
Alan Modra
IBM OzLabs - Linux Technology Centre