Skip to content
Snippets Groups Projects
  1. Jul 09, 2021
  2. Feb 06, 2021
  3. Feb 05, 2021
  4. Feb 04, 2021
    • H.J. Lu's avatar
      ld: Restore PR ld/15146 tests · 3592ada3
      H.J. Lu authored
      commit 7d409ac0
      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 37707bd8)
      3592ada3
    • Alan Modra's avatar
      PR27311, (symbol from plugin): undefined reference, hidden sym · b71c7a58
      Alan Modra authored
      bfd/
      	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
      	recompilation.
      ld/
      	* 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 7d409ac0)
      b71c7a58
    • GDB Administrator's avatar
      Automatic date update in version.in · 401fafe1
      GDB Administrator authored
      401fafe1
  5. Feb 03, 2021
    • 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 95b91a04)
      6184480d
    • 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.
      
      bfd/
      	PR 27311
      	* elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
      	libraries when H is an indirect symbol after calling
      	_bfd_elf_add_default_symbol.
      ld/
      	* 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 9918bff7)
      (cherry picked from commit 69551367)
      (cherry picked from commit f01fb44c)
      d2ea9f3a
    • GDB Administrator's avatar
      Automatic date update in version.in · ee6dd624
      GDB Administrator authored
      ee6dd624
  6. Feb 02, 2021
  7. Feb 01, 2021
  8. Jan 31, 2021
  9. Jan 30, 2021
  10. Jan 29, 2021
  11. Jan 28, 2021
  12. Jan 27, 2021
    • 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
      disabled.)
      
      ChangeLog
      2021-01-26  Nick Alcock  <nick.alcock@oracle.com>
      
      	* Makefile.def: Add install-libctf dependency to install-ld.
      	* Makefile.in: Regenerated.
      e9013bbd
    • 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.
      185390e3
    • GDB Administrator's avatar
      Automatic date update in version.in · 0dd1ac83
      GDB Administrator authored
      0dd1ac83
  13. Jan 26, 2021
    • 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 c3ffb8f3)
      510753f8
    • 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.
      
      bfd/
      	* elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
      gas/
      	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 4287950e)
      8a041786
    • 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
      	together.
      
      (cherry picked from commit e37709f0)
      3fb37e45
    • 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
      	--gdwarf-N.
      	* testsuite/gas/nios2/relax.d: New file.
      	* testsuite/gas/nios2/relax.s: Likewise.
      
      (cherry picked from commit 1f583bc2)
      0db21b8a
    • GDB Administrator's avatar
      Automatic date update in version.in · fa15c416
      GDB Administrator authored
      fa15c416
  14. Jan 25, 2021
  15. Jan 24, 2021
    • 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 940d0202)
      5876ea37
    • 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 eea133e6)
      8b236dfb
Loading