[PATCH] ldscript: riscv: Fix libpath_suffix selection
Nelson Chu
nelson@rivosinc.com
Tue Jul 8 10:38:18 GMT 2025
Committed after passing at least gcc/binutils regressions of
riscv-gnu-toolchain.
Thanks
Nelson
On Tue, Jul 8, 2025 at 3:05 PM Mark Goncharov <mark.goncharov@syntacore.com>
wrote:
> @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> 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/1397db34/attachment.htm>
More information about the Binutils
mailing list