[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binutils
Subject:    Re: PATCH: Handle section group for ld -r
From:       Alan Modra <amodra () bigpond ! net ! au>
Date:       2004-04-30 12:38:30
Message-ID: 20040430122630.GL2565 () bubble ! modra ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic