[PATCH] ldscript: riscv: Fix libpath_suffix selection
Mark Goncharov
mark.goncharov@syntacore.com
Tue Jul 8 07:05:15 GMT 2025
@Nelson Chu, @Alan Modra, I don't have commit access yet. Who can make the commit instead of me?
________________________________
From: Nelson Chu <nelson@rivosinc.com>
Sent: 05 July 2025 18:30:33
To: Alan Modra
Cc: Mark Goncharov; binutils@sourceware.org; jimw@sifive.com
Subject: Re: [PATCH] ldscript: riscv: Fix libpath_suffix selection
Thanks for all, please commit.
Nelson
On Sat, Jul 5, 2025 at 8:09 PM Alan Modra <amodra@gmail.com<mailto:amodra@gmail.com>> wrote:
On Thu, Jul 03, 2025 at 02:53:22PM +0000, Mark Goncharov wrote:
> When building a cross-compiler ld for RISC-V Linux systems, you can specify target=riscv64*-linux* to create a linker that supports both 32-bit (-march=rv32*) and 64-bit (-march=rv64*) architectures.
> The specified -march value populates the EMULATION_NAME variable, which determines the default linker script selection.
> For proper riscv64 target support, the build process must prepare both elf32lriscv* and elf64lriscv* linker scripts.
> These should align with the standard RISC-V Linux sysroot directory structure.
Makes sense to me, but I'm not a riscv maintainer so you should wait
for approval from one of them.
--
Alan Modra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250708/509e48c8/attachment.htm>
More information about the Binutils
mailing list