This is the mail archive of the binutils@sourceware.org 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] stop objcopy breaking group sections


On Thu, Sep 25, 2008 at 08:09:14PM +0930, Alan Modra wrote:
> The ELF spec says sh_info for SHT_GROUP is:
> 
> The symbol table index of an entry in the associated symbol table. The
> name of the specified symbol table entry provides a signature for the
> section group.
> 
> Since the section name is changed to the group name, it should be
> possible to use the section symbol as the id symbol.  Doesn't look
> like a "wrong symbol" or "broken" to me.  If ld is having trouble
> linking such a group, then we need to fix ld.

I vaguely recall that there's a hack involved in the names of section
symbols; BFD wants them to have the section name but we changed it not
to output the name unless it was necessary.  Could that be the
problem?  The spec does talk about the name of the symbol, not the
name of the corresponding section.

-- 
Daniel Jacobowitz
CodeSourcery


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