PR27719, lang_mark_undefineds trashes memory
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 0be65fc38866d82f91169373ac4e364bf6e44935..aad02a2086af20bcd11ea8cb58b52663284d2d29 100644 (file)
@@ -1,3 +1,170 @@
+2021-04-12  Alan Modra  <amodra@gmail.com>
+
+       PR 27719
+       * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
+       the symbol hash table is the correct type before accessing
+       elf_link_hash_entry symbols.
+       * plugin.c (is_visible_from_outside): Likewise.
+       * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
+       * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
+
+2021-04-09  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
+       * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
+       * testsuite/ld-powerpc/notoc2.d: Likewise.
+       * testsuite/ld-powerpc/notoc3.d: Likewise.
+       * testsuite/ld-powerpc/pcrelopt.d: Likewise.
+       * testsuite/ld-powerpc/startstop.d: Likewise.
+       * testsuite/ld-powerpc/tlsget.d: Likewise.
+       * testsuite/ld-powerpc/tlsget2.d: Likewise.
+       * testsuite/ld-powerpc/tlsld.d: Likewise.
+       * testsuite/ld-powerpc/weak1.d: Likewise.
+       * testsuite/ld-powerpc/weak1so.d: Likewise.
+
+2021-04-06  Jan Beulich  <jbeulich@suse.com>
+
+       * pe-dll.c (generate_reloc): Bail immediately when .reloc is
+       being discarded. Warn when relocated entry is above .reloc.
+
+2021-04-05  Alan Modra  <amodra@gmail.com>
+
+       * configure.ac: Move initfini-array arg handling earlier.  Don't
+       check for string.h, strings.h, stdlib.h, or locale.h.  Do check
+       for inttypes.h, stdint.h, sys/types.h.  Don't check for
+       setlocale, free, getev or strstr.
+       (AC_ISC_POSIX): Don't invoke.
+       * sysdep.h: Include string.h and stdlib.h unconditionally.  Test
+       HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H.  Remove strstr, free and
+       getenv fallback declarations.
+       * ld.h: Don't test HAVE_LOCALE_H.
+       * ldmain.c: Don't test HAVE_SETLOCALE.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2021-04-01  Tamar Christina  <tamar.christina@arm.com>
+
+       PR ld/26659
+       * testsuite/ld-pe/pe.exp: Add test.
+       * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
+       * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
+
+2021-04-01  Martin Liska  <mliska@suse.cz>
+
+       * ldbuildid.c (strneq): Remove strneq and use startswith.
+       (validate_build_id_style): Likewise.
+       (compute_build_id_size): Likewise.
+
+2021-03-31  Alan Modra  <amodra@gmail.com>
+
+       * sysdep.h (POISON_BFD_BOOLEAN): Define.
+       * configure.ac (elf_list_options, elf_shlib_list_options=false),
+       (elf_plt_unwind_list_options=false): Replace FALSE with false,
+       and TRUE with true.
+       * emulparams/call_nop.sh, * emulparams/cet.sh,
+       * emulparams/dynamic_undefined_weak.sh,
+       * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
+       * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
+       * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
+       * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
+       * emulparams/reloc_overflow.sh, * emulparams/static.sh,
+       * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
+       * emultempl/aix.em, * emultempl/alphaelf.em,
+       * emultempl/armcoff.em, * emultempl/armelf.em,
+       * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
+       * emultempl/cr16elf.em, * emultempl/crxelf.em,
+       * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
+       * emultempl/hppaelf.em, * emultempl/linux.em,
+       * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
+       * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
+       * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
+       * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
+       * emultempl/pep.em, * emultempl/ppc32elf.em,
+       * emultempl/ppc64elf.em, * emultempl/rxelf.em,
+       * emultempl/rxlinux.em, * emultempl/scoreelf.em,
+       * emultempl/solaris2.em, * emultempl/spuelf.em,
+       * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
+       * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
+       * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
+       * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
+       * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
+       * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
+       * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
+       * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
+       * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
+       bfd_boolean with bool, FALSE with false, and TRUE with true.
+       * configure: Regenerate.
+
+2021-03-31  Alan Modra  <amodra@gmail.com>
+
+       * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
+       * emultempl/nds32elf.em: Likewise.
+       * testsuite/ld-elf/mbind2b.c: Likewise.
+       * testsuite/ld-elf/pr18718.c: Likewise.
+       * testsuite/ld-elf/pr18720a.c: Likewise.
+       * testsuite/ld-elf/pr25749-1.c: Likewise.
+       * testsuite/ld-elf/pr25749-1a.c: Likewise.
+       * testsuite/ld-elf/pr25749-1b.c: Likewise.
+       * testsuite/ld-elf/pr25749-1c.c: Likewise.
+       * testsuite/ld-elf/pr25749-1d.c: Likewise.
+       * testsuite/ld-elf/pr25749-2.c: Likewise.
+       * testsuite/ld-elf/pr25754-1a.c: Likewise.
+       * testsuite/ld-elf/pr25754-2a.c: Likewise.
+       * testsuite/ld-elf/pr25754-3a.c: Likewise.
+       * testsuite/ld-elf/pr25754-4a.c: Likewise.
+       * testsuite/ld-elf/pr25754-5a.c: Likewise.
+       * testsuite/ld-elf/pr25754-6a.c: Likewise.
+
+2021-03-29  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
+       boolean expression.
+       * lexsup.c (parse_args): Likewise.
+       * pe-dll.c (pe_dll_id_target): Likewise.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/ld-ctf/array.d: Only check that the data object
+       section is nonempty: do not check its exact size.
+       * testsuite/ld-ctf/diag-parlabel.d: Likewise.
+       * testsuite/ld-ctf/slice.d: Likewise.
+       * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
+       func info section too.
+       * testsuite/ld-ctf/function.d: Likewise, for the func info section.
+
+2021-03-22  Martin Liska  <mliska@suse.cz>
+
+       * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
+       * emultempl/beos.em: Likewise.
+       * emultempl/elf.em: Likewise.
+       * emultempl/pe.em: Likewise.
+       * emultempl/pep.em: Likewise.
+       * emultempl/xtensaelf.em: Likewise.
+       * ldctor.c (ctor_prio): Likewise.
+       * ldelf.c (ldelf_try_needed): Likewise.
+       (ldelf_parse_ld_so_conf): Likewise.
+       (ldelf_after_open): Likewise.
+       (output_rel_find): Likewise.
+       (ldelf_place_orphan): Likewise.
+       * ldfile.c (ldfile_add_library_path): Likewise.
+       * ldlang.c (lang_add_input_file): Likewise.
+       * ldmain.c (get_sysroot): Likewise.
+       (get_emulation): Likewise.
+       (add_archive_element): Likewise.
+       * ldwrite.c (unsplittable_name): Likewise.
+       (clone_section): Likewise.
+       * lexsup.c (parse_args): Likewise.
+       * pe-dll.c (is_import): Likewise.
+       (pe_implied_import_dll): Likewise.
+
+2021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/27590
+       * testsuite/ld-x86-64/pr27590.rd: New file.
+       * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
+       * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
+
 2021-03-20  Alan Modra  <amodra@gmail.com>
 
        PR 27590
This page took 0.024951 seconds and 4 git commands to generate.