PR25993, read of freed memory
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 1169f93373ee4bb132fac794b6e53ff1f46a383f..b4ee76c2606d490d2f68a119f0045e33ceb25adb 100644 (file)
@@ -1,3 +1,286 @@
+2020-05-20  Alan Modra  <amodra@gmail.com>
+
+       PR 25993
+       * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
+       other_bfd_filename for bfd_set_filename, and test result of
+       bfd_set_filename call.  Don't create a new is->filename, simply
+       copy from bfd filename.  Free new_name after bfd_set_filename.
+       * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
+
+2020-05-19  Siddhesh Poyarekar  <siddesh.poyarekar@arm.com>
+
+       * testsuite/ld-aarch64/aarch64-elf.exp: New test
+       emit-relocs-560.
+       * testsuite/ld-aarch64/emit-relocs-560.d: New file.
+       * testsuite/ld-aarch64/emit-relocs-560.s: New file.
+
+2020-05-19  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
+       rather than accessing bfd->filename directly.
+       * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
+       * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
+       * emultempl/spuelf.em (embedded_spu_file): Likewise.
+       * ldlang.c (input_statement_is_archive_path, wild_sort),
+       (check_excluded_libs): Likewise.
+       * ldmain.c (add_archive_element): Likewise.
+       * ldmisc.c (vfinfo): Likewise.
+       * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
+       (pe_dll_generate_implib, pe_process_import_defs): Likewise.
+       * plugin.c (plugin_object_p): Likewise.
+
+2020-05-18  Douglas B Rupp  <rupp@adacore.com>
+
+       * ldemul.h (ldemul_print_symbol): New.
+       (ld_emulation_xfer_type) <print_symbol): Likewise.
+       * ldemul.c (ldemul_print_symbol): New.
+       * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
+       (print_one_symbol): Make global and move declaration to ...
+       (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
+       (print_input_section): Likewise
+       * ldlang.h: ... here.
+       * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
+       (ld_emulation_xfer_struct): Use it.
+       * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
+       and default to NULL.
+       * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
+       * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
+       * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
+       * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
+       * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
+       * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
+       * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
+       * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
+       * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
+
+2020-05-18  Sergei Trofimovich  <siarheit@google.com>
+
+       * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
+       in info message.
+
+2020-05-18  Nick Clifton  <nickc@redhat.com>
+
+       * po/sv.po: Update Swedish translation.
+
+2020-05-18  Nick Clifton  <nickc@redhat.com>
+
+       PR 25993
+       * emultempl/pe.em (_after_open): Check for duplicate filename
+       pointers before renaming the dll.
+       * emultempl/pep.em (_after_open): Likewise.
+
+2020-05-13  Nick Clifton  <nickc@redhat.com>
+
+       PR 25979
+       * lexsup.c (elf_shlib_list_options): Include the default value for
+       the hash style in the output text.
+
+2020-05-11  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
+       * testsuite/ld-powerpc/pcrelopt.d: Update.
+
+2020-05-11  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
+       place of -mfuture/-Mfuture.
+       * testsuite/ld-powerpc/notoc2.d: Likewise.
+       * testsuite/ld-powerpc/powerpc.exp: Likewise.
+       * testsuite/ld-powerpc/tlsgd.d: Likewise.
+       * testsuite/ld-powerpc/tlsie.d: Likewise.
+       * testsuite/ld-powerpc/tlsld.d: Likewise.
+
+2020-05-11  Nick Clifton  <nickc@redhat.com>
+
+       * po/es.po: Updated Spanish translation.
+
+2020-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       PR ld/25665
+       * testsuite/ld-aarch64/farcall-group.s: New large group test.
+       * testsuite/ld-aarch64/farcall-group.d: New test driver.
+       * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
+
+2020-05-01  Alan Modra  <amodra@gmail.com>
+
+       PR 25882
+       * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
+       shared libraries.
+
+2020-05-01  Alan Modra  <amodra@gmail.com>
+
+       * po/BLD-POTFILES.in: Regenerate.
+
+2020-04-30  Alex Coplan  <alex.coplan@arm.com>
+
+       * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
+       * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
+       * testsuite/ld-aarch64/farcall-back.d: Likewise.
+       * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
+
+2020-04-30  Nick Clifton  <nickc@redhat.com>
+
+       * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
+       not support the -shared command line option.
+       * /ld-elf/compressed1c.d: Likewise.
+       * /ld-elf/compressed1e.d: Likewise.
+       * /ld-elf/dynamic1.d: Likewise.
+       * /ld-elf/dynsym1.d: Likewise.
+       * /ld-elf/ehdr_start-shared.d: Likewise.
+       * /ld-elf/exclude3b.d: Likewise.
+       * /ld-elf/global1.d: Likewise.
+       * /ld-elf/hash.d: Likewise.
+       * /ld-elf/local1.d: Likewise.
+       * /ld-elf/mbind1b.d: Likewise.
+       * /ld-elf/now-1.d: Likewise.
+       * /ld-elf/now-2.d: Likewise.
+       * /ld-elf/now-3.d: Likewise.
+       * /ld-elf/now-4.d: Likewise.
+       * /ld-elf/pr12975.d: Likewise.
+       * /ld-elf/pr13177.d: Likewise.
+       * /ld-elf/pr13195.d: Likewise.
+       * /ld-elf/pr16322.d: Likewise.
+       * /ld-elf/pr16498a.d: Likewise.
+       * /ld-elf/pr16498b.d: Likewise.
+       * /ld-elf/pr17615.d: Likewise.
+       * /ld-elf/pr19162.d: Likewise.
+       * /ld-elf/pr19698.d: Likewise.
+       * /ld-elf/pr20513c.d: Likewise.
+       * /ld-elf/pr20513d.d: Likewise.
+       * /ld-elf/pr21389a.d: Likewise.
+       * /ld-elf/pr21389b.d: Likewise.
+       * /ld-elf/pr21389c.d: Likewise.
+       * /ld-elf/pr21562a.d: Likewise.
+       * /ld-elf/pr21562b.d: Likewise.
+       * /ld-elf/pr21562c.d: Likewise.
+       * /ld-elf/pr21562d.d: Likewise.
+       * /ld-elf/pr21562e.d: Likewise.
+       * /ld-elf/pr21562f.d: Likewise.
+       * /ld-elf/pr21562g.d: Likewise.
+       * /ld-elf/pr21562h.d: Likewise.
+       * /ld-elf/pr21562i.d: Likewise.
+       * /ld-elf/pr21562j.d: Likewise.
+       * /ld-elf/pr21562k.d: Likewise.
+       * /ld-elf/pr21562l.d: Likewise.
+       * /ld-elf/pr21562m.d: Likewise.
+       * /ld-elf/pr21562n.d: Likewise.
+       * /ld-elf/pr21903a.d: Likewise.
+       * /ld-elf/pr21903b.d: Likewise.
+       * /ld-elf/pr22269b.d: Likewise.
+       * /ld-elf/pr22393-1a.d: Likewise.
+       * /ld-elf/pr22393-1b.d: Likewise.
+       * /ld-elf/pr23658-1c.d: Likewise.
+       * /ld-elf/pr25708.d: Likewise.
+       * /ld-elf/rpath-1.d: Likewise.
+       * /ld-elf/rpath-2.d: Likewise.
+       * /ld-elf/runpath-1.d: Likewise.
+       * /ld-elf/runpath-2.d: Likewise.
+       * /ld-elf/sizeofb.d: Likewise.
+       * /ld-elf/startofb.d: Likewise.
+       * /ld-elf/strtab.d: Likewise.
+       * /ld-elf/textaddr2.d: Likewise.
+       * /ld-elf/textaddr5.d: Likewise.
+       * /ld-elf/textaddr6.d: Likewise.
+       * /ld-elf/unknown2.d: Likewise.
+       * /ld-undefined/entry-3.d: Likewise.
+       * /ld-undefined/entry-4.d: Likewise.
+       * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
+       the -pie option.
+       * /ld-elf/pie.d: Likewise.
+       * /ld-elf/pr19539.d: Likewise.
+       * /ld-elf/pr21903d.d: Likewise.
+       * /ld-elf/pr22269a.d: Likewise.
+       * /ld-elf/pr22393-1c.d: Likewise.
+       * /ld-elf/pr22393-1d.d: Likewise.
+       * /ld-elf/pr22423.d: Likewise.
+       * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
+       * /ld-elf/loadaddr2.d: Likewise.
+       * /ld-elf/pr22393-1e.d: Likewise.
+       * /ld-elf/pr22393-1f.d: Likewise.
+       * /ld-elf/textaddr1.d: Likewise.
+       * /ld-elf/textaddr4.d: Likewise.
+
+2020-04-30  Yoshinori Sato <ysato@users.sourceforge.jp>
+
+       * emulparams/elf32rx_linux.sh: New rx-linux emulation.
+       * emultempl/rxlinux.em: New.
+       * configure.tgt: Add rx-linux.
+       * Makefile.am: Add eelf32rx_linux.c
+       * Makefile.in: Regenerate.
+
+2020-04-29  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * testsuite/ld-xtensa/relax-diff1.d: New test definition.
+       * testsuite/ld-xtensa/relax-diff1.s: New test source.
+       * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
+       * testsuite/ld-xtensa/relax-ndiff.s: New test source.
+       * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
+       (relax-ndiff): New tests.
+
+2020-04-29  Stephen Casner  <casner@acm.org>
+
+       PR 25829
+       * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
+       LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
+       * testsuite/ld-scripts/default-script1.d: No longer have to skip
+       test for those targets.
+       * testsuite/ld-scripts/default-script2.d: Likewise.
+       * testsuite/ld-scripts/default-script3.d: Likewise.
+       * testsuite/ld-scripts/default-script4.d: Likewise.
+
+2020-04-27  Tamar Christina  <tamar.christina@arm.com>
+
+       * pe-dll.c (pe_detail_list):  Add pe-bigobj-i386.
+
+2020-04-22  Max Filippov  <jcmvbkbc@gmail.com>
+
+       PR ld/25861
+       * testsuite/ld-xtensa/relax-loc.d: New test definition.
+       * testsuite/ld-xtensa/relax-loc.s: New test source.
+       * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
+
+2020-04-22  Fangrui Song <maskray@google.com>
+
+       PR ld/25806
+       * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
+       * ldlang.c (current_input_file): New.
+       (ldirname): New.
+       (new_afile): Add from_filename parameter.  Set extra_search_path.
+       (lang_add_input_file): Pass current_input_file to new_afile.
+       (load_symbols): Set current_input_file.
+       * ldfile.c (ldfile_open_file): If extra_search_path has been set
+       then scan it for the file that needs to be opened.
+       * ld.texi: Document the new behaviour.
+       * NEWS: Mention the new feature.
+
+2020-04-22  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
+       * testsuite/ld-scripts/default-script2.d: Likewise.
+       * testsuite/ld-scripts/default-script3.d: Likewise.
+       * testsuite/ld-scripts/default-script4.d: Likewise.
+
+2020-04-21  Stephen Casner  <casner@acm.org>
+
+       PR 25829
+       * testsuite/ld-scripts/script.exp (check_script)
+       (extract_symbol_test): Make test addresses fit in 16 bits.
+       * testsuite/ld-scripts/memory.t: Likewise.
+       * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
+       * testsuite/ld-scripts/default-script.t (_START): Likewise.
+       * testsuite/ld-scripts/default-script1.d: Likewise.
+       * testsuite/ld-scripts/default-script2.d: Likewise.
+       * testsuite/ld-scripts/default-script3.d: Likewise.
+       * testsuite/ld-scripts/default-script4.d: Likewise.
+       * testsuite/ld-scripts/empty-address-1.t: Likewise.
+       * testsuite/ld-scripts/empty-address-1.d: Likewise.
+       * testsuite/ld-scripts/empty-address-2a.d: Likewise.
+       * testsuite/ld-scripts/empty-address-2b.d: Likewise.
+       * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
+       fit target address size.
+       * testsuite/ld-scripts/empty-address-1.s: Likewise.
+       * testsuite/ld-scripts/empty-address-2.s: Likewise.
+
 2020-04-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/25849
This page took 0.026319 seconds and 4 git commands to generate.