1. 01 Feb, 2020 2 commits
  2. 31 Jan, 2020 5 commits
    • Andre Vieira's avatar
      arm: PR gas/25472 Enable DSP instructions with +mve · 8d4447e5
      Andre Vieira authored
      We noticed +mve was not enabling DSP instructions as it should, reported in PR
      The MVE architecture extension for Armv8.1-M Mainline implies DSP extensions.
      This patch reflects that in the '+mve' command line option.
      2020-01-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
      	Backport from mainline.
      	2020-01-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
      	PR gas/25472
      	* config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
      	(armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
      	* testsuite/gas/arm/mve_dsp.d: New test.
    • Nick Clifton's avatar
      Fix compile time build problem building the s390 assembler. · 7e1a4f55
      Nick Clifton authored
      	* config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
      	rather than BFD_RELOC_NONE.
    • Srinath Parvathaneni's avatar
      [ARM]: Add support for vldmia/vldmdb/vstmia/vstmdb instructions in MVE. · f23bd989
      Srinath Parvathaneni authored
      This patch adds support for assembly instructions vldmia, vldmdb, vstmia
      and vstmdb in MVE.  This instructions are already supported for Armv8-M
      Floating-point Extension.
      2020-01-31  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
      	* config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
      	to support VLDMIA instruction for MVE.
      	(fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
      	instruction for MVE.
      	(fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
      	instruction for MVE.
      	(fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
      	instruction for MVE.
      	* testsuite/gas/arm/mve-ldst.d: New test.
      	* testsuite/gas/arm/mve-ldst.s: Likewise.
    • Nick Clifton's avatar
    • GDB Administrator's avatar
      Automatic date update in version.in · 314480b4
      GDB Administrator authored
  3. 30 Jan, 2020 1 commit
  4. 29 Jan, 2020 6 commits
    • Alan Modra's avatar
      PR25477, ld 2.34 tries to load ${prefix}/etc/ld.so.conf · c75ee076
      Alan Modra authored
      	PR 25477
      	* ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
      	correct concat.
      	(ldelf_after_open): Add prefix parameter.
      	* ldelf.h (ldelf_after_open): Update prototype.
      	* emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
      	to ldelf_after_open.
      	* Makefile.am: Correct z80 dependencies.
      	* Makefile.in: Regenerate.
      (cherry picked from commit ef8f08ca)
    • Alan Modra's avatar
      Don't report symbol lookup failure in first phase of linking · fbcb30f2
      Alan Modra authored
      Until the symbol table is created, symbols can't be created.
      	* ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
      	in first phase.
      (cherry picked from commit 738174e1)
    • Alan Modra's avatar
      Mark all weak aliases for copy relocations · 7b647b69
      Alan Modra authored
      	PR ld/25458
      	* elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases.
      	PR ld/25458
      	* testsuite/ld-elf/pr25458.map: New file.
      	* testsuite/ld-elf/pr25458.rd: Likewise.
      	* testsuite/ld-elf/pr25458a.s: Likewise.
      	* testsuite/ld-elf/pr25458b.s: Likewise.
      	* testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
      (cherry picked from commit 3024a17a)
    • Alan Modra's avatar
      PR25444, Floating point exception in _bfd_elf_compute_section_file_positions · 9d4684ce
      Alan Modra authored
      	PR 25444
      	* elf.c (assign_file_positions_for_load_sections): Avoid divide
      	by zero when p_align is zero.
      (cherry picked from commit 67641dd3)
    • Alan Modra's avatar
      PowerPC64 TLS optimization fix · a2bf3f0c
      Alan Modra authored
      When linking with --no-tls-optimize the linker doesn't generate a call
      or long branch stub to __tls_get_addr in some circumstances, giving:
      relocation truncated to fit: R_PPC64_REL24 against symbol `__tls_get_addr'
      	* elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under
      	which __tls_get_addr calls will be eliminated.
      (cherry picked from commit abc489c6)
    • GDB Administrator's avatar
      Automatic date update in version.in · a6977a7e
      GDB Administrator authored
  5. 28 Jan, 2020 1 commit
  6. 27 Jan, 2020 3 commits
    • Roland McGrath's avatar
      Fix objcopy --merge-notes dependency on qsort implementation behavior. · 3828695c
      Roland McGrath authored
      	* objcopy.c (compare_gnu_build_notes): Fix comparison results
      	for overlapping ranges so that (A == B) == (B == A) holds.
      (cherry picked from commit 82ef9cad)
    • Tamar Christina's avatar
      AArch64: Fix cfinv disassembly issues · 2cd7b00e
      Tamar Christina authored
      This fixes the preferred disassembly for cfinv.  The Armv8.4-a instruction
      overlaps with the possible encoding space for msr.  This because msr allows you
      to use unallocated encoding space using the general sA_B_cC_cD_E form.
      However when an encoding does become allocated then we need to ensure that it's
      used as the preferred disassembly.  The problem with cfinv is that its mask has
      all bits sets because it has no arguments.
      This causes issues for the Alias resolver in gas as it uses the mask to build
      alias graph.  In this case it can't do it since it thinks almost everything
      would alias with cfinv.  So instead we can only fix this by moving cfinv before
      	PR 25403
      	* testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
      	* testsuite/gas/aarch64/armv8_4-a.s: Likewise.
      	PR 25403
      	* aarch64-tbl.h (struct aarch64_opcode): Re-order cfinv.
      	* aarch64-asm-2.c: Regenerate
      	* aarch64-dis-2.c: Likewise.
      	* aarch64-opc-2.c: Likewise.
      (cherry picked from commit 7568c93b)
    • GDB Administrator's avatar
      Automatic date update in version.in · 968f8eb0
      GDB Administrator authored
  7. 26 Jan, 2020 1 commit
  8. 25 Jan, 2020 1 commit
  9. 24 Jan, 2020 1 commit
  10. 23 Jan, 2020 2 commits
  11. 22 Jan, 2020 1 commit
  12. 21 Jan, 2020 2 commits
    • Jan Beulich's avatar
      x86: VCVTNEPS2BF16{X,Y} should permit broadcasting · ccb86ffd
      Jan Beulich authored
      Just like other VCVT*{X,Y} templates do, and to allow the programmer
      flexibility (might be relevant in particular when heavily macro-izing
      code), the two templates should also have Broadcast set, just like their
      X/Y-suffix-less counterparts. This in turn requires them to also have
      * Dword set on their memory operands, to cover the logic added to
        i386gen by 4a1b91ea ("x86: Expand Broadcast to 3 bits"),
      * RegXMM/RegYMM set on their source operands, to satisfy broadcast
        sizing logic in gas itself.
      Otherwise ATTSyntax templates wouldn't need such operand size attributes.
      While extending the test cases, also add Intel syntax broadcast forms
      without explicit size specifiers.
    • GDB Administrator's avatar
      Automatic date update in version.in · 951445cf
      GDB Administrator authored
  13. 20 Jan, 2020 2 commits
  14. 18 Jan, 2020 5 commits
    • Roland McGrath's avatar
      Fix ld-x86-64/align-branch-1 test failure on --target=x86_64-elf · 32040fe7
      Roland McGrath authored
      	* testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
      	to admit whatever absolute address.  The label-relative address is
      	what the test needs to verify.
    • Nick Clifton's avatar
    • Nick Clifton's avatar
    • Nick Clifton's avatar
      Update top level config files with copies from the official repository. · 4fb3a8da
      Nick Clifton authored
      	2020-01-01  Ben Elliston  <bje@gnu.org>
      	* config.guess: Update copyright years.
      	* config.sub: Likewise.
      	2019-12-21  Ben Elliston  <bje@gnu.org>
      	* config.guess (set_cc_for_build): Prevent multiple calls by
      	checking if $tmp is already set. We can't check CC_FOR_BUILD as
      	the user may set it externally. Thanks to Torbj?rn Granlund for
      	the bug report.
      	2019-12-21  Torbj?rn Granlund  <tg@gmplib.org>
      	* config.guess (alpha:Linux:*:*): Guard against missing
      	/proc/cpuinfo by redirecting standard error to /dev/null.
      	2019-09-12  Daniel Bittman  <danielbittman1@gmail.com>
      	* config.guess (*:Twizzler:*:*): New.
      	* config.sub (-twizzler*): New.
      	2019-07-24  Ben Elliston  <bje@gnu.org>
      	* config.guess (mips:OSF1:*.*): Whitespace cleanup.
      	2019-06-30  Ben Elliston  <bje@gnu.org>
      	* config.sub (case $os): Match nsk* and powerunix. Don't later
      	match nsk* and set os=nsk which removes the OS version number.
      	2019-06-30  Ben Elliston  <bje@gnu.org>
      	* config.sub: Recognise os108*.
      	2019-06-26  Ben Elliston  <bje@gnu.org>
      	* config.sub (hp300): Set $os to hpux.
      	2019-06-26  Ben Elliston  <bje@gnu.org>
      	* config.sub (vsta): Move into alphabetical order.
      	2019-06-10  Ben Elliston  <bje@gnu.org>
      	* config.guess (*:OS108:*:*): Recognise new OS.
      	2019-05-28  Ben Elliston  <bje@gnu.org>
      	* config.guess (*:Darwin:*:*): Run xcode-select to determine if a
      	system compiler is installed. If not, do not run set_cc_for_build,
      	as the default cc will open a dialog box asking to install
      	Xcode. If no C compiler is available, guess based on uname -p and
      	uname -m.
      	2019-05-28  Ben Elliston  <bje@gnu.org>
      	* config.guess (*:Darwin:*:*): Simplify UNAME_PROCESSOR.
    • GDB Administrator's avatar
      Automatic date update in version.in · 503f6919
      GDB Administrator authored
  15. 17 Jan, 2020 7 commits
    • Simon Marchi's avatar
      Make all-gdbsupport depend on all-bfd · c4d3fc14
      Simon Marchi authored
      Trying to run "make all-gdbsupport" at the top-level in a build from scratch
      results in:
      make[2]: Entering directory '/home/smarchi/build/binutils-gdb/gdbsupport'
        CC       agent.o
      In file included from /home/smarchi/src/binutils-gdb/gdbsupport/common-defs.h:133,
                       from /home/smarchi/src/binutils-gdb/gdbsupport/agent.c:20:
      /home/smarchi/src/binutils-gdb/gdbsupport/common-types.h:35:10: fatal error: bfd.h: No such file or directory
         35 | #include "bfd.h"
            |          ^~~~~~~
      Before building all-gdbsupport, we need all-bfd to run, so that bfd.h is
      (Once this patch is merged in the binutils-gdb repo, I'll send it to gcc
      to keep the files in sync.)
      	* Makefile.def: Add dependencies of all-gdbsupport on all-bfd.
      	* Makefile.in: Re-generate.
    • Christian Biesinger's avatar
      Fix spelling errors · 07f1f3aa
      Christian Biesinger authored
      seperate -> separate
      2020-01-17  Christian Biesinger  <cbiesinger@google.com>
      	* coff-arm.c: Fix spelling error (seperate).
      	* elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling
      	error (seperate).
      	* sysdep.h (strnlen): Fix spelling error (seperate).
      2020-01-17  Christian Biesinger  <cbiesinger@google.com>
      	* opintl.h: Fix spelling error (seperate).
      2020-01-17  Christian Biesinger  <cbiesinger@google.com>
      	* iwmmxt.c: Fix spelling error (seperate).
      Change-Id: I55e5f47bcf3cf3533d2acb7ad338f1be0d5f30f9
    • Nick Clifton's avatar
      Fix a libiberty testsuite failure. · 76e29444
      Nick Clifton authored
      	* testsuite/demangle-expected: Update expected demangling of
      	enable_if pattern.
    • Thomas Troeger's avatar
      Improve the performance of the ascii art jump visualizer. · 82a9ed20
      Thomas Troeger authored
      	* objdump.c (jump_info_visualize_address): Discard jumps that are
      	no longer needed.
      	(disassemble_bytes): Only compute the maximum level if jumps were
    • Pedro Alves's avatar
      Fix gdbsupport build on compilers that don't default to C++11 or above · 67b10306
      Pedro Alves authored
      gdbsupport fails to build with compilers that don't default to C++11
      or above.  gdbsupport's configure.ac is already using
      AX_CXX_COMPILE_STDCXX, which sets CXX_DIALECT to the -std=gnu++11
      switch if necessary, but the problem is that nowhere are we using
      CXX_DIALECT.  This fixes it.
      2020-01-17   Pedro Alves  <palves@redhat.com>
      	* Makefile.am: Append CXX_DIALECT to CXX.
      	* Makefile.in: Regenerate.
    • Pedro Alves's avatar
      Fix gdbsupport build · 3684d331
      Pedro Alves authored
      I'm seeing this on F27 (a clean build from scratch):
       make[3]: Entering directory '/home/pedro/brno/pedro/gdb/binutils-gdb/build/gdbsupport'
         CC       gdb_tilde_expand.o
       In file included from /home/pedro/gdb/binutils-gdb/src/gdbsupport/../gnulib/import/libc-config.h:33:0,
                        from ../gnulib/import/glob.h:544,
                        from /home/pedro/gdb/binutils-gdb/src/gdbsupport/gdb_tilde_expand.c:22:
       ../bfd/config.h:7:4: error: #error config.h must be #included before system headers
        #  error config.h must be #included before system headers
      libc-config.h, where it includes config.h, says:
       /* This is intended to be a good-enough substitute for glibc system
          macros like those defined in <sys/cdefs.h>, so that Gnulib code
          shared with glibc can do this as the first #include:
            #ifndef _LIBC
            # include <libc-config.h>
          When compiled as part of glibc this is a no-op; when compiled as
          part of Gnulib this includes Gnulib's <config.h> and defines macros
          that glibc library code would normally assume.  */
       #include <config.h>
      The issue is that that '#include <config.h>' picks up bfd's config.h
      instead of gnulib's.
      This problem doesn't trigger in the gdb dir because there we generate
      config.h under that exact name so gnulib's libc-config.h ends up
      picking gdb's config.h instead of gnulib.c and that ends up harmless.
      In gdbsupport, the config.h file is really named support-config.h, so
      that '#include <config.h>' in libc-config.h doesn't pick it like it
      would if it had the conventional config.h name.
      This patch fixes it by simply renaming gdbserver's support-config.h to
      2020-01-17  Pedro Alves  <palves@redhat.com>
      	* configure.ac: Generate config.h instead of support-config.h.
      	* common-defs.h: Include <gdbsupport/config.h> instead of
      	* Makefile.in: Regenerate.
      	* configure: Regenerate.
    • H.J. Lu's avatar
      x86: Add {vex} pseudo prefix · 42e04b36
      H.J. Lu authored
      There are 2-byte VEX prefix and 3-byte VEX prefix.  2-byte VEX prefix
      can't encode all operands.  By default, assembler tries 2-byte VEX prefix
      first.  {vex3} can be used to force 3-byte VEX prefix.  This patch adds
      {vex} pseudo prefix and keeps {vex2} for backward compatibility.
      	* config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
      	with vex_encoding_vex.
      	(parse_insn): Likewise.
      	* doc/c-i386.texi: Replace {vex2} with {vex}.  Update {vex}
      	and {vex3} documentation.
      	* testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
      	* testsuite/gas/i386/x86-64-pseudos.s: Likewise.
      	* i386-opc.tbl: Add {vex} pseudo prefix.
      	* i386-tbl.h: Regenerated.