This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] bfd: support section groups with preceding SHF_GROUP sections
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 06 Jun 2017 17:23:25 -0400
- Subject: [binutils-gdb] bfd: support section groups with preceding SHF_GROUP sections
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 78e8a2ff5f01799874be41fdc919d34c670496c6 ***
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Branch: master
Commit: 78e8a2ff5f01799874be41fdc919d34c670496c6
bfd: support section groups with preceding SHF_GROUP sections
GAS always places section groups (SHT_GROUP) before the rest of the
sections in the output file. However, other assemblers may place
section groups after the group members.
This patch fixes handlign such situations, and removes some duplicated
logic.
bfd/ChangeLog:
2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
* elf.c (setup_group): Make sure BFD sections are created for all
group sections in the input file when processing SHF_GROUP
sections.
(bfd_section_from_shdr): Avoid duplicating logic already
implemented in `setup_group'.