This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Handle section group for ld -r


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]