diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-11-20 00:54:51 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-11-20 00:54:51 +0000 |
commit | 45e9217a8f07fa3e927823eb095cc6fe94ca2f69 (patch) | |
tree | b8c529fa44ceb9196352713407c278504277544a /bfd/elflink.h | |
parent | ee396359a523f3a40964ae3e8d547f12ea78f499 (diff) | |
download | gdb-45e9217a8f07fa3e927823eb095cc6fe94ca2f69.zip gdb-45e9217a8f07fa3e927823eb095cc6fe94ca2f69.tar.gz gdb-45e9217a8f07fa3e927823eb095cc6fe94ca2f69.tar.bz2 |
2001-11-19 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_input_bfd): Assert r_symndx != 0 when
discarding relocations.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index 431d17d..6b06bd0 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -6328,6 +6328,7 @@ elf_link_input_bfd (finfo, input_bfd) _("warning: relocation against removed section; zeroing"), NULL, input_bfd, o, rel->r_offset); #endif + BFD_ASSERT (r_symndx != 0); memset (rel, 0, sizeof (*rel)); } else @@ -6359,6 +6360,7 @@ elf_link_input_bfd (finfo, input_bfd) _("warning: relocation against removed section"), NULL, input_bfd, o, rel->r_offset); #endif + BFD_ASSERT (r_symndx != 0); rel->r_info = ELF_R_INFO (0, ELF_R_TYPE (rel->r_info)); rel->r_addend = 0; |