From patchwork Sun Sep 11 20:35:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Rzeszutek Wilk X-Patchwork-Id: 9325577 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 21ED36048B for ; Sun, 11 Sep 2016 20:38:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 117A2284EF for ; Sun, 11 Sep 2016 20:38:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05D3E28AB5; Sun, 11 Sep 2016 20:38:23 +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, UNPARSEABLE_RELAY 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 A71FA284EF for ; Sun, 11 Sep 2016 20:38:22 +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 1bjBTp-0001zK-Cz; Sun, 11 Sep 2016 20:35:57 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjBTn-0001xw-Fn for xen-devel@lists.xenproject.org; Sun, 11 Sep 2016 20:35:55 +0000 Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id AE/CC-03778-A20C5D75; Sun, 11 Sep 2016 20:35:54 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJLMWRWlGSWpSXmKPExsUyZ7p8oK7mgav hBucPW1t83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBmr3xxlLJguUNG9SLmBcQNfFyMXh5DAZCaJ vs4VzBDON0aJFxdeMnUxcgI5GxklLnc5QSQmMEpcuvYHqIqDg03AROLNKkeQuIhAG6PEtxNb2 UEamAXKJB4ufsIKYgsLeEt0XDsKZrMIqEp8+fEArIZXwF1i95FDrCBzJATkJZ7drgcJcwKFN8 55zwISFhJwkzjRYwwSlhAwlmh/e5FtAiPfAkaGVYwaxalFZalFuoYmeklFmekZJbmJmTm6hga mermpxcWJ6ak5iUnFesn5uZsYgUHCAAQ7GM+e9jzEKMnBpCTK67/gargQX1J+SmVGYnFGfFFp TmrxIUYZDg4lCV6T/UA5waLU9NSKtMwcYLjCpCU4eJREeMtB0rzFBYm5xZnpEKlTjIpS4rxf9 gElBEASGaV5cG2wGLnEKCslzMsIdIgQT0FqUW5mCar8K0ZxDkYlYV4HkPE8mXklcNNfAS1mAl r8dOtlkMUliQgpqQbG9fVss7cwGK2Nvcg+T5arYer5J2durVoxRdzhbmtky0WfHV071edJdyf sW7oi0l6l4dziLo2qlz9mbV0ev/X2P66vFxjLrXb7iR4wuf3d1265dX80898Wo5+fZC/d5bub Y3NRNN6iM+iK6vR9z66/0u7W6nHf16rvyqWz6OWjzvbrzbZiW3iblViKMxINtZiLihMBj4sKL 4wCAAA= X-Env-Sender: konrad.wilk@oracle.com X-Msg-Ref: server-4.tower-206.messagelabs.com!1473626152!59001725!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5716 invoked from network); 11 Sep 2016 20:35:53 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-4.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 11 Sep 2016 20:35:53 -0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u8BKZkX0021190 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 11 Sep 2016 20:35:46 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id u8BKZksO014263 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 11 Sep 2016 20:35:46 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u8BKZjSg030391; Sun, 11 Sep 2016 20:35:45 GMT Received: from localhost.localdomain.com (/209.6.196.81) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 11 Sep 2016 13:35:45 -0700 From: Konrad Rzeszutek Wilk To: xen-devel@lists.xenproject.org, konrad@kernel.org, julien.grall@arm.com, sstabellini@kernel.org, ross.lagerwall@citrix.com Date: Sun, 11 Sep 2016 16:35:18 -0400 Message-Id: <1473626125-13683-12-git-send-email-konrad.wilk@oracle.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1473626125-13683-1-git-send-email-konrad.wilk@oracle.com> References: <1473626125-13683-1-git-send-email-konrad.wilk@oracle.com> X-Source-IP: aserv0022.oracle.com [141.146.126.234] Cc: andrew.cooper3@citrix.com, Jan Beulich , Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH v3 11/18] livepatch: tests: Move the .name value to .rodata 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 Right now the contents of 'name' are all located in the .data section. We want them in the .rodata section so change the type to have const on them. Signed-off-by: Konrad Rzeszutek Wilk --- Cc: Andrew Cooper Cc: Jan Beulich v3: First submission. --- xen/test/livepatch/xen_bye_world.c | 2 +- xen/test/livepatch/xen_hello_world.c | 2 +- xen/test/livepatch/xen_replace_world.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/test/livepatch/xen_bye_world.c b/xen/test/livepatch/xen_bye_world.c index b75e0b1..2700f0e 100644 --- a/xen/test/livepatch/xen_bye_world.c +++ b/xen/test/livepatch/xen_bye_world.c @@ -11,7 +11,7 @@ #include -static char bye_world_patch_this_fnc[] = "xen_extra_version"; +static const char bye_world_patch_this_fnc[] = "xen_extra_version"; extern const char *xen_bye_world(void); struct livepatch_func __section(".livepatch.funcs") livepatch_xen_bye_world = { diff --git a/xen/test/livepatch/xen_hello_world.c b/xen/test/livepatch/xen_hello_world.c index 472fe2e..3cd059f 100644 --- a/xen/test/livepatch/xen_hello_world.c +++ b/xen/test/livepatch/xen_hello_world.c @@ -12,7 +12,7 @@ #include -static char hello_world_patch_this_fnc[] = "xen_extra_version"; +static const char hello_world_patch_this_fnc[] = "xen_extra_version"; extern const char *xen_hello_world(void); /* * .bss is only cleared once - during upload. Apply/revert/apply will result diff --git a/xen/test/livepatch/xen_replace_world.c b/xen/test/livepatch/xen_replace_world.c index a2a221a..78a8f52 100644 --- a/xen/test/livepatch/xen_replace_world.c +++ b/xen/test/livepatch/xen_replace_world.c @@ -10,7 +10,7 @@ #include -static char xen_replace_world_name[] = "xen_extra_version"; +static const char xen_replace_world_name[] = "xen_extra_version"; extern const char *xen_replace_world(void); struct livepatch_func __section(".livepatch.funcs") livepatch_xen_replace_world = {