[v2,04/18] RISC-V: Support dynamic loader for the 32-bit

Message ID a109dc84a9d3f684d5f19e224c152bb988dc20d3.1591201405.git.alistair.francis@wdc.com
State Superseded
Headers show
Series
  • glibc port for 32-bit RISC-V (RV32)
Related show

Commit Message

Siddhesh Poyarekar via Libc-alpha June 3, 2020, 4:25 p.m.
From: Zong Li <zongbox@gmail.com>


Add the LD_SO_ABI definition for RISC-V 32-bit.
---
 sysdeps/unix/sysv/linux/riscv/ldconfig.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.26.2

Comments

Siddhesh Poyarekar via Libc-alpha July 8, 2020, 1:35 a.m. | #1
On Wed, 3 Jun 2020, Alistair Francis via Libc-alpha wrote:

> From: Zong Li <zongbox@gmail.com>

> 

> Add the LD_SO_ABI definition for RISC-V 32-bit.


 LGTM.

Reviewed-by: Maciej W. Rozycki <macro@wdc.com>


  Maciej

Patch

diff --git a/sysdeps/unix/sysv/linux/riscv/ldconfig.h b/sysdeps/unix/sysv/linux/riscv/ldconfig.h
index 3d7065b293..35badb7cf0 100644
--- a/sysdeps/unix/sysv/linux/riscv/ldconfig.h
+++ b/sysdeps/unix/sysv/linux/riscv/ldconfig.h
@@ -24,7 +24,7 @@ 
 #if __riscv_xlen == 64
 # define LD_SO_ABI "riscv64-lp64"
 #else
-# error "rv32i-based targets are not supported"
+# define LD_SO_ABI "riscv32-ilp32"
 #endif
 
 #define SYSDEP_KNOWN_INTERPRETER_NAMES				\