ELF: Check ELF_COMMON_DEF_P for common symbols
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index bb851c7a9fad3a6413edd8be465e681fb400e04e..a4664f82b6be483f9404aa43b02b1e4e2508fc52 100644 (file)
@@ -1,3 +1,116 @@
+2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/19579
+       PR ld/21306
+       * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
+       ELF_COMMON_DEF_P for common symbols.
+       * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
+       * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
+       * elflink.c (_bfd_elf_merge_symbol): Revert commits
+       202ac193bbbecc96a4978d1ac3d17148253f9b01 and
+       07492f668d2173da7a2bda3707ff0985e0f460b6.
+
+2017-04-07  Pedro Alves  <palves@redhat.com>
+
+       * opncls.c (bfd_get_debug_link_info): Rename to...
+       (bfd_get_debug_link_info_1): ... this.  Change type of second
+       parameter to void pointer.  Adjust.
+       (bfd_get_debug_link_info): Reimplement on top of
+       bfd_get_debug_link_info_1.
+       (separate_debug_file_exists, separate_alt_debug_file_exists):
+       Change type of second parameter to void pointer.  Adjust.
+       (get_func_type, check_func_type): Change type of second parameter
+       to void pointer.
+       (find_separate_debug_file): Add 'func_data' parameter.  Pass it to
+       the callback functions instead of passing the address of a local.
+       (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
+       find_separate_debug_file.
+       (get_alt_debug_link_info_shim): Change type of second parameter to
+       void pointer.  Adjust.
+       (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
+       find_separate_debug_file.
+       (get_build_id_name, bfd_boolean check_build_id_file): Change type
+       of second parameter to void pointer.  Adjust.
+       (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
+       pointer local to find_separate_debug_file.
+
+2017-04-07  Tristan Gingold  <gingold@gingold-Precision-7510>
+
+       * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
+       external symbols with a definition.
+       (_bfd_coff_gc_mark_extra_sections): Fix typo.
+
+2017-04-07  Alan Modra  <amodra@gmail.com>
+
+       * po/SRC-POTFILES.in: Regenerate.
+
+2017-04-05  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
+       reference counting.
+
+2017-04-02  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
+       numbers for DataDirectory entry indicies passed to
+       add_data_entry().
+
+2017-04-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c (get_program_header_size): Add a GNU_MBIND segment for
+       each GNU_MBIND section and align GNU_MBIND section to page size.
+       (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
+       segment for each GNU_MBIND section.
+       (_bfd_elf_init_private_section_data): Copy sh_info from input
+       for GNU_MBIND section.
+
+2017-04-03  Palmer Dabbelt  <palmer@dabbelt.com>
+
+       * elfnn-riscv.c (GP_NAME): Delete.
+       (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
+       (_bfd_riscv_relax_lui): Likewise.
+
+2017-04-04  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/21342
+       * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
+       dereference.
+       (bfd_elf_final_link): Only initialize the extended symbol index
+       section if there are extended symbol tables to list.
+
+2017-04-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
+       (BFD32_BACKENDS_CFILES): Add elf-properties.c.
+       * configure.ac (elf): Add elf-properties.lo.
+       * Makefile.in: Regenerated.
+       * configure: Likewise.
+       * elf-bfd.h (elf_property_kind): New.
+       (elf_property): Likewise.
+       (elf_property_list): Likewise.
+       (elf_properties): Likewise.
+       (_bfd_elf_parse_gnu_properties): Likewise.
+       (_bfd_elf_get_property): Likewise.
+       (_bfd_elf_link_setup_gnu_properties): Likewise.
+       (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
+       and setup_gnu_properties.
+       (elf_obj_tdata): Add properties.
+       * elf-properties.c: New file.
+       * elf32-i386.c (elf_i386_parse_gnu_properties): New.
+       (elf_i386_merge_gnu_properties): Likewise.
+       (elf_backend_parse_gnu_properties): Likewise.
+       (elf_backend_merge_gnu_properties): Likewise.
+       * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
+       (elf_x86_64_merge_gnu_properties): Likewise.
+       (elf_backend_parse_gnu_properties): Likewise.
+       (elf_backend_merge_gnu_properties): Likewise.
+       * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
+       (elf_backend_parse_gnu_properties): Likewise.
+       (elf_backend_setup_gnu_properties): Likewise.
+       (elfNN_bed): Add elf_backend_parse_gnu_properties,
+       elf_backend_merge_gnu_properties and
+       elf_backend_setup_gnu_properties.
+
 2017-03-30  Pip Cet  <pipcet@gmail.com>
 
        * elf32-wasm32.c: Add relocation code, two relocs.
This page took 0.025039 seconds and 4 git commands to generate.