From: Maarten Lankhorst <maarten.lankhorst-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
To: Ard Biesheuvel
<ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Matt Fleming
<matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Leif Lindholm
<leif.lindholm-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Roy Franz <roy.franz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Ingo Molnar <mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org"
<hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>,
"linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Josh Boyer
<jwboyer-rxtnV0ftBwyoClj4AeEUq9i2O/JbrIOy@public.gmane.org>,
Linus Torvalds
<torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Subject: Re: [RFT PATCH] efi/x86: move x86 back to libstub
Date: Fri, 10 Oct 2014 10:30:04 +0200 [thread overview]
Message-ID: <5437990C.7050402@canonical.com> (raw)
In-Reply-To: <CAKv+Gu9rdPujXqfWhJt=76V8Lemf2FuVoa75KH-TWh+2_a=Ghg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hey,
On 10-10-14 08:35, Ard Biesheuvel wrote:
> On 6 October 2014 13:06, Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>> This reverts commit 84be880560fb, which itself reverted my original
>> attempt to move x86 from #include'ing .c files from across the tree
>> to using the EFI stub built as a static library.
>>
>> The issue that affected the original approach was that splitting
>> the implementation into several .o files resulted in the variable
>> 'efi_early' becoming a global with external linkage, which under
>> -fPIC implies that references to it must go through the GOT. However,
>> dealing with this additional GOT entry turned out to be troublesome
>> on some EFI implementations. (GCC's visibility=hidden attribute is
>> supposed to lift this requirement, but it turned out not to work on
>> the 32-bit build.)
>>
>> Instead, use a pure getter function to get a reference to efi_early.
>> This approach results in no additional GOT entries being generated,
>> so there is no need for any changes in the early GOT handling.
>>
>> Cc: Maarten Lankhorst <maarten.lankhorst-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
>> Cc: Josh Boyer <jwboyer-rxtnV0ftBwyoClj4AeEUq9i2O/JbrIOy@public.gmane.org>
>> Cc: Linus Torvalds <torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
>> Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>> ---
>>
>> Gents,
>>
>> This is a request for testing: I would like to find out if this patch
>> fixes Maarten's issue without breaking anything like it did for Josh
>> and Linus the first time around.
>>
>
> Any takers?
Sorry it was on my todo list but I lost access to my laptop for a while.
Normal EFI boot through refind works at least, but I think netboot may use a slightly
different codepath which I can't test right now.
Tested-By: Maarten Lankhorst <maarten.lankhorst-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
next prev parent reply other threads:[~2014-10-10 8:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-06 11:06 [RFT PATCH] efi/x86: move x86 back to libstub Ard Biesheuvel
[not found] ` <1412593603-6945-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-10-06 12:00 ` Josh Boyer
2014-10-10 6:35 ` Ard Biesheuvel
[not found] ` <CAKv+Gu9rdPujXqfWhJt=76V8Lemf2FuVoa75KH-TWh+2_a=Ghg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-10 8:30 ` Maarten Lankhorst [this message]
[not found] ` <5437990C.7050402-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2014-10-10 8:37 ` Ard Biesheuvel
[not found] ` <CAKv+Gu_5tHNB=YOS0Kz2i2ap2n8PvzmvGD6-J7MzxptoG_zHQw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-13 13:37 ` Maarten Lankhorst
[not found] ` <543BD583.3050303-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2014-10-13 13:54 ` Ard Biesheuvel
2014-10-14 21:42 ` Matt Fleming
2014-10-16 14:42 ` Matt Fleming
[not found] ` <20141016144206.GH14343-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-10-16 15:29 ` Josh Boyer
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=5437990C.7050402@canonical.com \
--to=maarten.lankhorst-z7wlfzj8ewms+fvcfc7uqw@public.gmane.org \
--cc=ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
--cc=jwboyer-rxtnV0ftBwyoClj4AeEUq9i2O/JbrIOy@public.gmane.org \
--cc=leif.lindholm-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=roy.franz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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.