[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] arm64: build with -mcmodel=large
From: |
Colin Watson |
Subject: |
[PATCH] arm64: build with -mcmodel=large |
Date: |
Thu, 24 Dec 2015 04:14:54 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
This matches some other 64-bit architectures, and fixes a build failure
with current GCC versions: when using the default (small) memory model,
they generate relocations that grub-mkimage doesn't understand.
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 3300545..bbb7b61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1083,7 +1083,7 @@ AC_SUBST(TARGET_LDFLAGS_OLDMAGIC)
LDFLAGS="$TARGET_LDFLAGS"
-if test "$target_cpu" = x86_64 || test "$target_cpu" = sparc64 ; then
+if test "$target_cpu" = x86_64 || test "$target_cpu" = sparc64 || test
"$target_cpu" = arm64; then
# Use large model to support 4G memory
AC_CACHE_CHECK([whether option -mcmodel=large works], grub_cv_cc_mcmodel, [
CFLAGS="$TARGET_CFLAGS -mcmodel=large"
--
2.6.4