From: David Michael <david.michael@coreos.com>
To: horms@verge.net.au
Cc: kexec@lists.infradead.org
Subject: [PATCH] arm64: Set -fno-PIC along with -mcmodel=large
Date: Sun, 07 Jan 2018 11:26:57 -0500 [thread overview]
Message-ID: <87608dprce.fsf@coreos.com> (raw)
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.
---
Hi,
I'm hitting this error with 2.0.16 on Gentoo:
purgatory/arch/arm64/entry.S:1:0: sorry, unimplemented: code model 'large' with -fPIC
This change fixes it. Can something like this be applied?
Thanks.
David
purgatory/arch/arm64/Makefile | 1 +
1 file changed, 1 insertion(+)
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 \
--
2.14.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next reply other threads:[~2018-01-07 16:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-07 16:26 David Michael [this message]
2018-02-02 23:48 ` [PATCH] arm64: Set -fno-PIC along with -mcmodel=large Geoff Levand
2018-04-12 23:37 ` Geoff Levand
2018-04-18 12:54 ` Simon Horman
2018-04-18 16:45 ` David Michael
2018-04-19 8:21 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87608dprce.fsf@coreos.com \
--to=david.michael@coreos.com \
--cc=horms@verge.net.au \
--cc=kexec@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.