[Bug ld/21569] [avr] Make avr.sc so generic that there is no need for avrtiny.sc.

2017-06-15 Thread gjl at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21569

Georg-Johann Lay  changed:

   What|Removed |Added

   Target Milestone|--- |2.29

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/21569] [avr] Make avr.sc so generic that there is no need for avrtiny.sc.

2017-06-15 Thread gjl at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21569

Georg-Johann Lay  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Georg-Johann Lay  ---
Done.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/21532] AArch64: Symbol address inconsistency across compilation units

2017-06-15 Thread jiwang at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21532

Jiong Wang  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #11 from Jiong Wang  ---
Mark as fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/21532] AArch64: Symbol address inconsistency across compilation units

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21532

--- Comment #10 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Jiong Wang :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6353d82b8fa825c2143f41e84b0d5d4446c6e99a

commit 6353d82b8fa825c2143f41e84b0d5d4446c6e99a
Author: Jiong Wang 
Date:   Thu Jun 15 16:51:01 2017 +0100

[AArch64] Allow COPY relocation elimination

  As discussed at the PR, this patch tries to avoid COPY relocation
generation
and propagate the original relocation into runtime if it was relocating on
writable section.  The ELIMINATE_COPY_RELOCS has been set to true and it's
underlying infrastructure has been improved so that the COPY reloc
elimination
at least working on absoluate relocations (ABS64) on AArch64.

  BFD linker copy relocation elimination framwork requires the backend to
always
allocate dynrelocs for all those relocation types that are possible to
introduce
copy relocations.  This is for adjust_dynamic_symbol hook to be able to get
all
symbol reference information.  Should one symbol is referenced by more than
one
relocations, if there is any of them needs copy relocation then linker
should
generate it.

bfd/
PR ld/21532
* elfnn-aarch64.c (ELIMINATE_COPY_RELOCS): Set to 1.
(elfNN_aarch64_final_link_relocate): Also propagate relocations to
runtime for if there needs copy relocation elimination.
(need_copy_relocation_p): New function.  Return true for symbol with
pc-relative references and if it's against read-only sections.
(elfNN_aarch64_adjust_dynamic_symbol): Use need_copy_relocation_p.
(elfNN_aarch64_check_relocs): Allocate dynrelocs for relocation types
that are related with accessing external objects.
(elfNN_aarch64_gc_sweep_hook): Sync the relocation types with the
change
in elfNN_aarch64_check_relocs.

ld/
* testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
* testsuite/ld-aarch64/copy-reloc-2.d: New test.
* testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source
file.
* testsuite/ld-aarch64/copy-reloc-eliminate.d: New test.
* testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects.
* testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21594] global-buffer-overflow in OP_G

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21594

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8cac017d35ef374e65acc98818a17cf8a652cbd0

commit 8cac017d35ef374e65acc98818a17cf8a652cbd0
Author: H.J. Lu 
Date:   Thu Jun 15 08:21:48 2017 -0700

i386-dis: Add 2 tests with invalid bnd register

PR binutils/21594
* testsuite/gas/i386/mpx.s: Add 2 tests with invalid bnd
register.
* testsuite/gas/i386/x86-64-mpx.s: Likewise.
* testsuite/gas/i386/mpx.d: Updated.
* testsuite/gas/i386/x86-64-mpx.d: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21594] global-buffer-overflow in OP_G

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21594

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0d96e4df4812c3bad77c229dfef47a9bc115ac12

commit 0d96e4df4812c3bad77c229dfef47a9bc115ac12
Author: H.J. Lu 
Date:   Thu Jun 15 06:40:17 2017 -0700

i386-dis: Check valid bnd register

Since there are only 4 bnd registers, return "(bad)" for register
number > 3.

PR binutils/21594
* i386-dis.c (OP_E_register): Check valid bnd register.
(OP_G): Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21595] global-buffer-overflow in aarch64_ext_ldst_reglist

2017-06-15 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21595

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #4 from Nick Clifton  ---
Hi Aadamski,

  Thanks for reporting this bug.  This was a simple case of a missing range
  check when decoding the LDST instruction, so I have checked in a small
  patch to fix it.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21595] global-buffer-overflow in aarch64_ext_ldst_reglist

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21595

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cd3ea7c69acc5045eb28f9bf80d923116e15e4f5

commit cd3ea7c69acc5045eb28f9bf80d923116e15e4f5
Author: Nick Clifton 
Date:   Thu Jun 15 13:26:54 2017 +0100

Prevent address violation problem when disassembling corrupt aarch64
binary.

PR binutils/21595
* aarch64-dis.c (aarch64_ext_ldst_reglist): Check for an out of
range value.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21581] stack-buffer-overflow in bfd_get_string

2017-06-15 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21581

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #6 from Nick Clifton  ---
Hi Aadamski,

  Thanks for reporting this bug.  The problem is the same as PR 21582 except
  that it is happening in the archive handling part of the IEEE scanning code.
  I have checked in a similar fix.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21581] stack-buffer-overflow in bfd_get_string

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21581

--- Comment #5 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=62b76e4b6e0b4cb5b3e0053d1de4097b32577049

commit 62b76e4b6e0b4cb5b3e0053d1de4097b32577049
Author: Nick Clifton 
Date:   Thu Jun 15 13:08:47 2017 +0100

Fix address violation parsing a corrupt ieee binary.

PR binutils/21581
(ieee_archive_p): Use a static buffer to avoid compiler bugs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21582] stack-buffer-overflow in ieee_object_p

2017-06-15 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21582

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Nick Clifton  ---
Hi Aadamski,

  Thanks for the confirmation - patch applied.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21582] stack-buffer-overflow in ieee_object_p

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21582

--- Comment #7 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=63634bb4a107877dd08b6282e28e11cfd1a1649e

commit 63634bb4a107877dd08b6282e28e11cfd1a1649e
Author: Nick Clifton 
Date:   Thu Jun 15 12:44:23 2017 +0100

Avoid a possible compiler bug by using a static buffer instead of a stack
local buffer.

PR binutils/21582
* ieee.c (ieee_object_p): Use a static buffer to avoid compiler
bugs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21588] stack-buffer-overflow in rl78_decode_opcode

2017-06-15 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21588

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #5 from Nick Clifton  ---
Hi Aadamski,

  Thanks for reporting this bug.

  The problem this time was an overrun of the buffer used to contain RL78 
  opcodes.  I have added a simple overflow check, so the problem should now
  be resolved.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21588] stack-buffer-overflow in rl78_decode_opcode

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21588

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=63323b5b23bd83fa7b04ea00dff593c933e9b0e3

commit 63323b5b23bd83fa7b04ea00dff593c933e9b0e3
Author: Nick Clifton 
Date:   Thu Jun 15 12:37:01 2017 +0100

Fix address violation when disassembling a corrupt RL78 binary.

PR binutils/21588
* rl78-decode.opc (OP_BUF_LEN): Define.
(GETBYTE): Check for the index exceeding OP_BUF_LEN.
(rl78_decode_opcode): Use OP_BUF_LEN as the length of the op_buf
array.
* rl78-decode.c: Regenerate.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21577] global-buffer-overflow in print_insn_score32

2017-06-15 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21577

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #4 from Nick Clifton  ---
Hi Aadamski,

  I could not reproduce this failure.  Please could you check again to see
  if it is still present ?  I suspect that one of the recent patches to fix
  the other problems you detected may have fixed this problem as well.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21579] heap-buffer-overflow in _bfd_hexdump

2017-06-15 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21579

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #5 from Nick Clifton  ---
Hi Adamski,

  Thanks for reporting this bug.  It turns out that in was very similar to 
  21589, and the fix is almost identical.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21579] heap-buffer-overflow in _bfd_hexdump

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21579

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=76800cba595efc3fe95a446c2d664e42ae4ee869

commit 76800cba595efc3fe95a446c2d664e42ae4ee869
Author: Nick Clifton 
Date:   Thu Jun 15 12:08:57 2017 +0100

Handle EITR records in VMS Alpha binaries with overlarge command length
parameters.

PR binutils/21579
* vms-alpha.c (_bfd_vms_slurp_etir): Extend check of cmd_length.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21586] global-buffer-overflow in decode_pseudodbg_assert_0

2017-06-15 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21586

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #7 from Nick Clifton  ---
Hi Aadamski,

  Thanks for reporting this bug.

  The first testcase (5ddfa) has already been fixed by a previous patch.
  (I did not check to find out which one, but it will have been a recent
  one).

  The second testcase (eaa0e) does trigger the fault you reported and I
  have checked in a patch to fix the cause - an invalid array access.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21586] global-buffer-overflow in decode_pseudodbg_assert_0

2017-06-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21586

--- Comment #6 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=08c7881b814c546efc3996fd1decdf0877f7a779

commit 08c7881b814c546efc3996fd1decdf0877f7a779
Author: Nick Clifton 
Date:   Thu Jun 15 11:52:02 2017 +0100

Prevent invalid array accesses when disassembling a corrupt bfin binary.

PR binutils/21586
* bfin-dis.c (gregs): Clip index to prevent overflow.
(regs): Likewise.
(regs_lo): Likewise.
(regs_hi): Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21582] stack-buffer-overflow in ieee_object_p

2017-06-15 Thread aadamski at quarkslab dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21582

--- Comment #6 from aadamski at quarkslab dot com ---
Sounds like it's fixed for me!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils