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
Opened by carado (carado) - Tuesday, 29 June 2021, 15:24 GMT
Last edited by Toolybird (Toolybird) - Sunday, 16 April 2023, 03:37 GMT
|
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. |
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.
Sunday, 16 April 2023, 03:37 GMT
Reason for closing: Fixed
Additional comments about closing: Cannot repro. Seems to work fine with latest pkg.