Unify the behaviour of ld.bfd and ld.gold with respect to warning about unresolved...
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 2ed10465791c9c768d6f29725b55319664ac9803..2cf36f4c3e0a669e4fbf9112bf74c89f9146f7ec 100644 (file)
@@ -1,3 +1,117 @@
+2020-04-15  Fangrui Song <maskray@google.com>
+
+       PR binutils/24613
+       * coff-rs6000.c (xcoff_ppc_relocate_section): Change RM_GENERATE_ERROR
+       to RM_DIAGNOSE plus a check of warn_unresolved_syms.
+       * coff64-rs6000.c (xcoff_ppc_relocate_section): Likewise.
+       * elf-bfd.h (_bfd_elf_large_com_section): Likewise.
+       * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
+       * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
+       * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
+       * elf32-sh.c (sh_elf_relocate_section): Likewise.
+       * elf32-spu.c (spu_elf_relocate_section): Likewise.
+       * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
+       * elflink.c (elf_link_output_extsym): Likewise.
+       * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
+
+2020-04-15  Alan Modra  <amodra@gmail.com>
+
+       PR 25823
+       * peXXigen.c (_bfd_XXi_swap_sym_in <C_SECTION>): Don't use a
+       pointer into strings that may be freed for section name, always
+       allocate a new string.
+
+2020-04-14  Juan Manuel Guerrero  <juan.guerrero@gmx.de>
+            Jan W. Jagersma  <jwjagersma@gmail.com>
+
+       * coff-go32.c (COFF_GO32, IMAGE_SCN_LNK_NRELOC_OVFL)
+       (coff_SWAP_scnhdr_in, coff_SWAP_scnhdr_out): Define.
+       (_bfd_go32_swap_scnhdr_in, _bfd_go32_swap_scnhdr_out)
+       (_bfd_go32_mkobject): New functions.
+       * coff-stgo32.c (IMAGE_SCN_LNK_NRELOC_OVFL)
+       (coff_SWAP_scnhdr_in, coff_SWAP_scnhdr_out): Define.
+       (go32exe_mkobject): Call _bfd_go32_mkobject.
+       * coffcode.h (COFF_WITH_EXTENDED_RELOC_COUNTER): Define.
+       (coff_set_alignment_hook): Define function for COFF_GO32_EXE
+       and COFF_GO32.
+       (coff_write_relocs): Enable extended reloc counter code if
+       COFF_WITH_EXTENDED_RELOC_COUNTER is defined.  Test for obj_go32.
+       (coff_write_object_contents): Likewise.  Pad section headers
+       for COFF_GO32 and COFF_GO32EXE.  Use bfd_coff_swap_scnhdr_out
+       instead of coff_swap_scnhdr_out.
+       * cofflink.c (_bfd_coff_final_link): Test also for obj_go32 to
+       enable extended reloc counter.
+       * coffswap.h: (coff_swap_scnhdr_in, coff_swap_scnhdr_out):
+       Declare with ATTRIBUTE_UNUSED.
+       * libcoff-in.h: (struct coff_tdata): New field go32.
+       (obj_go32): Define.
+       * libcoff.h: Regenerate.
+
+2020-04-14  Fangrui Song  <maskray@google.com>
+
+       PR gas/25768
+       * elf.c (assign_section_numbers): Always set .stab sh_entsize to
+       12.
+
+2020-04-14  Stephen Casner  <casner@acm.org>
+
+       PR ld/25677
+       * pdp11.c: Add implementation of --imagic option.
+       (adjust_o_magic): Fix objcopy --extract-symbol test.
+       * libaout.h (enum aout_magic): Add i_magic.
+
+2020-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+           Nick Clifton  <nickc@redhat.com>
+
+       * elf32-sparc.c (sparc_final_write_processing): Fix whitespace.
+       <0>: Ignore.
+       <default>: Error rather than abort.
+
+2020-04-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/25767
+       * elf.c (_bfd_elf_fixup_group_sections): Remove zero-sized
+       relocation section from section group.
+
+2020-04-02  Jan W. Jagersma  <jwjagersma@gmail.com>
+
+       * bfdio.c (bfd_bread, bfd_tell, bfd_seek, bfd_mmap): Always add
+       bfd->origin to file offset.
+       * bfdwin.c (bfd_get_file_window): Likewise.
+       * bfd.c: Clarify the use of the bfd->origin field.
+       * bfd-in2.h: Regenerate.
+       * coff-i386.c: Don't include go32exe.h. Allow overriding
+       coff_write_object_contents via COFF_WRITE_CONTENTS.
+       * coff-stgo32.c (go32exe_cleanup, go32exe_mkobject)
+       (go32exe_write_object_contents): New functions.
+       (go32exe_temp_stub, go32exe_temp_stub_size): New static globals.
+       (COFF_WRITE_CONTENTS, GO32EXE_DEFAULT_STUB_SIZE): Define.
+       (create_go32_stub): Remove check for 2k size limit.  Read stub
+       from go32exe_temp_stub if present.
+       (go32_stubbed_coff_bfd_copy_private_bfd_data): Allocate and
+       copy variable-length stub.
+       (go32_check_format): Read stub to go32exe_temp_stub, set
+       origin, return go32exe_cleanup.
+       (adjust_filehdr_in_post, adjust_filehdr_out_pre)
+       (adjust_filehdr_out_post, adjust_scnhdr_in_post)
+       (adjust_scnhdr_out_pre, adjust_scnhdr_out_post)
+       (adjust_aux_in_post, adjust_aux_out_pre, adjust_aux_out_post):
+       Remove functions and their associated #defines.
+       * coffcode.h (coff_mkobject_hook): Remove stub copying code.
+       * libcoff-in.h: (struct coff_tdata): New field stub_size.
+       Rename field go32stub to stub.
+       * libcoff.h: Regenerate.
+       * coff-stgo32.c (go32_check_format): Rename to...
+       (go32exe_check_format): ...this.
+       (go32_stubbed_coff_bfd_copy_private_bfd_data): Rename to...
+       (go32exe_copy_private_bfd_data): ...this.
+       (stub_bytes): Rename to...
+       (go32exe_default_stub): ...this.
+       (create_go32_stub): Rename to...
+       (go32exe_create_stub): ...this.
+       * coff-stgo32.c (go32exe_copy_private_bfd_data): Avoid realloc
+       when possible.
+
 2020-04-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/25749
This page took 0.037507 seconds and 4 git commands to generate.