From patchwork Wed Oct 4 15:58:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Poimboeuf X-Patchwork-Id: 9985047 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 495986028E for ; Wed, 4 Oct 2017 16:00:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B8FB28B45 for ; Wed, 4 Oct 2017 16:00:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F9FC28B55; Wed, 4 Oct 2017 16:00:38 +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 BD3F028B4A for ; Wed, 4 Oct 2017 16:00:37 +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 1dzm4n-0000RQ-5U; Wed, 04 Oct 2017 15:59:13 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzm4l-0000PC-Ts for xen-devel@lists.xenproject.org; Wed, 04 Oct 2017 15:59:12 +0000 Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id 42/C3-01789-F4505D95; Wed, 04 Oct 2017 15:59:11 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEIsWRWlGSWpSXmKPExsVysWW7jK4f69V Ig4PXhSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oybK7uYCq6zVkzZspO1gfEJSxcjF4eQwBwm ibY9zcxdjJwcLAIOEu9n9rGB2IwCZRK7NpwDinMA2bkSt84ZQtRvZJQ4fmgBK0gNm4CWxPG/J 9lBakQEhCSW3q0DCTMLHGGVeHFRE8QWFvCX2Lr/EhvEeFWJJ6fnMoHYvAKREi/ez2YHsTkFzC V29C0DqxESMJPYfm0d2DkSAtoSj09PZwTZKyHQxyixft8RtgmM/AsYGVYxahSnFpWlFukaG+g lFWWmZ5TkJmbm6BoamOrlphYXJ6an5iQmFesl5+duYgSGTz0DA+MOxgmr/A4xSnIwKYny/vp5 JVKILyk/pTIjsTgjvqg0J7X4EKMMB4eSBO995quRQoJFqempFWmZOcBAhklLcPAoifAasACle YsLEnOLM9MhUqcYdTluPLz+h0mIJS8/L1VKnPcXyAwBkKKM0jy4EbCousQoKyXMy8jAwCDEU5 BalJtZgir/ilGcg1FJmNcaZBVPZl4J3KZXQEcwAR0xp+kKyBEliQgpqQZGC4O7hz0Pfo76/m/ HN2svxoA5P/xKpA+F/JfbOyvbQWBVbD/7qcnMe7jt18R47Vjn3s+f1lZi/K5nTdju70K3HzO+ SnuW6RN6T1NewiWzluMST0jsw6q7PPyxHyTXLmlYFh2cYVIQ379fWD4p6Kx/3ouJE2dphZ3eE O0SIZEWtFd/8rbTbVFKLMUZiYZazEXFiQDsWXoUpQIAAA== X-Env-Sender: jpoimboe@redhat.com X-Msg-Ref: server-15.tower-206.messagelabs.com!1507132748!100558110!1 X-Originating-IP: [209.132.183.28] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMjA5LjEzMi4xODMuMjggPT4gNTQwNjQ=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30929 invoked from network); 4 Oct 2017 15:59:10 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-15.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 4 Oct 2017 15:59:10 -0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 707B25F2974; Wed, 4 Oct 2017 15:59:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 707B25F2974 Received: from treble.redhat.com (ovpn-120-76.rdu2.redhat.com [10.10.120.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id 75BC062930; Wed, 4 Oct 2017 15:59:06 +0000 (UTC) From: Josh Poimboeuf To: x86@kernel.org Date: Wed, 4 Oct 2017 10:58:33 -0500 Message-Id: <7bb04938efcac2c1eaba2cae849337a9a542e1b0.1507128293.git.jpoimboe@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 04 Oct 2017 15:59:08 +0000 (UTC) Cc: Juergen Gross , Rusty Russell , xen-devel@lists.xenproject.org, Peter Zijlstra , Jiri Slaby , Boris Ostrovsky , Mike Galbraith , linux-kernel@vger.kernel.org, Sasha Levin , Chris Wright , Thomas Gleixner , Andy Lutomirski , "H. Peter Anvin" , Borislav Petkov , live-patching@vger.kernel.org, Alok Kataria , virtualization@lists.linux-foundation.org, Linus Torvalds , Ingo Molnar Subject: [Xen-devel] [PATCH 12/13] objtool: Add support for new .pv_altinstructions section 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Josh Poimboeuf --- tools/objtool/special.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/objtool/special.c b/tools/objtool/special.c index 84f001d52322..dc15a3564fc9 100644 --- a/tools/objtool/special.c +++ b/tools/objtool/special.c @@ -63,6 +63,16 @@ struct special_entry entries[] = { .feature = ALT_FEATURE_OFFSET, }, { + .sec = ".pv_altinstructions", + .group = true, + .size = ALT_ENTRY_SIZE, + .orig = ALT_ORIG_OFFSET, + .orig_len = ALT_ORIG_LEN_OFFSET, + .new = ALT_NEW_OFFSET, + .new_len = ALT_NEW_LEN_OFFSET, + .feature = ALT_FEATURE_OFFSET, + }, + { .sec = "__jump_table", .jump_or_nop = true, .size = JUMP_ENTRY_SIZE,