diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-11-27 19:03:27 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-11-27 19:03:27 +0000 |
commit | 163c1c309ebe75cf22b70610a5dc1f067fa9ee04 (patch) | |
tree | d6ce442e3813051e2ce8645fc5abb109a6e3aa09 /bfd/elflink.h | |
parent | 3bccec6316c203379d22e041ffe7b3d0da03a2a7 (diff) | |
download | gdb-163c1c309ebe75cf22b70610a5dc1f067fa9ee04.zip gdb-163c1c309ebe75cf22b70610a5dc1f067fa9ee04.tar.gz gdb-163c1c309ebe75cf22b70610a5dc1f067fa9ee04.tar.bz2 |
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/elflink.h')
-rw-r--r-- | bfd/elflink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index 26b28f2..c01e03d 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) |