+2020-06-04 Stephen Casner <casner@acm.org>
+
+ Extend pdp11-aout symbol table format to accommodate .stab
+ symbols and implement correct handling of them.
+
+ * pdp11.c (pdp11_external_nlist): Repurposed e_unused to e_desc.
+ (N_STAB, is_stab): Needed new function is_stab to disambiguate
+ normal vs. .stab symbol table type values, replacing N_STAB mask.
+ (translate_from_native_sym_flags): Determine correct section for
+ different .stab types.
+ (translate_to_native_sym_flags): Leave .stab types intact.
+ (translate_symbol_table): Error if symbol indicates overlay;
+ store desc field from .stab symbols.
+ (write_syms): Output desc field with symbol.
+ (aout_link_check_ar_symbols): Skip .stab symbols.
+ (aout_link_add_symbols): Correctly distinguish .stab symbols.
+ (aout_link_write_other_symbol): Write 0 for desk and ovly fields.
+ (aout_link_write_symbols): Write 0 for desk and ovly fields;
+ correctly distinguish .stab symbols and select calculate their
+ section and value; and copy desc and ovly fields from input symbol
+ to output symbol.
+
+2020-06-04 Stephen Casner <casner@acm.org>
+
+ * aoutx.h (translate_symbol_table): Comment had external and
+ internal swapped.
+ * pdp11.c (translate_symbol_table): Likewise.
+
+2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-x86.h (elf_x86_link_hash_table): Remove target_id.
+ (is_x86_elf): Check elf.hash_table_id instead of target_id.
+ * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Updated.
+
+2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26080
+ * elf-m10300.c (mn10300_elf_relocate_section): Resolve relocation
+ in debug section against symbol defined in shared library to 0.
+ * elf32-i386.c (elf_i386_check_relocs): Remove SEC_ALLOC check.
+ * elf32-lm32.c (lm32_elf_check_relocs): Likewise.
+ * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
+ * elf32-nds32.c (nds32_elf_check_relocs): Likewise.
+ * elf32-nios2.c (nios2_elf32_check_relocs): Likewise.
+ * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
+ * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
+ * elf32-sh.c (sh_elf_check_relocs): Likewise.
+ * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
+ * elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
+ * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
+ * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
+ * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
+ * elf32-vax.c (elf_vax_check_relocs): Set non_got_ref for non-GOT
+ reference.
+ (elf_vax_adjust_dynamic_symbol): Generate a copy reloc only if
+ there is non-GOT reference.
+ * elflink.c (_bfd_elf_link_check_relocs): Skip non-loaded,
+ non-alloced sections.
+
+2020-06-03 Stephen Casner <casner@acm.org>
+
+ Copy several years of fixes from bfd/aoutx.h to bfd/pdp11.c.
+
+ * pdp11.c (some_aout_object_p): 4c1534c7a2a - Don't set EXEC_P for
+ files with relocs.
+ (aout_get_external_symbols): 6b8f0fd579d - Return if count is zero.
+ 0301ce1486b PR 22306 - Handle stringsize of zero, and error for any
+ other size that doesn't qcover the header word.
+ bf82069dce1 PR 23056 - Allocate an extra byte at the end of the
+ string table, and zero it.
+ (translate_symbol_table): 0d329c0a83a PR 22887 - Print an error
+ message and set bfd_error on finding an invalid name string offset.
+ (add_to_stringtab): INLINE -> inline
+ (pdp11_aout_swap_reloc_in): 116acb2c268 PR 22887 - Correct r_index
+ bound check.
+ (squirt_out_relocs): e2996cc315d PR 20921 - Check for and report
+ any relocs that could not be recognised.
+ 92744f05809 PR 20929 - Check for relocs without an associated symbol.
+ (find_nearest_line): 808346fcfcf PR 23055 - Check that the symbol
+ name exists and is long enough, before attempting to see if it is
+ for a .o file.
+ c3864421222 - Correct case for N_SO being the last symbol.
+ 50455f1ab29 PR 20891 - Handle the case where the main file name
+ and the directory name are both empty.
+ e82ab856bb4 PR 20892 - Handle the case where function name is empty.
+ (aout_link_add_symbols): e517df3dbf7 PR 19629 - Check for out of
+ range string table offsets.
+ 531336e3a0b PR 20909 - Fix off-by-one error in check for an
+ illegal string offset.
+ (aout_link_includes_newfunc): Add comment.
+ (pdp11_aout_link_input_section): ad756e3f9e6 - Return with an error
+ on unexpected relocation type rather than ASSERT.
+
+2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26066
+ * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Call
+ _bfd_elf_maybe_set_textrel to set DF_TEXTREL.
+
+2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26066
+ * elf32-nios2.c (nios2_elf32_check_relocs): Skip non-loaded,
+ non-alloced sections.
+
+2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-frv.c (elf32_frv_relocate_section): Don't generate
+ dynamic relocations for non SEC_ALLOC sections.
+
2020-06-03 Gunther Nikl <gnikl@justmail.de>
* aout64.c (BMAGIC, QMAGIC): Do not define.
2020-06-03 Alan Modra <amodra@gmail.com>
- PR 26029
+ PR 26069
* elf.c (_bfd_elf_close_and_cleanup): Free elf_shstrtab for
core files as well as objects.