<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nelson Chu <nelson@rivosinc.com><br>
<b>Sent:</b> 05 July 2025 18:30:33<br>
<b>To:</b> Alan Modra<br>
<b>Cc:</b> Mark Goncharov; binutils@sourceware.org; jimw@sifive.com<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 gmail_quote_container">
<div dir="ltr" class="gmail_attr">On Sat, Jul 5, 2025 at 8:09 PM Alan Modra <<a href="mailto:amodra@gmail.com">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>
</body>
</html>