aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-04-05 02:47:18 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-04-05 02:47:18 +0000
commit7e4111adb2cc33e4770e634cd0039378e5b635e9 (patch)
tree37981cea9078443c90396308a194301b17cace05 /bfd
parent87a89b235f42490b318fc54c3fde42f030325366 (diff)
downloadgdb-7e4111adb2cc33e4770e634cd0039378e5b635e9.zip
gdb-7e4111adb2cc33e4770e634cd0039378e5b635e9.tar.gz
gdb-7e4111adb2cc33e4770e634cd0039378e5b635e9.tar.bz2
2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (bfd_elf_set_group_contents): Ignore linker created group section.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 15cd069..39282d0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
+ * elf.c (bfd_elf_set_group_contents): Ignore linker created
+ group section.
+
+2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
+
* elf-bfd.h (elf_section_data): Use (sec) instead of sec.
2005-04-03 Fred Fish <fnf@specifixinc.com>
diff --git a/bfd/elf.c b/bfd/elf.c
index 3452909..f1c5fdb 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;