PR ld/21334: Always call `_bfd_elf_link_renumber_dynsyms' if required
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 7a389b11e55b19205e9d12104ee0f1574ae95ef8..c75897c2558edecb089d6a7057dccad42afe978e 100644 (file)
@@ -1,3 +1,80 @@
+2017-04-26  Maciej W. Rozycki  <macro@imgtec.com>
+
+       PR ld/21334
+       * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms'
+       member.
+       * elfxx-target.h [!elf_backend_always_renumber_dynsyms]
+       (elf_backend_always_renumber_dynsyms): Define.
+       (elfNN_bed): Initialize `always_renumber_dynsyms' member.
+       * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define.
+       * elflink.c (bfd_elf_size_dynamic_sections): Also call
+       `_bfd_elf_link_renumber_dynsyms' if the backend has requested
+       it.
+       (bfd_elf_size_dynsym_hash_dynstr): Likewise.
+
+2017-04-26  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * elflink.c (bfd_elf_size_dynamic_sections): Only call
+       `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic
+       sections have been created.
+
+2017-04-26  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/21431
+       * compress.c (bfd_init_section_compress_status): Check the return
+       value from bfd_malloc.
+
+2017-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
+       no_finish_dynamic_symbol.
+       (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to
+       0.
+       (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined
+       weak symbol, don't make it dynamic.
+       (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC,
+       set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE
+       relocation for GOT reference.
+       (elf_x86_64_finish_dynamic_symbol): Abort if
+       no_finish_dynamic_symbol isn't 0.
+
+2017-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/21402
+       * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't
+       undefined weak symbol, don't make it dynamic.
+       (elf_i386_relocate_section): If a symbol isn't dynamic in PIC,
+       set no_finish_dynamic_symbol and generate R_386_RELATIVE
+       relocation for R_386_GOT32.
+
+2017-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/21425
+       * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.
+
+2017-04-23  Alan Modra  <amodra@gmail.com>
+
+       PR 21414
+       * section.c (GLOBAL_SYM_INIT): Make available in bfd.h.
+       * elf.c (lcomm_sym): New.
+       (_bfd_elf_large_com_section): Use lcomm_sym section symbol.
+       * bfd-in2.h: Regenerate.
+
+2017-04-23  Alan Modra  <amodra@gmail.com>
+
+       PR 21412
+       * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change
+       parameters and comment.
+       (_bfd_elf_get_reloc_section): Delete.
+       (_bfd_elf_plt_get_reloc_section): Declare.
+       * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section):
+       New functions.  Don't blindly skip over assumed .rel/.rela prefix.
+       Extracted from..
+       (_bfd_elf_get_reloc_section): ..here.  Delete.
+       (assign_section_numbers): Call elf_get_reloc_section.
+       * elf64-ppc.c (elf_backend_get_reloc_section): Define.
+       * elfxx-target.h (elf_backend_get_reloc_section): Update.
+
 2017-04-23  Alan Modra  <amodra@gmail.com>
 
        PR 21409
This page took 0.025458 seconds and 4 git commands to generate.