Check SEC_ALLOC before allocating dynamic relocation
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 16 Jun 2016 01:42:56 +0000 (18:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 16 Jun 2016 01:42:56 +0000 (18:42 -0700)
commit4c23f2ffa8fbd467bca51956130a1f30cfe34371
tree1eaaf047843ab31401b50124d66d4c24f6583e60
parent77b1142d4e709cb12a460bdfad6f109d67260457
Check SEC_ALLOC before allocating dynamic relocation

* elf32-i386.c (elf_i386_check_relocs): Check SEC_ALLOC before
allocating dynamic relocation.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c