1. 14 Dec, 2018 1 commit
  2. 18 Jul, 2018 3 commits
  3. 17 Jul, 2018 1 commit
  4. 16 Jul, 2018 3 commits
  5. 15 Jul, 2018 1 commit
  6. 14 Jul, 2018 3 commits
  7. 13 Jul, 2018 2 commits
  8. 12 Jul, 2018 6 commits
    • Alan Modra's avatar
      Hide dynamic symbols in discarded sections · ae0e76dc
      Alan Modra authored
      This is a followup to git commit 97196564 "Strip global symbol
      defined in discarded section".  If a symbol defined in a discarded
      section was dynamic, that patch left .dynsym with holes (ie. all zero
      entries).  For example, the following from libstdc++.so:
      
      Symbol table '.dynsym' contains 6090 entries:
         Num:    Value          Size Type    Bind   Vis      Ndx Name
           0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND
           1: 00000000000a74e0     0 SECTION LOCAL  DEFAULT   10
           2: 0000000000264180     0 SECTION LOCAL  DEFAULT   17
           3: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_addUserCommitAction
           4: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_memcpyRtWn
           5: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND
      readelf: Warning: local symbol 5 found at index >= .dynsym's sh_info value of 3
           6: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND
      readelf: Warning: local symbol 6 found at index >= .dynsym's sh_info value of 3
      [snip]
      
      This patch removes the symbols from .dynsym too.
      
      	PR 17550
      	* elflink.c (_bfd_elf_fix_symbol_flags): Hide dynamic symbols
      	in discarded sections.
      
      (cherry picked from commit af0bfb9c4283ce80fe37ad6360d12cae8ec38696)
      ae0e76dc
    • Nick Clifton's avatar
      This patch adds support for the SSBB and PSSBB speculation barrier... · 08196b22
      Nick Clifton authored
      This patch adds support for the SSBB and PSSBB speculation barrier instructions to the AArch64 assembler and disassembler.
      
      For more details see: https://static.docs.arm.com/ddi0596/a/DDI_0596_ARM_a64_instruction_set_architecture.pdf
      
      opcodes	* aarch64-tbl.h (aarch64_opcode_table): Add entry for
      	ssbb and pssbb and update dsb flags to F_HAS_ALIAS.
      	* aarch64-asm-2.c: Regenerate.
      	* aarch64-dis-2.c: Regenerate.
      	* aarch64-opc-2.c: Regenerate.
      
      gas	* testsuite/gas/aarch64/system.s: Add test for ssbb
      	and pssbb.
      	* testsuite/gas/aarch64/system.d: Update accordingly
      	and remove explicit addresses.
      08196b22
    • Nick Clifton's avatar
      Resolve merge conflicts. · 2d73c246
      Nick Clifton authored
      2d73c246
    • Sudakshina Das's avatar
      Add support for the ARM speculation barrier instructions SSBB and PSSBB. · ec468ac4
      Sudakshina Das authored
      opcodes * arm-dis.c (arm_opcodes): Add ssbb and pssbb and move
           csdb together with them.
           (thumb32_opcodes): Likewise.
      
      gas  * config/tc-arm.c (insns): Add new ssbb and pssbb instructions.
           * testsuite/gas/arm/csdb.s: Add new tests for ssbb and pssbb.
           * testsuite/gas/arm/csdb.d: Likewise
           * testsuite/gas/arm/thumb2_it_bad.s: Likewise.
           * testsuite/gas/arm/thumb2_it_bad.l: Likewise.
           * testsuite/gas/arm/barrier.d: Update with ssbb.
           * testsuite/gas/arm/barrier-thumb.d: Likewise.
      ec468ac4
    • Tamar Christina's avatar
      Add remainder of Em16 restrictions for AArch64 gas. · 3b5e60a4
      Tamar Christina authored
      This adds the missing Em16 constraints the rest of the instructions requiring them
      and also adds a testcase to test all the instructions so these are checked from
      now on.
      
      The Em16 operand constrains the valid registers to the lower 16 registers when used
      with a half precision qualifier.
      
      The list has been cross checked (by hand) through the Arm ARM version Ca.
      
      opcodes/
      
      	PR binutils/23192
      	* aarch64-tbl.h (sqdmlal, sqdmlal2, smlsl, smlsl2, sqdmlsl, sqdmlsl2,
      	mul, smull, smull2, sqdmull, sqdmull2, sqdmulh, sqrdmulh, mla, umlal,
      	umlal2, mls, umlsl, umlsl2, umull, umull2, sqdmlal, sqdmlsl, sqdmull,
      	sqdmulh, sqrdmulh): Use Em16.
      
      gas/
      
      	PR binutils/23192
      	* testsuite/gas/aarch64/illegal-by-element.s: New.
      	* testsuite/gas/aarch64/illegal-by-element.d: New.
      	* testsuite/gas/aarch64/illegal-by-element.l: New.
      
      (cherry picked from commit 45a28947f3fe5693560e9a1d6373807a9e82c04a)
      Signed-off-by: 's avatarTamar Christina <tamar.christina@arm.com>
      3b5e60a4
    • GDB Administrator's avatar
      Automatic date update in version.in · e87681ac
      GDB Administrator authored
      e87681ac
  9. 11 Jul, 2018 5 commits
    • Max Filippov's avatar
      xtensa: don't emit dynamic relocation for weak undefined symbol · 82f32155
      Max Filippov authored
      Resolved reference to a weak undefined symbol in PIE must not have
      a dynamic relative relocation against itself, otherwise the value of a
      reference will be changed from 0 to the base of executable, breaking
      code like the following:
      
        void weak_function (void);
        if (weak_function)
          weak_function ();
      
      This fixes tests for PR ld/22269 and a number of PIE tests in xtensa gcc
      testsuite.
      
      bfd/
      2018-07-11  Max Filippov  <jcmvbkbc@gmail.com>
      
      	* elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Don't allocate
      	space for dynamic relocation for undefined weak symbol.
      	(elf_xtensa_relocate_section): Don't emit R_XTENSA_RELATIVE
      	relocation for undefined weak symbols.
      	(shrink_dynamic_reloc_sections): Don't shrink dynamic relocation
      	section for relocations against undefined weak symbols.
      
      (cherry picked from commit c451bb34ae8bd2d0669bd563366883cfbcf0de9b)
      82f32155
    • Nick Clifton's avatar
      Duplicate code update. · 8e188148
      Nick Clifton authored
      8e188148
    • Franz Sirl's avatar
      Reimport a patch to fix building gold on Cygwin64 systms: m.arena has size_t... · ea22a560
      Franz Sirl authored
      Reimport a patch to fix building gold on Cygwin64 systms: m.arena has size_t on Cygwin64 and thus errors out due to -Werror=format.
      
      gold	* main.cc: Print m.arena as long long.
      ea22a560
    • Franz Sirl's avatar
      Fix printing the size of GOLD's memory areana on Cygwin based systems. · 8238fb62
      Franz Sirl authored
      I just stumbled over this with 2.29.1 while building a cross-toolchain, on Cygwin64, but it's still the same for 2.30. m.arena has size_t on Cygwin64 and thus errors out due to -Werror=format.
      
      gold
      	* main.cc: Print m.arena as long long.
      8238fb62
    • GDB Administrator's avatar
      Automatic date update in version.in · 557b8e0e
      GDB Administrator authored
      557b8e0e
  10. 10 Jul, 2018 3 commits
    • Maciej W. Rozycki's avatar
      BFD/ELF: Correct a `remove' global shadowing error for pre-4.8 GCC · df402ddc
      Maciej W. Rozycki authored
      Remove `-Wshadow' compilation errors:
      
      cc1: warnings being treated as errors
      .../bfd/elflink.c: In function 'bfd_elf_final_link':
      .../bfd/elflink.c:11722: error: declaration of 'remove' shadows a global declaration
      /usr/include/stdio.h:154: error: shadowed declaration is here
      
      which for versions of GCC before 4.8 prevent support for ELF targets
      from being built.  See also GCC PR c/53066.
      
      	bfd/
      	* elflink.c (bfd_elf_final_link): Rename `remove' local variable
      	to `remove_section'.
      
      (cherry picked from commit 5270eddc6ed6b5d8e4e2817491bb44b784fa6f81)
      df402ddc
    • Cary Coutant's avatar
      Fix test for availability of emplace_back. · 21555352
      Cary Coutant authored
      Testing for the GCC version 5 or later isn't right, since C++ 11 support
      wasn't enabled by default until later.  This patch tests the C++ standard
      support directly instead of inferring it from the GCC version.
      
      gold/
      	* incremental.cc (Sized_incremental_binary::setup_readers): Use
      	emplace_back for C++ 11 or later.
      21555352
    • GDB Administrator's avatar
      Automatic date update in version.in · 10a1ed12
      GDB Administrator authored
      10a1ed12
  11. 09 Jul, 2018 5 commits
    • H.J. Lu's avatar
      bfd: Use changequote for "i[3-7]86-*-linux-*" · fa1b3193
      H.J. Lu authored
      Use changequote to match "i[3-7]86-*-linux-*", instead of
      "i3-786-*-linux-*".
      
      	PR ld/23388
      	* configure.ac: Use changequote for "i[3-7]86-*-linux-*".
      	* configure: Regenerated.
      
      (cherry picked from commit 872899f1efeda1e93ed569d322c6b2ee85ce885c)
      fa1b3193
    • H.J. Lu's avatar
      x86: Remove x86 ISA properties with empty bits · f6becb01
      H.J. Lu authored
      There is no need to generate x86 ISA properties with empty bits in
      linker output.
      
      bfd/
      
      	PR ld/23372
      	* elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Remove x86
      	ISA properties with empty bits.
      
      ld/
      
      	PR ld/23372
      	* testsuite/ld-i386/i386.exp: Run pr23372a and pr23372b.
      	* testsuite/ld-i386/pr23372a.d: New file.
      	* testsuite/ld-i386/pr23372a.s: Likewise.
      	* testsuite/ld-i386/pr23372b.d: Likewise.
      	* testsuite/ld-i386/pr23372b.s: Likewise.
      	* testsuite/ld-i386/pr23372c.s: Likewise.
      	* testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
      	* testsuite/ld-x86-64/pr23372a.d: Likewise.
      	* testsuite/ld-x86-64/pr23372a.s: Likewise.
      	* testsuite/ld-x86-64/pr23372b-x32.d: Likewise.
      	* testsuite/ld-x86-64/pr23372b.d: Likewise.
      	* testsuite/ld-x86-64/pr23372b.s: Likewise.
      	* testsuite/ld-x86-64/pr23372c.s: Likewise.
      	* testsuite/ld-x86-64/x86-64.exp: Run pr23372a, pr23372a-x32,
      	pr23372b and pr23372b-x32.
      
      (cherry picked from commit 56ad703d56ffe5dc55d5e719a6ec41fd6cf9bfbe)
      f6becb01
    • Alan Modra's avatar
      Fix diagnostic errors · e55992d4
      Alan Modra authored
      Fixes a number of build errors like the following
      .../elf32-arm.c: In function 'elf32_arm_nabi_write_core_note':
      .../elf32-arm.c:2177: error: #pragma GCC diagnostic not allowed inside functions
      .../elf32-arm.c:2186: error: #pragma GCC diagnostic not allowed inside functions
      See the comment in diagnostics.h.
      
      include/
      	* diagnostics.h: Comment on macro usage.
      bfd/
      	* elf32-arm.c (elf32_arm_nabi_write_core_note): Don't use
      	DIAGNOTIC_PUSH and DIAGNOSTIC_POP unconditionally.
      	* elf32-ppc.c (ppc_elf_write_core_note): Likewise.
      	* elf32-s390.c (elf_s390_write_core_note): Likewise.
      	* elf64-ppc.c (ppc64_elf_write_core_note): Likewise.
      	* elf64-s390.c (elf_s390_write_core_note): Likewise.
      	* elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
      
      (cherry picked from commit fe75810f8e0cc33384f22d0479506711d4014c60)
      e55992d4
    • Alan Modra's avatar
      [GOLD] PowerPC .gnu.attributes support · 1cbba2d2
      Alan Modra authored
      elfcpp/
      	* powerpc.h (Tag_GNU_Power_ABI_FP): Define.
      	(Tag_GNU_Power_ABI_Vector, Tag_GNU_Power_ABI_Struct_Return): Define.
      gold/
      	* powerpc.cc: Include attributes.h.
      	(Powerpc_relobj::attributes_section_data_): New variable, with
      	accessor and associated constructor and destructor support.
      	(Powerpc_dynobj::attributes_section_data_): Likewise.
      	(Powerpc_relobj::do_read_symbols): Stash SHT_GNU_ATTRIBUTES section
      	contents in attributes_section_data_.
      	(Powerpc_dynobj::do_read_symbols): Likewise.
      	(Target_powerpc): Add attributes_section_data_, last_fp_, last_ld_,
      	last_vec_, and last_struct_ vars.
      	(Target_powerpc::merge_object_attributes): New function.
      	(Target_powerpc::do_finalize_sections): Iterate over input objects
      	merging attributes.  Create output attributes section.
      
      (cherry picked from commit 724436fccb68156ff53b7b03cb7f41547a65c30c)
      1cbba2d2
    • GDB Administrator's avatar
      Automatic date update in version.in · 9822d332
      GDB Administrator authored
      9822d332
  12. 08 Jul, 2018 1 commit
  13. 07 Jul, 2018 1 commit
  14. 06 Jul, 2018 5 commits
    • Jim Wilson's avatar
      RISC-V: Add riscv-*-* configure support, and minor cleanup. · 55926930
      Jim Wilson authored
      	bfd/
      	* config.bfd (riscv32*-*-*): Renamed from riscv32-*-*.
      	(riscv64*-*-*): Likewise.
      	(riscv-*-*): Add as an alias for riscv32*-*-*.
      
      	ld/
      	* configure.tgt (riscv-*-*): Add as an alias for riscv32*-*-*.
      
      (cherry picked from commit bb11866d6a635fadb9285d18e2fb819d2de2c28c)
      55926930
    • Tamar Christina's avatar
      Fix SBO bit in disassembly mask for ldrah on AArch64. · e04c0868
      Tamar Christina authored
      The disassembly mask for ldarh incorrectly didn't mask out bit 20 which
      is part of the SBO part of the instruction and shouldn't be considered input.
      
      This fixes the wrong bit fixing the disassembly of instructions to
      ldarh and makes the behavior consistent.
      
      opcodes/
      
      	PR binutils/23242
      	* aarch64-tbl.h (ldarh): Fix disassembly mask.
      
      (cherry picked from commit f311ba7ed84d66ae2cd77bd969747d7ab959d866)
      Signed-off-by: 's avatarTamar Christina <tamar.christina@arm.com>
      e04c0868
    • Tamar Christina's avatar
      Fix the read/write flag for these registers on AArch64 · 96e59904
      Tamar Christina authored
      The previous constraints were based on information already in opcodes and it
      seems that a few of them were wrong.  I have now hand verified the ones changed
      by the previous patch and corrected where needed.
      
      This prevents a warning to be issued when one shouldn't be.
      
      opcodes/
      
      	PR binutils/23369
      	* aarch64-opc.c (aarch64_sys_regs): Make read/write csselr_el1,
      	vsesr_el2, osdtrrx_el1, osdtrtx_el1, pmsidr_el1.
      
      gas/testsuite/
      
      	PR binutils/23369
      	* gas/aarch64/msr.d (csselr_el1,
      	vsesr_el2, osdtrrx_el1, osdtrtx_el1, pmsidr_el1): New.
      	* gas/aarch64/msr.s: Likewise.
      
      (cherry picked from commit cba05feb51cb97f75f9a7814b081ce45245ac7b2)
      Signed-off-by: 's avatarTamar Christina <tamar.christina@arm.com>
      96e59904
    • Nick Clifton's avatar
      Fix bug generating relocations for notes created by the assembler. · c80d3fdd
      Nick Clifton authored
      	* write.c (maybe_generate_build_notes): Bias reloc offsets by the
      	number of notes already generated.
      c80d3fdd
    • Sebastian Huber's avatar
      Update config.sub · 0b2e4394
      Sebastian Huber authored
      	* config.sub: Sync with upstream version 2018-07-03.
      0b2e4394