Signed-off-by: Vladimir Serbinenko <phco...@gmail.com>
---
 conf/Makefile.common | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/conf/Makefile.common b/conf/Makefile.common
index 40b1609df..30bf1fa44 100644
--- a/conf/Makefile.common
+++ b/conf/Makefile.common
@@ -14,6 +14,9 @@ if !COND_emu
   LDFLAGS_PLATFORM = -Wl,--wrap=__clear_cache
 endif
 endif
+if COND_loongarch64
+  CFLAGS_PLATFORM += -mcmodel=extreme
+endif
 if COND_arm64
   CFLAGS_PLATFORM += -mcmodel=large
 endif
-- 
2.49.0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to