misc: It is not needed to disable linker relaxations with la64
diff --git a/common/common.mk b/common/common.mk
index 3cc61e64..b5041805 100644
--- a/common/common.mk
+++ b/common/common.mk
@@ -191,8 +191,7 @@ ifeq ($(TARGET),uefi-loongarch64)
-march=loongarch64 \
-mabi=lp64s \
-mfpu=none \
- -msimd=none \
- -mno-relax
+ -msimd=none
override CPPFLAGS_FOR_TARGET := \
-I ../nyu-efi/inc \
@@ -244,7 +243,6 @@ endif
ifeq ($(TARGET),uefi-loongarch64)
override LDFLAGS_FOR_TARGET += \
-m elf64loongarch \
- --no-relax \
-pie \
-z text
endif
diff --git a/test/test.mk b/test/test.mk
index 97bdc59c..75e503c6 100644
--- a/test/test.mk
+++ b/test/test.mk
@@ -104,10 +104,7 @@ override CFLAGS += \
-march=loongarch64 \
-mabi=lp64s \
-mfpu=none \
- -msimd=none \
- -mno-relax
-override LDFLAGS += \
- --no-relax
+ -msimd=none
endif
override CFLAGS_MB := \
