Hi,
when compiling grub with O2 or O3 on a ARM target mkimage fails with
"error: relocation4 X is not implemented yet" for
R_ARM_THM_MOVT_ABS and R_ARM_THM_MOVW_ABS_NC (thumb)
or R_ARM_MOVW_ABS and R_ARM_MOVW_ABS_NC (arm)
Michael
___
Grub-devel mailing
On Sat, Jan 31, 2015 at 12:35:34PM +0100, Michael Zimmermann wrote:
> when compiling grub with O2 or O3 on a ARM target mkimage fails with
> "error: relocation4 X is not implemented yet" for
> R_ARM_THM_MOVT_ABS and R_ARM_THM_MOVW_ABS_NC (thumb)
> or R_ARM_MOVW_ABS and R_ARM_MOVW_ABS_NC (arm)
To h
The configure line:
./configure --host arm-linux-gnueabihf CFLAGS='-static-libgcc
-Wl,-static' TARGET_CFLAGS='-O3'
My compiler is gcc-linaro-arm-linux-gnueabihf-4.9-2014.09 (
http://releases.linaro.org/14.09/components/toolchain/binaries )
gcc -v :
Using built-in specs.
COLLECT_GCC=./prebuilts/gc
I forgot the Linux distro: (it doesn't matter since I'm cross
compiling) Ubuntu 14.10
On Sat, Jan 31, 2015 at 1:00 PM, Michael Zimmermann
wrote:
> The configure line:
> ./configure --host arm-linux-gnueabihf CFLAGS='-static-libgcc
> -Wl,-static' TARGET_CFLAGS='-O3'
>
> My compiler is gcc-linaro-a
What I almost forgot is that you need the following patch to fix
compilation with O2/O3(it fixes warnings):
>From 54fe81d049c1ea24f8dc72eff16e88bf39291c7d Mon Sep 17 00:00:00 2001
From: M1cha
Date: Sat, 31 Jan 2015 13:08:43 +0100
Subject: [PATCH 1/1] fix compilation with O2/O3
---
grub-core/com