diff options
author | David Michael <david.michael@coreos.com> | 2018-01-07 11:26:57 -0500 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2018-04-19 10:20:38 +0200 |
commit | 7ce0d4a67c1c53374ad47f1a82ca6551c6c20f3f (patch) | |
tree | 8eb78d4e8ecda524827faba7454180b014a36eed /purgatory/arch | |
parent | 8a2932be82df65159f07bd0a6cfab60dddbbdebc (diff) |
arm64: Set -fno-PIC along with -mcmodel=large
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.
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David Michael <david.michael@coreos.com>
Diffstat (limited to 'purgatory/arch')
-rw-r--r-- | purgatory/arch/arm64/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/purgatory/arch/arm64/Makefile b/purgatory/arch/arm64/Makefile index 636abea..80068ca 100644 --- a/purgatory/arch/arm64/Makefile +++ b/purgatory/arch/arm64/Makefile @@ -1,6 +1,7 @@ arm64_PURGATORY_EXTRA_CFLAGS = \ -mcmodel=large \ + -fno-PIC \ -fno-stack-protector \ -fno-asynchronous-unwind-tables \ -Wundef \ |