1. 09 Jul, 2021 5 commits
  2. 06 Feb, 2021 2 commits
  3. 05 Feb, 2021 7 commits
  4. 04 Feb, 2021 3 commits
    • H.J. Lu's avatar
      ld: Restore PR ld/15146 tests · 3592ada3
      H.J. Lu authored
      commit 7d409ac001cce916661d345bff01ed589991e762
      Author: Alan Modra <amodra@gmail.com>
      Date:   Thu Feb 4 13:56:34 2021 +1030
          PR27311, (symbol from plugin): undefined reference, hidden sym
      fixed PR ld/15146.  Restore PR ld/15146 tests.
      	PR ld/15146
      	* testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
      	* testsuite/ld-plugin/pr15146.d: Restored.
      	* testsuite/ld-plugin/pr15146a.c: Likewise.
      	* testsuite/ld-plugin/pr15146b.c: Likewise.
      	* testsuite/ld-plugin/pr15146c.c: Likewise.
      	* testsuite/ld-plugin/pr15146d.c: Likewise.
      (cherry picked from commit 37707bd8221c2e3f7676de8bee0c42ce3ab38c77)
    • Alan Modra's avatar
      PR27311, (symbol from plugin): undefined reference, hidden sym · b71c7a58
      Alan Modra authored
      	PR 27311
      	* elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
      	libraries for IR references on pass over libraries after LTO
      	* testsuite/ld-plugin/pr27311d.c: New test.
      	* testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
      	and link new test as pr27311-2.
      (cherry picked from commit 7d409ac001cce916661d345bff01ed589991e762)
    • GDB Administrator's avatar
      Automatic date update in version.in · 401fafe1
      GDB Administrator authored
  5. 03 Feb, 2021 3 commits
    • Alan Modra's avatar
      pr27270 and pr27284, ar segfaults and wrong file mode · 6184480d
      Alan Modra authored
      	PR 27270
      	PR 27284
      	PR 26945
      	* ar.c: Don't include libbfd.h.
      	(write_archive): Replace xmalloc+strcpy with xstrdup.  Use
      	bfd_stat rather than fstat on iostream.  Move stat and fd tests
      	outside of _WIN32 ifdef.  Delete skip_stat variable.
      	* arsup.c (temp_name, real_ofd): New static variables.
      	(ar_open): Use make_tempname and bfd_fdopenw.
      	(ar_save): Adjust to suit ar_open changes.  Move stat output
      	of _WIN32 ifdef.
      	* objcopy.c: Don't include libbfd.h.
      	(copy_file): Use bfd_stat.
      (cherry picked from commit 95b91a043aeaeb546d2fea556d84a2de1e917770)
    • Alan Modra's avatar
      PR27311, ld.bfd (symbol from plugin): undefined reference · d2ea9f3a
      Alan Modra authored
      A default versioned symbol definition in a shared library is
      overridden by an unversioned definition in a regular object file, and
      thus should not be reason to make an as-needed library needed.
      	PR 27311
      	* elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
      	libraries when H is an indirect symbol after calling
      	* testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
      	Link with --as-needed.
      	* testsuite/ld-plugin/pr27311.d,
      	* testsuite/ld-plugin/pr27311.ver,
      	* testsuite/ld-plugin/pr27311a.c,
      	* testsuite/ld-plugin/pr27311b.c,
      	* testsuite/ld-plugin/pr27311c.c: New testcase.
      	* testsuite/ld-plugin/lto.exp: Run it.  Correct PR14918 and
      	PR12982 entries.
      (cherry picked from commit 9918bff7cf2a566aaa2036d2242a61c140652dc7)
      (cherry picked from commit 6955136728a68365bbb5e6e1327dff1654b2a0ca)
      (cherry picked from commit f01fb44c0621b064996493bb5acd5077646ea84e)
    • GDB Administrator's avatar
      Automatic date update in version.in · ee6dd624
      GDB Administrator authored
  6. 02 Feb, 2021 1 commit
  7. 01 Feb, 2021 1 commit
  8. 31 Jan, 2021 1 commit
  9. 30 Jan, 2021 1 commit
  10. 29 Jan, 2021 3 commits
    • Alan Modra's avatar
      PR27259, SHF_LINK_ORDER self-link · fe0e8331
      Alan Modra authored
      This stops ld from endless looping on SHF_LINK_ORDER sh_link loops.
      	PR 27259
      	* elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
      	prevent endless looping of linked-to sections.
      	PR 27259
      	* ldelf.c (ldelf_before_place_orphans): Use linker_mark to
      	prevent endless looping of linked-to sections.
      (cherry picked from commit def97fb945a98544938087eff3111e16ce58da6d)
    • Alan Modra's avatar
      PR27271, c6x-uclinux-ld segfaults linking ld-uClibc-1.0.37.so · 00e280d5
      Alan Modra authored
      	PR 27271
      	* elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
      	on symbols defined in absolute or other special sections.
      	* testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
      (cherry picked from commit c4566785ac265b3e4b3cde0e43733975c58d9175)
    • GDB Administrator's avatar
      Automatic date update in version.in · 6ff2462f
      GDB Administrator authored
  11. 28 Jan, 2021 2 commits
  12. 27 Jan, 2021 3 commits
    • Nick Alcock's avatar
      ld: depend on libctf · e9013bbd
      Nick Alcock authored
      Since ld may depend on libctf (if present), and libctf may be relinked
      by the installation process, libctf must be installed before ld is,
      or the relink may fail if it calls on symbols or symbol versions that do
      not exist in any libctf already present on the system.  (If none is
      present, the copy in the build tree will be automatically used, but
      if one *is* present, it may take precedence and break things.)
      (This is a maybe- dependency, so it will work even if libctf is
      2021-01-26  Nick Alcock  <nick.alcock@oracle.com>
      	* Makefile.def: Add install-libctf dependency to install-ld.
      	* Makefile.in: Regenerated.
    • Nick Clifton's avatar
      Update the DWARF sections recognuised by ELF linker scripts. · 185390e3
      Nick Clifton authored
              PR ld/27230
              * scripttempl/DWARF.sc: Add DWARF-5 .debug_* sections.
    • GDB Administrator's avatar
      Automatic date update in version.in · 0dd1ac83
      GDB Administrator authored
  13. 26 Jan, 2021 5 commits
    • Alan Modra's avatar
      Segmentation fault i386-gen · 510753f8
      Alan Modra authored
      A case of inst->next being uninitialised.
      	* i386-gen.c (parse_template): Ensure entire template_instance
      	is initialised.
      (cherry picked from commit c3ffb8f340f567949f24c3bab62259f0e593637f)
    • Alan Modra's avatar
      pr27228 testcase · 8a041786
      Alan Modra authored
      This failed on ft32, hppa, and mips-irix targets.  In the case of ft32
      the problem was iterating over an array in reverse and not using the
      proper condition, so BFD_RELOC_NONE was not recognised.
      	* elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
      	PR 27282
      	* testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
      	* testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
      (cherry picked from commit 4287950e540900bfefa113f264c7f798b1616ee0)
    • Frederic Cambus's avatar
      Fix thinko in objcopy's memory freeing code. · 3fb37e45
      Frederic Cambus authored
      	* objcopy.c (copy_main): Fix a double free happening when both
      	--localize-symbols and --globalize-symbols options are invoked
      (cherry picked from commit e37709f0901fe6f2410094151002bab3d123df85)
    • H.J. Lu's avatar
      nios2: Don't disable relaxation with --gdwarf-N · 0db21b8a
      H.J. Lu authored
      GCC 11 passes --gdwarf-5 to assembler to enable DWARF5 debug info.  Don't
      disable relaxation when --gdwarf-N is specified.  The assembler generated
      debug information will treat the sequence of the relaxed instructions as
      a single instruction.
      	PR gas/27243
      	* config/tc-nios2.c (md_begin): Don't disable relaxation with
      	* testsuite/gas/nios2/relax.d: New file.
      	* testsuite/gas/nios2/relax.s: Likewise.
      (cherry picked from commit 1f583bc2fcb1b5c4125faf8b8e815255b2b21b62)
    • GDB Administrator's avatar
      Automatic date update in version.in · fa15c416
      GDB Administrator authored
  14. 25 Jan, 2021 1 commit
  15. 24 Jan, 2021 2 commits
    • H.J. Lu's avatar
      DWARF-5: Ignore empty range in DWARF-5 line number tables · 5876ea37
      H.J. Lu authored
      The DWARF5 spec does indeed explicitly say: "A bounded range entry whose
      beginning and ending address offsets are equal (including zero) indicates
      an empty range and may be ignored."
      Since arange_add already ignores empty ranges, remove the whole check
      which is equivalent to the check plus explicit continue.
      	PR binutils/27231
      	* dwarf2.c (read_rnglists): Ignore empty range when parsing line
      	number tables.
      (cherry picked from commit 940d0202fd472b09d370fb483bf5a8ae99c9c830)
    • H.J. Lu's avatar
      gas: Add a testcase for PR gas/27228 · 8b236dfb
      H.J. Lu authored
      	PR gas/27228
      	* testsuite/gas/elf/elf.exp: Run pr27228.
      	* testsuite/gas/elf/pr27228.d: New file.
      	* testsuite/gas/elf/pr27228.s: Likewise.
      (cherry picked from commit eea133e65524218c05bd7a1e93b4fe4241dd8e08)