]> xenbits.xensource.com Git - xen.git/commitdiff
livepatch/tests: Move the .name value to .rodata
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 8 Sep 2016 09:11:38 +0000 (05:11 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 21 Sep 2016 16:50:18 +0000 (12:50 -0400)
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.

Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/test/xen_bye_world.c
xen/arch/x86/test/xen_hello_world.c
xen/arch/x86/test/xen_replace_world.c

index b75e0b1237702e073dfb562ec4cf60797b6517a0..2700f0eeddd2835f6d5b2017a647a7b9113eab84 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <public/sysctl.h>
 
-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 = {
index 422bdf1138fa14bb05e70334a106e932cfb3737c..d80963ef74d39166fbd027d24cdb326cb6ea96cf 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <public/sysctl.h>
 
-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);
 
 struct livepatch_func __section(".livepatch.funcs") livepatch_xen_hello_world = {
index a2a221ae7eeb04f74ff3b6b0c635044c8d586521..78a8f528b3d5ab2971e797fd32fdb2905aa9f01c 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <public/sysctl.h>
 
-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 = {