[Bug binutils/31595] Abort in AArch64 disassembler's get_sreg_qualifier_from_value() function

2024-04-02 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31595

Nick Clifton  changed:

   What|Removed |Added

Version|unspecified |2.43 (HEAD)

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


[Bug binutils/31595] New: Abort in AArch64 disassembler's get_sreg_qualifier_from_value() function

2024-04-02 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31595

Bug ID: 31595
   Summary: Abort in AArch64 disassembler's
get_sreg_qualifier_from_value() function
   Product: binutils
   Version: unspecified
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: nickc at redhat dot com
  Target Milestone: ---

Attempting to disassemble the latest version of glibc compiled for the AArch64
for Fedora Rawhide results in:

  $ objdump -D lib64/libc.so.6
  objdump: opcodes/aarch64-dis.c:251: get_sreg_qualifier_from_value: 
   Assertion `value <= 0x4 && aarch64_get_qualifier_standard_value (qualifier)
== value' failed.
  Abort (core dumped)

This was using the version of libc.so.6 obtained from
glibc-2.39.9000-10.fc41.aarch64.rpm but I can also reproduce the problem with a
libc.so.6 from RHEL-9.  I suspect that any recent-ish version of libc.so will
do.

I suspect that the issue is with the processing of the rcpc3 size field, since
the stack backtrace shows that get_sreg_qualifier_from_value is called from
do_special_decoding at opcodes/aarch64-dis.c:2678.

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


[Bug ld/31458] FAIL: MIPS eh-frame 3 with --no-keep-memory

2024-04-02 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31458

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |2.43
 Status|NEW |RESOLVED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

--- Comment #3 from Alan Modra  ---
Patch with some tidies applied.

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


[Bug ld/31458] FAIL: MIPS eh-frame 3 with --no-keep-memory

2024-04-02 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31458

--- Comment #2 from Sourceware Commits  ---
The master branch has been updated by Alan Modra :

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

commit 33c58f484406bd9665e5bd15637600540157f612
Author: H.J. Lu 
Date:   Thu Mar 7 08:28:29 2024 -0800

PR31458, FAIL: MIPS eh-frame 3 with --no-keep-memory

PR 31458
bfd/
* elf-bfd.h (_bfd_elf_link_read_relocs),
(_bfd_elf_link_info_read_relocs): Constify section.
* elflink.c: Likewise.
* elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Read
relocs again in case --no-keep-memory.
ld/
* testsuite/ld-mips-elf/mips-elf.exp: Run --no-keep-memory
version of eh-frame3 test.

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