<div dir="ltr"><div>Committed after passing at least gcc/binutils regressions of riscv-gnu-toolchain.</div><div><br></div><div>Thanks</div><div>Nelson</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Jul 8, 2025 at 3:05 PM Mark Goncharov <<a href="mailto:mark.goncharov@syntacore.com">mark.goncharov@syntacore.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div id="m_-2381544385379399161divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>@Nelson Chu, @Alan Modra, I don't have commit access yet. Who can make the commit instead of me?</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-2381544385379399161divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nelson Chu <<a href="mailto:nelson@rivosinc.com" target="_blank">nelson@rivosinc.com</a>><br>
<b>Sent:</b> 05 July 2025 18:30:33<br>
<b>To:</b> Alan Modra<br>
<b>Cc:</b> Mark Goncharov; <a href="mailto:binutils@sourceware.org" target="_blank">binutils@sourceware.org</a>; <a href="mailto:jimw@sifive.com" target="_blank">jimw@sifive.com</a><br>
<b>Subject:</b> Re: [PATCH] ldscript: riscv: Fix libpath_suffix selection</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Thanks for all, please commit.</div>
<div><br>
</div>
<div>Nelson</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Jul 5, 2025 at 8:09 PM Alan Modra <<a href="mailto:amodra@gmail.com" target="_blank">amodra@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Thu, Jul 03, 2025 at 02:53:22PM +0000, Mark Goncharov wrote:<br>
> 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.<br>
> The specified -march value populates the EMULATION_NAME variable, which determines the default linker script selection.<br>
> For proper riscv64 target support, the build process must prepare both elf32lriscv* and elf64lriscv* linker scripts.<br>
> These should align with the standard RISC-V Linux sysroot directory structure.<br>
<br>
Makes sense to me, but I'm not a riscv maintainer so you should wait<br>
for approval from one of them.<br>
<br>
-- <br>
Alan Modra<br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote></div></div>