From: H.J. Lu Date: Tue, 5 Apr 2005 02:47:18 +0000 (+0000) Subject: 2005-04-04 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e4111adb2cc33e4770e634cd0039378e5b635e9;p=binutils-gdb.git 2005-04-04 H.J. Lu * elf.c (bfd_elf_set_group_contents): Ignore linker created group section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 15cd069e096..39282d0d92f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-04-04 H.J. Lu + + * elf.c (bfd_elf_set_group_contents): Ignore linker created + group section. + 2005-04-04 H.J. Lu * elf-bfd.h (elf_section_data): Use (sec) instead of sec. diff --git a/bfd/elf.c b/bfd/elf.c index 34529090f5e..f1c5fdb1781 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -2635,7 +2635,9 @@ bfd_elf_set_group_contents (bfd *abfd, asection *sec, void *failedptrarg) struct bfd_link_order *l; bfd_boolean gas; - if (elf_section_data (sec)->this_hdr.sh_type != SHT_GROUP + /* Ignore linker created group section. See elfNN_ia64_object_p in + elfxx-ia64.c. */ + if (((sec->flags & (SEC_GROUP | SEC_LINKER_CREATED)) != SEC_GROUP) || *failedptr) return;