diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-04-18 03:13:49 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-04-18 03:13:49 +0000 |
commit | 278d8f3760411958ca7d67c4d87128ae1b6f4a60 (patch) | |
tree | 037804ad55ddef511276042700b43e13c03d3749 /bfd/elf.c | |
parent | 20dbb49d3cd4e937732167e8ea281ad938513547 (diff) | |
download | gdb-278d8f3760411958ca7d67c4d87128ae1b6f4a60.zip gdb-278d8f3760411958ca7d67c4d87128ae1b6f4a60.tar.gz gdb-278d8f3760411958ca7d67c4d87128ae1b6f4a60.tar.bz2 |
2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
PR 855
* elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
created group data.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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; |