x86: Check for valid PLT section size
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 28 Aug 2017 18:25:58 +0000 (11:25 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 28 Aug 2017 18:25:58 +0000 (11:25 -0700)
commit90efb6422939ca031804266fba669f77c22a274a
treec1d882c2427b52a20c05e5295b6714d172c05e52
parentcefdd1cd64f3b67aba1b219547b8f895c22d48ed
x86: Check for valid PLT section size

Update x86 get_synthetic_symtab to check for valid PLT section size
before examining PLT section contents.

PR binutils/22018
* elf32-i386.c (elf_i386_get_synthetic_symtab): Check for valid
PLT section size.
* elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c