aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-01-06 16:46:36 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-01-06 16:46:36 -0800
commit6f25f22356dcf9ddf6b375c8e967486f10855dfd (patch)
tree04e20bc15a1f9f4effbb5982821183ad666030d7 /bfd/elf32-i386.c
parent7b496d07dfbb696ea597d3f3ec3a3dfc0646cb86 (diff)
downloadgdb-6f25f22356dcf9ddf6b375c8e967486f10855dfd.zip
gdb-6f25f22356dcf9ddf6b375c8e967486f10855dfd.tar.gz
gdb-6f25f22356dcf9ddf6b375c8e967486f10855dfd.tar.bz2
Skip unknown relocation
PR binutils/17512 * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation. * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index cf072a3..a6c8faa 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -5194,9 +5194,9 @@ bad_return:
{
long reloc_index;
- /* PR 17512: file: bc9d6cf5. */
+ /* Skip unknown relocation. PR 17512: file: bc9d6cf5. */
if (p->howto == NULL)
- goto bad_return;
+ continue;
if (p->howto->type != R_386_JUMP_SLOT
&& p->howto->type != R_386_IRELATIVE)