diff --git a/src/cmd/internal/obj/loong64/a.out.go b/src/cmd/internal/obj/loong64/a.out.go
index 9309a3b09a9c1f5abb74a71438c97ccf9261d5b1..e48160eaa292ef15fcc801808dff7dbbd4f4602a 100644
--- a/src/cmd/internal/obj/loong64/a.out.go
+++ b/src/cmd/internal/obj/loong64/a.out.go
@@ -210,21 +210,21 @@ const (
 	C_DCON    // other 64 (could subdivide further)
 	C_SACON   // $n(REG) where n <= int12
 	C_LACON   // $n(REG) where int12 < n <= int32
-	C_EXTADDR // external symbol address
 	C_DACON   // $n(REG) where int32 < n
+	C_EXTADDR // external symbol address
 	C_BRAN
 	C_SAUTO
 	C_LAUTO
 	C_ZOREG
 	C_SOREG
 	C_LOREG
-	C_GOK
 	C_ADDR
 	C_TLS_LE
 	C_TLS_IE
 	C_GOTADDR
 	C_TEXTSIZE
 
+	C_GOK
 	C_NCLASS // must be the last
 )
 
diff --git a/src/cmd/internal/obj/loong64/cnames.go b/src/cmd/internal/obj/loong64/cnames.go
index 8e103b888f49bc7521fae282804f73bbac6c03c4..985a331defa0fdd04f874dd8c2fdbcb8c633a447 100644
--- a/src/cmd/internal/obj/loong64/cnames.go
+++ b/src/cmd/internal/obj/loong64/cnames.go
@@ -22,19 +22,19 @@ var cnames0 = []string{
 	"DCON",
 	"SACON",
 	"LACON",
-	"EXTADDR",
 	"DACON",
+	"EXTADDR",
 	"BRAN",
 	"SAUTO",
 	"LAUTO",
 	"ZOREG",
 	"SOREG",
 	"LOREG",
-	"GOK",
 	"ADDR",
 	"TLS_LE",
 	"TLS_IE",
 	"GOTADDR",
 	"TEXTSIZE",
+	"GOK",
 	"NCLASS",
 }