[CRIU] Building PIE/PIC objects separately

Cyrill Gorcunov gorcunov at gmail.com
Wed Oct 7 07:41:33 PDT 2015


On Wed, Oct 07, 2015 at 04:27:53PM +0200, Laurent Dufour wrote:
> > 
> > Hi! You know the former idea was exactly the opposite ;) We
> > wanted to build them once and reuse it. Could you please
> > point which exactly problems you're facing?
> 
> Actually, I didn't face any issue, I had one with the memcpy symbol, but
> I was able to resolve it in another way.
> 
> My concern is that we are linking together objects which are not built
> the same way between crtools and parasite/restorer.

True. But pie/ code is built that way it can be linked into non PIE
code (but sure not the reverse).

> 
> In addition building parasite/restorer objects separately, will remove
> the need to pull architecture memcmp/cpy and bit operation for crtools
> binaries. This way crtools will fully rely on the C library ones which
> are updated and may be more efficient.
> 
> May be it's fine to live with that, but this should not impact so much
> the build time to build twice the 3 files below :)

You know, personally I won't mind if we build pie as a serapate
but this will require either symlinks for the files (easy way)
or hard lifting of the make engine (hard way). At moment I fear
I don't have time for the second. So if you can experiment with
our make -- this would be just great.

Also, iirc Pavel has not be voting for two builds so we need to
hear his opinion first. Pavel?


More information about the CRIU mailing list