>>> On 21.09.17 at 00:31, <kon...@kernel.org> wrote: > --- a/xen/test/livepatch/Makefile > +++ b/xen/test/livepatch/Makefile > @@ -53,6 +53,7 @@ xen_hello_world.o: config.h livepatch_depends.h > .PHONY: $(LIVEPATCH) > $(LIVEPATCH): xen_hello_world_func.o xen_hello_world.o > $(LD) $(LDFLAGS) $(build_id_linker) -r -o $(LIVEPATCH) $^ > + $(OBJCOPY) --redefine-sym $(NOTE_SYMBOL)=$@_$(NOTE_SYMBOL) $@
I should have paid attention to this earlier: This model of modifying in place the target file of a rule doesn't work well when taking into account someone hitting Ctrl-C in the middle of the build process. The linker output should go to an intermediate file, and objcopy should then produce the final one. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel