[Bug binutils/27814] New: objdump crashes when disassembling a non-ELF RISC-V binary

2021-05-03 Thread mtvec at pm dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27814

Bug ID: 27814
   Summary: objdump crashes when disassembling a non-ELF RISC-V
binary
   Product: binutils
   Version: 2.36.1
Status: UNCONFIRMED
  Severity: critical
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mtvec at pm dot me
  Target Milestone: ---
Target: RISC-V

Created attachment 13418
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13418&action=edit
Fix for missing null-check

objdump crashes when disassembling a non-ELF RISC-V binary due to a missing
null-pointer check. I've attached a patch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/27815] New: gold fails to build with latest GCC

2021-05-03 Thread msc at linux dot ibm.com
https://sourceware.org/bugzilla/show_bug.cgi?id=27815

Bug ID: 27815
   Summary: gold fails to build with latest GCC
   Product: binutils
   Version: 2.37 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: msc at linux dot ibm.com
CC: ian at airs dot com
  Target Milestone: ---

Building gold with upstream GCC started to fail after GCC commit:

commit d96db15967e78d7cecea3b1cf3169ceb924678ac
Author: Jonathan Wakely 
Date:   Wed Apr 28 17:46:01 2021 +0100

libstdc++: Deprecate non-standard std::pair constructors [PR 99957]

gold/gc.h is using one of the deprecated std::pair constructors to create an
empty Section_id in some cases:

binutils/gold/gc.h:250:37: error: ISO C++ says that these are ambiguous, even
though the worst conversion for the first is better than the worst conversion
for the second: [-Werror]
  250 | (*secvec).push_back(Section_id(NULL, 0));
  | ^~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27814] objdump crashes when disassembling a non-ELF RISC-V binary

2021-05-03 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27814

Jim Wilson  changed:

   What|Removed |Added

 CC||wilson at gcc dot gnu.org

--- Comment #1 from Jim Wilson  ---
Patches for the GNU toolchain require an FSF copyright assignment, except for
some trivial patches.  Do you have a copyright assignment?  mtvec is a RISC-V
CSR so it seems unlikely to be your name.  I would need a name to check the
records at the FSF.  Are you interested in getting an assignment?  If you don't
or can't get an assignment, then it would be useful to give a description of
the problem so someone else with an assignment can write the patch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27814] objdump crashes when disassembling a non-ELF RISC-V binary

2021-05-03 Thread mtvec at pm dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27814

--- Comment #2 from mtvec at pm dot me ---
I don't have a copyright assignment yet but I would be interested in getting
one. What is the procedure for this?

This patch is quite trivial by the way so we might be able to skip it in this
case?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27764] RISC-V: Test cases for A extension instructions are missing

2021-05-03 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27764

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Jim Wilson :

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

commit 6bdf164fc57e0191d40d903ab549666a12fc77a8
Author: Christoph Muellner 
Date:   Thu Apr 22 00:28:27 2021 +0200

RISC-V: PR27764, Add tests for A extension

gas/
PR 27764
* testsuite/gas/riscv/a-ext-64.d: New testcase.
* testsuite/gas/riscv/a-ext-64.s: Likewise.
* testsuite/gas/riscv/a-ext.d: Likewise.
* testsuite/gas/riscv/a-ext.s: Likewise.

Signed-off-by: Christoph Muellner 

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27764] RISC-V: Test cases for A extension instructions are missing

2021-05-03 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27764

Jim Wilson  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |wilson at gcc dot 
gnu.org
 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED
 CC||wilson at gcc dot gnu.org

--- Comment #2 from Jim Wilson  ---
Fixed on mainline.

-- 
You are receiving this mail because:
You are on the CC list for the bug.