From: H.J. Lu Date: Tue, 27 Nov 2001 19:03:27 +0000 (+0000) Subject: 2001-11-27 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=163c1c309ebe75cf22b70610a5dc1f067fa9ee04;p=binutils-gdb.git 2001-11-27 H.J. Lu * elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't ELF. --- 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 + + * 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)