From patchwork Fri Jun 9 16:03:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Lagerwall X-Patchwork-Id: 9778861 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7D68D60393 for ; Fri, 9 Jun 2017 16:06:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 655C42862D for ; Fri, 9 Jun 2017 16:06:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 585AF28639; Fri, 9 Jun 2017 16:06:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5BBD82862D for ; Fri, 9 Jun 2017 16:06:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJMO9-0003H2-Og; Fri, 09 Jun 2017 16:03:53 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJMO8-0003Gs-0a for xen-devel@lists.xen.org; Fri, 09 Jun 2017 16:03:52 +0000 Received: from [85.158.139.211] by server-3.bemta-5.messagelabs.com id 22/66-02022-7E6CA395; Fri, 09 Jun 2017 16:03:51 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRWlGSWpSXmKPExsXitHRDpO7jY1a RBi+emlos+biYxYHR4+ju30wBjFGsmXlJ+RUJrBkTzp5gKfjNVvFn+yq2BsZvrF2MnBwSAv4S C6/9ZAKx2QQMJG5d+s4MYosIyEqs7prDDmIzC8RLrJ8zEaxeGKj+zcTtYDUsAioSt89tYgSxe QXsJN7M/s8OMVNOYun262A1nAL2EpNf/ADrFQKquf/+KBuErSbxdvkZFoheQYmTM5+wQOySkD j44gXzBEbeWUhSs5CkFjAyrWLUKE4tKkst0jWy0EsqykzPKMlNzMzRNTQw1ctNLS5OTE/NSUw q1kvOz93ECAyeegYGxh2Mfav8DjFKcjApifJOK7CKFOJLyk+pzEgszogvKs1JLT7EKMPBoSTB +/koUE6wKDU9tSItMwcYxjBpCQ4eJRHelgNAad7igsTc4sx0iNQpRl2Opg9bvjAJseTl56VKi fN+AJkhAFKUUZoHNwIWU5cYZaWEeRkZGBiEeApSi3IzS1DlXzGKczAqCfPagkzhycwrgdv0Cu gIJqAjlryzADmiJBEhJdXA6LuA48vfyhP8ajcvGp/4kcAq+uH+aeft7Iv2PV0k1SHp8kQ9Jr7 8f1W+x8cTyZMMLrjM0g/euXl+c/50kfT/dWcUKprm2XcJfKzc3MwZK/epuaFiKeeh9MXfTj14 t+Vbgc7HTbGLzzetvz71blZ50KbzLMbLKqflhTy9Orsgd11risc6wWIJKSWW4oxEQy3mouJEA J+wJHSkAgAA X-Env-Sender: prvs=3268e8fe2=ross.lagerwall@citrix.com X-Msg-Ref: server-9.tower-206.messagelabs.com!1497024226!102798795!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 14438 invoked from network); 9 Jun 2017 16:03:47 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-9.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 9 Jun 2017 16:03:47 -0000 X-IronPort-AV: E=Sophos;i="5.39,317,1493683200"; d="scan'208";a="427282189" From: Ross Lagerwall To: Date: Fri, 9 Jun 2017 17:03:36 +0100 Message-ID: <20170609160336.13351-2-ross.lagerwall@citrix.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170609160336.13351-1-ross.lagerwall@citrix.com> References: <20170609160336.13351-1-ross.lagerwall@citrix.com> MIME-Version: 1.0 Cc: Ross Lagerwall Subject: [Xen-devel] [PATCH LIVEPATCH-BUILD-TOOLS 2/2] Remove section alignment requirement X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Remove the requirement that section twins have the same alignment. The section alignment of the patched section is respected by the loader in Xen so it shouldn't matter if the original section alignment was different. Signed-off-by: Ross Lagerwall Reviewed-by: Andrew Cooper --- create-diff-object.c | 1 - 1 file changed, 1 deletion(-) diff --git a/create-diff-object.c b/create-diff-object.c index ba19daf..82f777e 100644 --- a/create-diff-object.c +++ b/create-diff-object.c @@ -754,7 +754,6 @@ static void kpatch_compare_correlated_section(struct section *sec) if (sec1->sh.sh_type != sec2->sh.sh_type || sec1->sh.sh_flags != sec2->sh.sh_flags || sec1->sh.sh_addr != sec2->sh.sh_addr || - sec1->sh.sh_addralign != sec2->sh.sh_addralign || sec1->sh.sh_entsize != sec2->sh.sh_entsize) DIFF_FATAL("%s section header details differ", sec1->name);