[binutils-gdb] ld: enable elf32loongarch as extra target for elf64loongarch and vice versa

liu zhensong liuzhensong@sourceware.org
Thu Jun 4 01:55:12 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f8b82c843a960020c493111385b8c5728c20eac9

commit f8b82c843a960020c493111385b8c5728c20eac9
Author: Xi Ruoyao <xry111@xry111.site>
Date:   Fri May 15 01:13:58 2026 +0800

    ld: enable elf32loongarch as extra target for elf64loongarch and vice versa
    
    Allow people to build GCC with multilib support even without
    --enable-targets=all in binutils configuration.

Diff:
---
 ld/configure.tgt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ld/configure.tgt b/ld/configure.tgt
index 5eb10f52611..00c109e5079 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -1024,8 +1024,10 @@ z8k-*-coff)		targ_emul=z8002
 			targ_extra_ofiles=
 			;;
 loongarch32-*)		targ_emul=elf32loongarch
+			targ_extra_libpath=elf64loongarch
 			;;
 loongarch64-*)		targ_emul=elf64loongarch
+			targ_extra_libpath=elf32loongarch
 			;;
 *-*-ieee*)		targ_emul=vanilla
 			targ_extra_ofiles=


More information about the Binutils-cvs mailing list