From: Doug Goldstein <cardoe@cardoe.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
xen-devel@lists.xensource.com, ian.jackson@citrix.com,
wei.liu2@citrix.com, stefano.stabellini@eu.citrix.com,
ian.campbell@citrix.com, jbeulich@suse.com,
m.a.young@durham.ac.uk
Subject: Re: Two linkers - EFI one (mingw64) and normal GNU one [Fedora]
Date: Fri, 12 Feb 2016 16:17:42 -0600 [thread overview]
Message-ID: <56BE5A06.7060604@cardoe.com> (raw)
In-Reply-To: <20160212171908.GA10110@char.us.oracle.com>
[-- Attachment #1.1: Type: text/plain, Size: 1753 bytes --]
On 2/12/16 11:19 AM, Konrad Rzeszutek Wilk wrote:
> Hey,
>
> Fedora for the longest time seems to have two linkers - one normal for GNU
> applications and then another - mingw64 - for building EFI applications.
>
> Which means that to compile ELF binaries on Fedora requires this patch
> (taken from Fedora build):
>
> From 078f2d6155e940a91c1f668b86dcb9534d76b8b7 Mon Sep 17 00:00:00 2001
> From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Date: Wed, 6 Jan 2016 16:39:23 -0500
> Subject: [PATCH] EFI build using mingw
>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>
> Conflicts:
> xen/arch/x86/Makefile
> ---
> xen/Makefile | 2 ++
> xen/arch/x86/Makefile | 6 +++---
> xen/arch/x86/efi/Makefile | 2 +-
> 3 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/xen/Makefile b/xen/Makefile
> index f702525..09c708c 100644
> --- a/xen/Makefile
> +++ b/xen/Makefile
> @@ -20,6 +20,8 @@ export XEN_ROOT := $(BASEDIR)/..
> MAKEFLAGS += -rR
>
> EFI_MOUNTPOINT ?= $(BOOT_DIR)/efi
> +LD_EFI ?= $(LD)
So I think doing this is reasonable to allow Fedora to override it. You
can even do a check that LD_EFI supports i386pep as a target and skip
doing the EFI build/install if it does not. Similar to the case when
EFI_VENDOR is not set.
I don't see what adding a configure.ac would buy you since you would
have to hardcode a number of different paths to check for a linker that
works because the path that Fedora uses is different from every other
distro I currently have access to.
The real question is why can't we change the EFI stub generation to be
closer to how Linux does it which doesn't have this same constraint.
--
Doug Goldstein
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 959 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-02-12 22:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 17:19 Two linkers - EFI one (mingw64) and normal GNU one [Fedora] Konrad Rzeszutek Wilk
2016-02-12 17:52 ` Ian Jackson
2016-02-12 22:17 ` Doug Goldstein [this message]
2016-02-13 0:23 ` Konrad Rzeszutek Wilk
2016-02-15 9:32 ` Jan Beulich
2016-02-15 14:26 ` Konrad Rzeszutek Wilk
2016-02-15 15:01 ` Doug Goldstein
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=56BE5A06.7060604@cardoe.com \
--to=cardoe@cardoe.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@citrix.com \
--cc=jbeulich@suse.com \
--cc=konrad.wilk@oracle.com \
--cc=m.a.young@durham.ac.uk \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.