summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2001-11-27 19:03:27 +0000
committerH.J. Lu <hjl@lucon.org>2001-11-27 19:03:27 +0000
commit573b86df2f49b2d62c9d4707f76291b15dbd1f6a (patch)
tree7d8ad2e498ee2a13ea0f0cb6a5b8cc26a878a839 /bfd
parent4f8a5ea5df89e7785f9229c93dba30beb7ac2a1b (diff)
downloadgdb-573b86df2f49b2d62c9d4707f76291b15dbd1f6a.tar.gz
2001-11-27 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't ELF.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b875d200258..9a4c5167277 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-27 H.J. Lu <hjl@gnu.org>
+
+ * elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
+ ELF.
+
Mon Nov 26 12:33:44 2001 Jeffrey A Law (law@cygnus.com)
* stabs.c (_bfd_discard_section_stabs): Use PARAMS in function
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 26b28f2e53d..c01e03db0ba 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -7861,6 +7861,9 @@ elf_bfd_discard_info (info)
return false;
for (abfd = info->input_bfds; abfd != NULL; abfd = abfd->link_next)
{
+ if (bfd_get_flavour (abfd) != bfd_target_elf_flavour)
+ continue;
+
bed = get_elf_backend_data (abfd);
if ((abfd->flags & DYNAMIC) != 0)