and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

  1. 20 Jun, 2017 5 commits
    • Thomas Preud'homme's avatar
      [ARM] Fix expansion of ldr pseudo instruction · c0a55875
      Thomas Preud'homme authored
      The LDR rX, =cst pseudo-instruction suffers from two issues for loading
      integer constants in Thumb mode:
      
      - movs is used if the constant and register can be encoded using that
        instruction which leads to unexpected behavior due to its flag-setting
        behavior
      - mov.w, movw and mvn are used for r13 (sp) and r15 (pc) but these
        encoding are marked as UNPREDICTABLE
      
      This patch fixes those issues and update testing accordingly.
      
      2017-06-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
      	Backport from mainline
      	2017-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
      gas/
      	* config/tc-arm.c (move_or_literal_pool): Remove code generating MOVS.
      	Forbid MOV.W and MOVW if destination is SP or PC.
      	* testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s: Explain
      	expectation of LDR not generating a MOVS for low registers and small
      	constants.  Add tests of MOVW generation.
      	* testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Update
      	expected disassembly.
      c0a55875
    • Thomas Preud'homme's avatar
      Make import libraries relocatable objects · 01106f56
      Thomas Preud'homme authored
      For ELF targets --out-implib currently generates an executable file
      (e_type is ET_EXEC) despite the file being expected to be linked against
      some other object file to make an executable later. It seems therefore
      more sensible to make the import library a relocatable object file
      (e_type set to ET_REL).
      
      Incidentally, as dicted by requirement 8 of
      "ARM v8-M Security Extensions: Requirements on Development Tools"
      (document ARM-ECM-0359818) version 1.0, import libraries generated when
      using --cmse-implib *must* be relocatable object file so this commit
      also adds an assert there in case the type of ELF import library is
      changed again in the future.
      
      2017-06-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
      	Backport from mainline
      	2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
      bfd/
      	* elflink.c (elf_output_implib): Remove executable flag from import
      	library bfd.
      	* elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import
      	library is a relocatable object file.
      
      gas/
      	* testsuite/ld-arm/arm-elf.exp
      	(Secure gateway import library generation): Check e_type field
      	of import library and executable produced.
      	* testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
      01106f56
    • James Clarke's avatar
      [GOLD] Avoid duplicate PLT stub symbols on ppc32 · a3e00a87
      James Clarke authored
      If two objects are compiled with -fPIC or -fPIE and call the same
      function, two different PLT entries are created, one for each object,
      but the same stub symbol name is used for both.
      
      	* powerpc.cc (Stub_table::define_stub_syms): Always include object's
      	uniq_ value.
      a3e00a87
    • Nick Clifton's avatar
      Fix building riscv targets with gcc v6.3.1 · 467f950b
      Nick Clifton authored
      	* config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
      	warning about discarding a const qualifier.
      467f950b
    • GDB Administrator's avatar
      Automatic date update in version.in · ab75d0a7
      GDB Administrator authored
      ab75d0a7
  2. 19 Jun, 2017 1 commit
  3. 18 Jun, 2017 1 commit
  4. 17 Jun, 2017 1 commit
  5. 16 Jun, 2017 1 commit
  6. 15 Jun, 2017 1 commit
  7. 14 Jun, 2017 1 commit
  8. 13 Jun, 2017 2 commits
  9. 12 Jun, 2017 1 commit
  10. 11 Jun, 2017 1 commit
  11. 10 Jun, 2017 1 commit
  12. 09 Jun, 2017 1 commit
  13. 08 Jun, 2017 1 commit
  14. 07 Jun, 2017 2 commits
  15. 06 Jun, 2017 1 commit
  16. 05 Jun, 2017 2 commits
  17. 04 Jun, 2017 1 commit
  18. 03 Jun, 2017 2 commits
    • Alan Modra's avatar
      PR21503, Gold doesn't create linker stub symbols on ppc64 · 73400258
      Alan Modra authored
      	PR 21503
      	* options.h: Add --emit-stub-syms option.
      	* powerpc.cc (object_id): New.
      	(Powerpc_relobj): Add uniq_ and accessor.  Sort variables for
      	better packing.
      	(Powerpc_dynobj): Sort variables for better packing.
      	(Target_powerpc::define_local): New function.
      	(Target_powerpc::group_sections): Pass stub table size to
      	Stub_table constructor.
      	(Target_powerpc::do_relax): Define stub and glink symbols.
      	(Stub_table): Add uniq_ variable, and id param to constructor.
      	(Stub_table::Plt_stub_ent): Add indx_ variable.
      	(Stub_table::Branch_stub_entries): Move typedef earlier.
      	(Stub_table::branch_stub_size): Replace "to" parameter with a
      	Branch_stub_entries iterator.
      	(Stub_table::add_long_branch_entry): Adjust to suit.
      	(Stub_table::add_plt_call_entry): Set indx_.
      	(Stub_table::define_stub_syms): New function.
      73400258
    • GDB Administrator's avatar
      Automatic date update in version.in · dedd9610
      GDB Administrator authored
      dedd9610
  19. 02 Jun, 2017 2 commits
    • H.J. Lu's avatar
      x86: Remove linker option: -z prefix-nop · 95ac1498
      H.J. Lu authored
      Since it is incorrect to convert
      
      	bnd call *foo@GOTPCREL(%rip)
      
      to
      
      	bnd nop
      	call foo
      
      this patch removes the "-z prefix-nop" option from x86 linker.
      
      	* emulparams/call_nop.sh: Remove -z prefix-nop.
      	* ld.texinfo: Likewise.
      	* testsuite/ld-i386/call3c.d: Check for linker error.
      	* testsuite/ld-x86-64/call1c.d: Likewise.
      
      (cherry picked from commit 4a4a4a27)
      95ac1498
    • GDB Administrator's avatar
      Automatic date update in version.in · 9561fa48
      GDB Administrator authored
      9561fa48
  20. 01 Jun, 2017 1 commit
  21. 31 May, 2017 2 commits
  22. 30 May, 2017 1 commit
  23. 29 May, 2017 1 commit
  24. 28 May, 2017 1 commit
  25. 27 May, 2017 1 commit
  26. 26 May, 2017 1 commit
  27. 25 May, 2017 1 commit
  28. 24 May, 2017 1 commit
  29. 23 May, 2017 1 commit
  30. 22 May, 2017 1 commit