FS#71395 - [riscv64-elf-binutils] segfault on raw binaries

Attached to Project: Community Packages
Opened by carado (carado) - Tuesday, 29 June 2021, 15:24 GMT
Last edited by Toolybird (Toolybird) - Sunday, 16 April 2023, 03:37 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Filipe Laíns (FFY00)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
riscv64-elf-objdump works fine on ELFs, but segfaults when ran on binaries; alternatives (such as riscv-sifive-elf-objdump from AUR package riscv-sifive-elf-binutils) works as expected (they dump the code of the raw binary).

Additional info:
`riscv64-elf-objdump --version` indicates "GNU objdump (GNU Binutils) 2.36.1"; my installed riscv64-elf-binutils version is the latest (2.36.1-2).

Steps to reproduce:
Calling `riscv64-elf-objdump -b binary -m riscv -D t.bin` on a raw binary (extracted from an elf using `riscv64-elf-objcopy -O binary t.elf t.bin`), the following output is produced:

t.bin: file format binary

Segmentation fault (core dumped)

An sample of raw binary RISC-V code is attached.
   t.bin (0.2 KiB)
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 16 April 2023, 03:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  Cannot repro. Seems to work fine with latest pkg.

Loading...