From: H.J. Lu Date: Mon, 18 Apr 2005 03:13:49 +0000 (+0000) Subject: 2005-04-17 H.J. Lu X-Git-Tag: msnyder-tracepoint-checkpoint-branchpoint~548 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=278d8f3760411958ca7d67c4d87128ae1b6f4a60;p=external%2Fbinutils.git 2005-04-17 H.J. Lu PR 855 * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker created group data. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a44e8f2..9b20c92 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,12 @@ 2005-04-17 H.J. Lu PR 855 + * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker + created group data. + +2005-04-17 H.J. Lu + + PR 855 * elf.c (setup_group): Properly handle zero group count. 2005-04-17 Mark Kettenis diff --git a/bfd/elf.c b/bfd/elf.c index 5f68112..1434678 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -5519,9 +5519,14 @@ _bfd_elf_copy_private_section_data (bfd *ibfd, /* Set things up for objcopy. The output SHT_GROUP section will have its elf_next_in_group pointing back to the input group - members. */ - elf_next_in_group (osec) = elf_next_in_group (isec); - elf_group_name (osec) = elf_group_name (isec); + members. Ignore linker created group section. See + elfNN_ia64_object_p in elfxx-ia64.c. */ + if (elf_sec_group (isec) == NULL + || (elf_sec_group (isec)->flags & SEC_LINKER_CREATED) == 0) + { + elf_next_in_group (osec) = elf_next_in_group (isec); + elf_group_name (osec) = elf_group_name (isec); + } osec->use_rela_p = isec->use_rela_p;