All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc: Vladimir Serbinenko <phcoder@gmail.com>
Subject: [PATCH v2 4/5] Force mcmodel=large on x64 and riscv64
Date: Sat,  3 May 2025 08:04:25 +0000	[thread overview]
Message-ID: <20250503080528.13240-5-phcoder@gmail.com> (raw)
In-Reply-To: <20250503080528.13240-1-phcoder@gmail.com>

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index fbeea0c70..e34e3cd59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1322,8 +1322,10 @@ if test "$target_cpu" = x86_64 || test "$target_cpu" = sparc64 || test "$target_
   ])
   if test "x$grub_cv_cc_mcmodel" = xyes; then
     TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
-  elif test "$target_cpu" = sparc64 || test "$target_cpu" = riscv64; then
+  elif test "$target_cpu" = sparc64 ; then
     TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=medany"
+  else
+    AC_MSG_ERROR([-mcmodel=large not supported, upgrade your gcc])
   fi
 fi
 
-- 
2.49.0


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

  parent reply	other threads:[~2025-05-03  8:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-03  8:04 [PATCH v2 0/3] Use -shared compilation instead of -Wl,-r Vladimir Serbinenko
2025-05-03  8:04 ` [PATCH v2 1/5] Use ET_DYN instead of ET_REL modules Vladimir Serbinenko
2025-05-03  8:04 ` [PATCH v2 2/5] loongarch64: Use got-based retrieval instead of la Vladimir Serbinenko
2025-05-03  8:04 ` [PATCH v2 3/5] Use ET_DYN images and PHDRs for creating relocatable images Vladimir Serbinenko
2025-05-03  8:04 ` Vladimir Serbinenko [this message]
2025-05-03  8:04 ` [PATCH v2 5/5] Use mcmodel=extreme on loongarch64 Vladimir Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250503080528.13240-5-phcoder@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.