[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] configure: disable arm movw/movt relocations for GCC

From: Leif Lindholm
Subject: [PATCH] configure: disable arm movw/movt relocations for GCC
Date: Tue, 4 Jun 2019 12:39:16 +0100

When building for arm, we already disable movw/movt relocations for clang,
since they are incompatible with PE.

When building with bare metal GCC toolchains (like the one used in the
travis ci scripts), we end up with these relocations again. So add an
additional test for the '-mword-relocations' flag used by GCC.

Reported-by: Alexander Graf <address@hidden>
Signed-off-by: Leif Lindholm <address@hidden>

Note: unless this is added before the travis-ci set, the arm ci build
will fail when enabled.

--- | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ b/
index 08b518fcc..e7725a546 100644
--- a/
+++ b/
@@ -1198,7 +1198,8 @@ if test "x$target_cpu" = xarm; then
   AC_CACHE_CHECK([for options to disable movt and movw], 
grub_cv_target_cc_mno_movt, [
     for cand in "-mno-movt" \
-               "-mllvm -arm-use-movt=0"; do
+               "-mllvm -arm-use-movt=0" \
+               "-mword-relocations"; do
       if test x"$grub_cv_target_cc_mno_movt" != xno ; then

reply via email to

[Prev in Thread] Current Thread [Next in Thread]