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.
This commit is contained in:
H.J. Lu
2015-01-06 16:46:36 -08:00
parent 7b496d07df
commit 6f25f22356
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2015-01-06 H.J. Lu <hongjiu.lu@intel.com>
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.
2015-01-06 Nick Clifton <nickc@redhat.com>
PR binutils/17512

View File

@ -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)

View File

@ -5559,8 +5559,9 @@ bad_return:
{
long reloc_index;
/* Skip unknown relocation. */
if (p->howto == NULL)
goto bad_return;
continue;
if (p->howto->type != R_X86_64_JUMP_SLOT
&& p->howto->type != R_X86_64_IRELATIVE)