[PATCH] arm64: Set -fno-PIC along with -mcmodel=large

Geoff Levand geoff at infradead.org
Fri Feb 2 15:48:31 PST 2018


On 01/07/2018 08:26 AM, David Michael wrote:
> As seen in GCC's gcc/config/aarch64/aarch64.c, -fPIC with large
> code model is unsupported.  This fixes the "sorry, unimplemented"
> errors when building with compilers defaulting to -fPIC.
> ---
> purgatory/arch/arm64/entry.S:1:0: sorry, unimplemented: code model 'large' with -fPIC
> This change fixes it.  Can something like this be applied?

This change seems reasonable considering large model + PIC is unsupported.

Reviewed by: Geoff Levand <geoff at infradead.org>

More information about the kexec mailing list