grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] arm64: build with -mcmodel=large


From: Colin Watson
Subject: Re: [PATCH] arm64: build with -mcmodel=large
Date: Fri, 22 Jan 2016 02:14:33 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, Dec 25, 2015 at 06:18:55PM +0000, Leif Lindholm wrote:
> So, it seems this toolchain generates the HI21/LO12 relocation combo:
> - R_AARCH64_ADR_PREL_PG_HI21/R_AARCH64_ADR_PREL_PG_HI21_NC
> - R_AARCH64_LDST16_ABS_LO12_NC
> - R_AARCH64_LDST32_ABS_LO12_NC
> - R_AARCH64_LDST64_ABS_LO12_NC
> - R_AARCH64_LDST128_ABS_LO12_NC
> 
> So I'll implement support for these.

I found a temporary workaround for this via
https://bugs.launchpad.net/bugs/1533009, which refers to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63304; given that set of
clues, I've confirmed that TARGET_CFLAGS='-Os
-mpc-relative-literal-loads' fixes my build for the time being.

This isn't necessarily a good solution for upstream, because only
certain versions of GCC support it (although perhaps we could detect it
in configure.ac until such time as appropriate relocation support is
added?), but I'm mentioning it here in case any other distributors have
the same problem.

-- 
Colin Watson                                       address@hidden



reply via email to

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