2001-11-27 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Nov 2001 19:03:27 +0000 (19:03 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Nov 2001 19:03:27 +0000 (19:03 +0000)
* elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
ELF.

bfd/ChangeLog
bfd/elflink.h

index b875d2002582aac27e31bf3094c5d6e1ce6265bb..9a4c51672775984587b3f43573fe3e08821cebad 100644 (file)
@@ -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
index 26b28f2e53d1fb5a2197232c9083d38af5a37046..c01e03db0baad2c1ea419c28e06952d62923e014 100644 (file)
@@ -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)