livepatch/tests: Make .livepatch.depends be read-only
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 13 Sep 2016 16:11:44 +0000 (12:11 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 21 Sep 2016 16:50:15 +0000 (12:50 -0400)
As currently during the injection of the build-id it ends up
being marked as AW. We want it to be read-only.

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/Makefile

index 23dff1d8fa8e94749fa7b702b90d65f0625c1f3a..48ff84300f1f49eb3b22817b270372d30ec835a3 100644 (file)
@@ -55,7 +55,7 @@ $(LIVEPATCH): xen_hello_world_func.o xen_hello_world.o note.o
 note.o:
        $(OBJCOPY) -O binary --only-section=.note.gnu.build-id $(BASEDIR)/xen-syms $@.bin
        $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 \
-                  --rename-section=.data=.livepatch.depends -S $@.bin $@
+                  --rename-section=.data=.livepatch.depends,alloc,load,readonly,data,contents -S $@.bin $@
        rm -f $@.bin
 
 #
@@ -66,7 +66,7 @@ note.o:
 hello_world_note.o: $(LIVEPATCH)
        $(OBJCOPY) -O binary --only-section=.note.gnu.build-id $(LIVEPATCH) $@.bin
        $(OBJCOPY)  -I binary -O elf64-x86-64 -B i386:x86-64 \
-                  --rename-section=.data=.livepatch.depends -S $@.bin $@
+                  --rename-section=.data=.livepatch.depends,alloc,load,readonly,data,contents -S $@.bin $@
        rm -f $@.bin
 
 xen_bye_world.o: config.h