[CRIU] Re: [PATCH 02/13] make: Use -fpie instead of -fpic
Pavel Emelyanov
xemul at parallels.com
Wed Apr 18 04:10:27 EDT 2012
On 04/18/2012 01:55 AM, Cyrill Gorcunov wrote:
> Since we're generating blobs for execution
> better to use -fpie which serves for such
> things.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
Applied
> ---
> Makefile | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 72505a0..aa2f801 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -81,11 +81,11 @@ all: $(PROGRAM)
>
> $(OBJS-BLOB): $(SRCS-BLOB)
> $(E) " CC " $@
> - $(Q) $(CC) -c $(CFLAGS) -fpic $< -o $@
> + $(Q) $(CC) -c $(CFLAGS) -fpie $< -o $@
>
> parasite-util-net.o: util-net.c
> $(E) " CC " $@
> - $(Q) $(CC) -c $(CFLAGS) -fpic $< -o $@
> + $(Q) $(CC) -c $(CFLAGS) -fpie $< -o $@
>
> $(HEAD-BIN): $(PIE-LDS) $(OBJS-BLOB) parasite-util-net.o
> $(E) " GEN " $@
> @@ -98,7 +98,7 @@ $(HEAD-BLOB-GEN): $(HEAD-BIN) $(GEN-OFFSETS)
>
> $(ROBJS): $(RSRCS-BLOB)
> $(E) " CC " $@
> - $(Q) $(CC) -c $(CFLAGS) -fpic $(patsubst %.o,%.c,$@) -o $@
> + $(Q) $(CC) -c $(CFLAGS) -fpie $(patsubst %.o,%.c,$@) -o $@
>
> $(RHEAD-BIN): $(ROBJS) $(PIE-LDS)
> $(E) " GEN " $@
More information about the CRIU
mailing list