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 | |
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')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b875d20..9a4c516 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 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) |