]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/ChangeLog
x86: Check plt_got before using .plt.got
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Apr 2017 14:26:45 +0000 (07:26 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Apr 2017 14:26:45 +0000 (07:26 -0700)
commit750eaa47f10f48d19aacbec74ab6867da0164677
tree791959bf4f4aea484db4e169a1f57ba9f590a310
parent4621115fe529869e938dca605bb90190ea52316a
x86: Check plt_got before using .plt.got

Since the GOT procedure linkage table is supported only if plt_got
isn't NULL, we need to check plt_got before using it.

* elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got
before using .plt.got.
* elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c