From 25f94347373b1b6f4bfc79eeb38e79d383195779 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 22 May 2017 07:41:16 -0700 Subject: [PATCH] x86-64: Use dynobj instead of htab->elf.dynobj * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use dynobj instead of htab->elf.dynobj. --- bfd/ChangeLog | 5 +++++ bfd/elf64-x86-64.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 38462fee6f5..d788a375cb2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-05-22 H.J. Lu + + * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use + dynobj instead of htab->elf.dynobj. + 2017-05-19 Maciej W. Rozycki * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 00cf70ad724..7beb78e0ab6 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -7245,8 +7245,7 @@ error_alignment: /* MPX PLT is supported only for non-NaCl target in 64-bit mode and is needed only for lazy binding. */ if (lazy_plt - && info->bndplt - && ABI_64_P (htab->elf.dynobj)) + && info->bndplt && ABI_64_P (dynobj)) { /* Create the second PLT for Intel MPX support. */ sec = bfd_make_section_anyway_with_flags (dynobj, -- 2.30.2