Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Andreas Radke (AndyRTR) - Wednesday, 30 June 2021, 05:37 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Filipe LaĆ­ns (FFY00)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
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

Loading...