[patch] Put SHT_GROUP sections first.

Paul Brook paul@codesourcery.com
Wed Nov 24 17:03:00 GMT 2004


ELF sections of type SHT_GROUP must be placed in the section header table 
before sections that are members of the group they describe.

It appears that when we assign section indices elf_sec_group has not yet been 
initialized, so I just put SHT_GROUP sections before all other sections.

Tested on i686-linux --enable-targets=all.
Ok?

Paul

2004-11-24  Paul Brook  <paul@codesourcery.com>

bfd/
 * elf.c (assign_section_numbers): Number SHT_GROUP sections first.
gas/testsuite/
 * gas/elf/group0a.d: Adjust expected secion ordering.
 * gas/elf/group1a.d: Ditto.
 * gas/elf/section4.d: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.group_shdr
Type: text/x-diff
Size: 3318 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20041124/8728c08a/attachment.bin>


More information about the Binutils mailing list