From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH v2 02/23] x86/boot: copy only text section from *.lnk file to *.bin file Date: Wed, 22 Jul 2015 02:02:11 -0600 Message-ID: <55AF6A230200007800093DE1@prv-mh.provo.novell.com> References: <1437402558-7313-1-git-send-email-daniel.kiper@oracle.com> <1437402558-7313-3-git-send-email-daniel.kiper@oracle.com> <55AE2E6B02000078000938BD@prv-mh.provo.novell.com> <20150721172355.GJ3479@olila.local.net-space.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZHoym-0001y4-46 for xen-devel@lists.xenproject.org; Wed, 22 Jul 2015 08:02:16 +0000 In-Reply-To: <20150721172355.GJ3479@olila.local.net-space.pl> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel Kiper Cc: andrew.cooper3@citrix.com, keir@xen.org, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 21.07.15 at 19:23, wrote: > First of all ld generates .got.plt section and objcopy copy it to binary > file. > It is not needed because we do not link our stuff here with shared > libraries. > So, we can use -R objcopy option to remove it (if you do not like -j .text). > This way we could save 15 bytes (at least on my machines). So I checked and did find no .got.plt at all on a machine using binutils 2.25 and an empty one on a machine using an older version. So I'm curious what you're seeing present in that table (without any of your patches applied). Jan