[CRIU] [PATCH 07/10] make: pie -- Switch to a new scheme

Cyrill Gorcunov gorcunov at openvz.org
Fri Feb 15 14:40:30 EST 2013


Because we need util-net.c for both PIE code and
a regular code, just move it to pie/ directory
and build with -fpie option, this way we can reuse
compiled file in main program without additional
compilation pass.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 .gitignore                   |  1 +
 Makefile                     | 11 +++---
 pie/Makefile                 | 88 +++++++++++++++++---------------------------
 pie/gen-offsets.sh           |  7 ++--
 util-net.c => pie/util-net.c |  0
 5 files changed, 44 insertions(+), 63 deletions(-)
 rename util-net.c => pie/util-net.c (100%)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-make-pie-Switch-to-a-new-scheme.patch
Type: text/x-patch
Size: 5264 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130215/b92e2d14/attachment.bin>


More information about the CRIU mailing list