From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756735AbaICV3K (ORCPT ); Wed, 3 Sep 2014 17:29:10 -0400 Received: from terminus.zytor.com ([198.137.202.10]:52925 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753447AbaICV3H (ORCPT ); Wed, 3 Sep 2014 17:29:07 -0400 Message-ID: <54078807.7090408@zytor.com> Date: Wed, 03 Sep 2014 14:28:39 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Ard Biesheuvel , Matt Fleming CC: Maarten Lankhorst , Ulf Winkelvos , Matt Fleming , LKML , "x86@kernel.org" , "linux-efi@vger.kernel.org" , Seth Forshee , Matthew Garrett Subject: Re: [REGRESSION] "efi: efistub: Convert into static library" and preparation patches References: <5405E186.2080406@canonical.com> <20140902192941.GB3001@console-pimps.org> <5406D0DB.90401@canonical.com> <54073409.6030004@canonical.com> <20140903175948.GH3001@console-pimps.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/03/2014 12:57 PM, Ard Biesheuvel wrote: > > I guess that is likely to work, I just wasn't aware it existed :-) > I think adding another visibility(hidden) attribute or 2 would > complete eliminate the need for GOT fixups, but I guess that is more > sensitive to compiler versions being recent enough etc. > The attached (build tested only) patch eliminates all GOT relocations > under boot/compressed for a 64-bit EFI stub build. > This would be better. There is no reason to have a GOT in what is inherently a monolithic binary. Unfortunately -fvisibility=hidden doesn't seem to be enough. -hpa