[CRIU] Re: [PATCH 3/6] make: Redesign building of parasite and restorer blobs

Cyrill Gorcunov gorcunov at openvz.org
Tue Mar 27 15:40:53 EDT 2012


On Tue, Mar 27, 2012 at 11:35:15PM +0400, Pavel Emelyanov wrote:
> On 03/27/2012 06:45 PM, Cyrill Gorcunov wrote:
> > 
> > In order to make further modifications of parasite
> > and restorer blobs easier the following is done
> > 
> >  1) Everything related to parasite/restorer is moved
> >     into separate Makefile.pie because there are special
> >     rules needed to build this files so escape messing with
> >     general Makefile
> 
> What are the rules?

-fpie and only one .text section with everything else discarded.

> 
> >  2) No need to host two lds files which do the same thing,
> >     just merge them into one pie.lds.S.
> 
> What about symbol names? They are not the same for parasite
> and restorer.

symbol names has nothing to do with ld script, the symbols are
generated from source code and ld doesn't touch them.

> 
> And this can be separate patch.
> 
> >  3) Tune up restorer-log.c functions declarations, they
> >     are not always_inline but merged into built file with
> >     ld help
> 
> This can be a separate patch as well.

nope, if function become not always inlined, there is no
guarantee where it goes in result file, so better make all
this in one set

> 
> >  4) Along with .bin files generate correspond .bin.o files
> >     in debug purpose (one could disassemble them and check
> >     the contents).
> 
> This can be separate patch as well.

Sure this one can be done in separate patch, but Pavel it's
just one line in makefile, where makefile is completely rewritten
so there is NO benefit in patching it separately.

	Cyrill


More information about the CRIU mailing list