From: Simon Horman <horms@verge.net.au>
To: "Ahelenia Ziemiańska" <nabijaczleweli@nabijaczleweli.xyz>
Cc: kexec@lists.infradead.org
Subject: Re: [PATCH 2/5] configure.ac, arch/x86_64: handle x32 as subarch of x86_64 and don't specify -mcmodel=large there
Date: Fri, 23 Oct 2020 16:33:07 +0200 [thread overview]
Message-ID: <20201023143307.GC9820@vergenet.net> (raw)
In-Reply-To: <9c10bfea476b312f98664058d4553e96b94157d2.1602257696.git.nabijaczleweli@nabijaczleweli.xyz>
On Fri, Oct 09, 2020 at 05:39:42PM +0200, Ahelenia Ziemiańska wrote:
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
> ---
> configure.ac | 8 ++++++++
> purgatory/arch/x86_64/Makefile | 2 ++
> 2 files changed, 10 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index f025823..4e8f7c5 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -54,6 +54,14 @@ case $target_cpu in
> ;;
> ia64|x86_64|alpha|m68k )
> ARCH="$target_cpu"
> + case $target in
> + *x32 )
> + SUBARCH="x32"
> + ;;
> + * )
> + SUBARCH=""
> + ;;
> + esac
Is x32 value only for x86_64 or ia64, x886_64, alpha and m68k as
seems to be implied by this change?
Also, could you let me know how to exercise compiling this changeset?
Thanks
> ;;
> hppa*)
> ARCH="hppa"
> diff --git a/purgatory/arch/x86_64/Makefile b/purgatory/arch/x86_64/Makefile
> index 7300937..b0e277a 100644
> --- a/purgatory/arch/x86_64/Makefile
> +++ b/purgatory/arch/x86_64/Makefile
> @@ -23,4 +23,6 @@ x86_64_PURGATORY_SRCS += purgatory/arch/i386/console-x86.c
> x86_64_PURGATORY_SRCS += purgatory/arch/i386/vga.c
> x86_64_PURGATORY_SRCS += purgatory/arch/i386/pic.c
>
> +ifneq ($(SUBARCH),x32)
> x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
> +endif
> --
> 2.28.0
>
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2020-10-23 14:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-09 15:39 [PATCH 0/5] x32 support Ahelenia Ziemiańska
2020-10-09 15:39 ` [PATCH 1/5] config: update to latest config.{sub,guess}, install-sh Ahelenia Ziemiańska
2020-10-09 15:39 ` [PATCH 2/5] configure.ac, arch/x86_64: handle x32 as subarch of x86_64 and don't specify -mcmodel=large there Ahelenia Ziemiańska
2020-10-23 14:33 ` Simon Horman [this message]
2020-10-23 15:41 ` Ahelenia Ziemiańska
2020-10-23 18:40 ` Simon Horman
2020-11-11 12:40 ` Ahelenia Ziemiańska
2020-10-09 15:39 ` [PATCH 3/5] i386/kexec-mb2-x86.c: cast ints to uintptr_t before pointers to avoid warnings Ahelenia Ziemiańska
2020-10-09 15:39 ` [PATCH 4/5] i386: fix string formatting-related warnings Ahelenia Ziemiańska
2020-10-09 15:40 ` [PATCH 5/5] x86_64: allow ELFCLASS32 for x32 support Ahelenia Ziemiańska
2020-11-16 11:00 ` [PATCH 0/5] " 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=20201023143307.GC9820@vergenet.net \
--to=horms@verge.net.au \
--cc=kexec@lists.infradead.org \
--cc=nabijaczleweli@nabijaczleweli.xyz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox