From 13f422778ff5307dad1f66d25a1d211bb8f76a8b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 24 Feb 2016 05:42:27 -0800 Subject: Set plt_got.offset to (bfd_vma) -1 Since plt_got.offset may be updated in x86 allocate_dynrelocs, set plt_got.offset to (bfd_vma) -1 when setting needs_plt to 0. * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset to (bfd_vma) -1 when setting needs_plt to 0. * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. --- bfd/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bfd/ChangeLog') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0ed70b4..e48f76b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2016-02-24 H.J. Lu + + * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset + to (bfd_vma) -1 when setting needs_plt to 0. + * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. + 2016-02-23 H.J. Lu * elflink.c (bfd_elf_record_link_assignment): Check for shared -- cgit v1.1