diff --git a/db/cross.xml b/db/cross.xml
index e4275a53..c0a236d2 100644
--- a/db/cross.xml
+++ b/db/cross.xml
@@ -54,6 +54,7 @@
+
package Builder is
diff --git a/db/linker.xml b/db/linker.xml
index 2d511b50..c15ab3be 100644
--- a/db/linker.xml
+++ b/db/linker.xml
@@ -938,6 +938,18 @@
+
+
+
+
+
+ for Archive_Builder use ("loongarch64-linux-gnu-ar", "cr");
+ for Archive_Builder_Append_Option use ("q");
+ for Archive_Indexer use ("loongarch64-linux-gnu-ranlib");
+ for Archive_Suffix use ".a";
+
+
+
@@ -1013,6 +1025,7 @@
+
for Archive_Builder use ("ar", "cr");
@@ -1108,6 +1121,7 @@
+
for Library_Support use "static_only";
@@ -1908,6 +1922,7 @@
+
package Linker is
@@ -1960,6 +1975,7 @@
+
package Linker is
@@ -2001,6 +2017,7 @@
+
package Linker is
diff --git a/db/targetset.xml b/db/targetset.xml
index f3c2b5e4..d3a3b296 100644
--- a/db/targetset.xml
+++ b/db/targetset.xml
@@ -715,6 +715,20 @@
i.86-.*-pikeos
+
+
+ loongarch32-elf
+ loongarch32-none-elf
+ loongarch32-unknown-elf
+
+
+
+
+ loongarch64-elf
+ loongarch64-none-elf
+ loongarch64-unknown-elf
+
+
c