aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-11-27 19:03:27 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-11-27 19:03:27 +0000
commit163c1c309ebe75cf22b70610a5dc1f067fa9ee04 (patch)
treed6ce442e3813051e2ce8645fc5abb109a6e3aa09 /bfd/elflink.h
parent3bccec6316c203379d22e041ffe7b3d0da03a2a7 (diff)
downloadgdb-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.h3
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)