Handle weak alias for PIE with copy reloc
[platform/upstream/binutils.git] / bfd / ChangeLog
index 3942b4e..0ebd6d7 100644 (file)
@@ -1,3 +1,25 @@
+2014-12-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/17689
+       * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add needs_copy.
+       Change has_bnd_reloc to bit field.
+       (elf_x86_64_link_hash_newfunc): Initialize needs_copy and
+       has_bnd_reloc to 0.
+       (elf_x86_64_check_relocs): Set has_bnd_reloc to 1 instead
+       of TRUE.
+       (elf_x86_64_adjust_dynamic_symbol): Copy needs_copy from the
+       real definition to a weak symbol.
+       (elf_x86_64_allocate_dynrelocs): Also check needs_copy of a
+       weak symbol for PIE when discarding space for relocs against
+       symbols which turn out to need copy relocs.
+       (elf_x86_64_relocate_section): Also check needs_copy of a
+       weak symbol for PIE with copy reloc.
+
+2014-12-12  Alan Modra  <amodra@gmail.com>
+
+       PR 15228
+       * elflink.c (_bfd_elf_adjust_dynamic_copy): Call bfd_set_error.
+
 2014-12-10  Alan Modra  <amodra@gmail.com>
 
        * dwarf2.c (read_address): Check bfd_target_elf_flavour before