riscv64:ld: option --oformat pei-riscv64-little raises segmentation fault (SIGSEGV)
Johannes Krottmayer
krotti83@proton.me
Mon Feb 16 07:50:13 GMT 2026
Hello,
I have tried to create a PE image for an EFI environment targeting
RISCV64. But when I try to pass the option --oformat pei-riscv64-little
to LD, LD crashes with a segmentation fault.
LD version:
$ riscv64-unknown-linux-gnu-ld --version
GNU ld (GNU Binutils) 2.46
[...]
$
The source from the issue according GDB:
bfd/elfnn-riscv.c:
void
riscv_elfNN_set_options (struct bfd_link_info *link_info,
struct riscv_elf_params *params)
{
riscv_elf_hash_table (link_info)->params = params; // <-- Crashes here
}
Has somebody noticed the same issue? I have thought before I create
a bug report, I ask this in this list first.
Kind regards,
Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - krotti83@proton.me - 0x1A5D6E0E.asc
Type: application/pgp-keys
Size: 888 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260216/c350ed85/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 322 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20260216/c350ed85/attachment.sig>
More information about the Binutils
mailing list