[binutils-gdb] LoongArch: Enable loongarch_elf64_vec loongarch64_pei_vec on LA32 target

liu zhensong liuzhensong@sourceware.org
Wed Dec 10 08:07:50 GMT 2025


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

commit 51d2089c3b05c0d45ec7743e3183296b86759b6d
Author: mengqinggang <mengqinggang@loongson.cn>
Date:   Mon Sep 8 16:43:05 2025 +0800

    LoongArch: Enable loongarch_elf64_vec loongarch64_pei_vec on LA32 target
    
    Fix -march=loongarch64 error on LA32 target.

Diff:
---
 bfd/config.bfd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/config.bfd b/bfd/config.bfd
index 7343f7cb367..4a0b7886acc 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1472,7 +1472,7 @@ case "${targ}" in
 #ifdef BFD64
   loongarch32-*)
     targ_defvec=loongarch_elf32_vec
-    targ_selvecs="loongarch_elf32_vec"
+    targ_selvecs="loongarch_elf32_vec loongarch_elf64_vec loongarch64_pei_vec"
     want64=true
     ;;


More information about the Binutils-cvs mailing list