From 7e4111adb2cc33e4770e634cd0039378e5b635e9 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 5 Apr 2005 02:47:18 +0000 Subject: [PATCH] 2005-04-04 H.J. Lu * elf.c (bfd_elf_set_group_contents): Ignore linker created group section. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 15cd069e09..39282d0d92 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 34529090f5..f1c5fdb178 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; -- 2.34.1