qrexec and qfile-*: compile with -pie
For full ASLR.
This commit is contained in:
parent
7bc7dc6294
commit
c677f1cc4e
@ -1,14 +1,14 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-g -Wall -I../common
|
CFLAGS=-g -Wall -I../common -fPIC -pie
|
||||||
all: dvm_file_editor qfile-agent-dvm qfile-agent qfile-unpacker
|
all: dvm_file_editor qfile-agent-dvm qfile-agent qfile-unpacker
|
||||||
dvm_file_editor: dvm_file_editor.o ../common/ioall.o
|
dvm_file_editor: dvm_file_editor.o ../common/ioall.o
|
||||||
$(CC) -g -o dvm_file_editor dvm_file_editor.o ../common/ioall.o
|
$(CC) -pie -g -o dvm_file_editor dvm_file_editor.o ../common/ioall.o
|
||||||
qfile-agent-dvm: qfile-agent-dvm.o ../common/ioall.o ../common/gui-fatal.o
|
qfile-agent-dvm: qfile-agent-dvm.o ../common/ioall.o ../common/gui-fatal.o
|
||||||
$(CC) -g -o qfile-agent-dvm qfile-agent-dvm.o ../common/ioall.o ../common/gui-fatal.o
|
$(CC) -pie -g -o qfile-agent-dvm qfile-agent-dvm.o ../common/ioall.o ../common/gui-fatal.o
|
||||||
qfile-agent: qfile-agent.o ../common/ioall.o ../common/gui-fatal.o copy_file.o
|
qfile-agent: qfile-agent.o ../common/ioall.o ../common/gui-fatal.o copy_file.o
|
||||||
$(CC) -g -o qfile-agent qfile-agent.o ../common/ioall.o ../common/gui-fatal.o copy_file.o
|
$(CC) -pie -g -o qfile-agent qfile-agent.o ../common/ioall.o ../common/gui-fatal.o copy_file.o
|
||||||
qfile-unpacker: qfile-unpacker.o ../common/ioall.o ../common/gui-fatal.o copy_file.o unpack.o
|
qfile-unpacker: qfile-unpacker.o ../common/ioall.o ../common/gui-fatal.o copy_file.o unpack.o
|
||||||
$(CC) -g -o qfile-unpacker qfile-unpacker.o ../common/ioall.o ../common/gui-fatal.o copy_file.o unpack.o
|
$(CC) -pie -g -o qfile-unpacker qfile-unpacker.o ../common/ioall.o ../common/gui-fatal.o copy_file.o unpack.o
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f qfile-agent-dvm qfile-agent qfile-unpacker dvm_file_editor *.o *~
|
rm -f qfile-agent-dvm qfile-agent qfile-unpacker dvm_file_editor *.o *~
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS+=-g -Wall -I../vchan -I../common
|
CFLAGS+=-g -Wall -I../vchan -I../common -pie -fPIC
|
||||||
XENLIBS=-lvchan -lu2mfn -lxenstore -lxenctrl
|
XENLIBS=-lvchan -lu2mfn -lxenstore -lxenctrl
|
||||||
COMMONIOALL=../common/ioall.o
|
COMMONIOALL=../common/ioall.o
|
||||||
|
|
||||||
all: qrexec_daemon qrexec_agent qrexec_client
|
all: qrexec_daemon qrexec_agent qrexec_client
|
||||||
qrexec_daemon: qrexec_daemon.o unix_server.o $(COMMONIOALL) txrx-vchan.o buffer.o write_stdin.o
|
qrexec_daemon: qrexec_daemon.o unix_server.o $(COMMONIOALL) txrx-vchan.o buffer.o write_stdin.o
|
||||||
$(CC) -L../vchan -L../u2mfn -g -o qrexec_daemon qrexec_daemon.o unix_server.o $(COMMONIOALL) txrx-vchan.o write_stdin.o buffer.o $(XENLIBS)
|
$(CC) -pie -L../vchan -L../u2mfn -g -o qrexec_daemon qrexec_daemon.o unix_server.o $(COMMONIOALL) txrx-vchan.o write_stdin.o buffer.o $(XENLIBS)
|
||||||
qrexec_agent: qrexec_agent.o exec.o txrx-vchan.o write_stdin.o buffer.o $(COMMONIOALL)
|
qrexec_agent: qrexec_agent.o exec.o txrx-vchan.o write_stdin.o buffer.o $(COMMONIOALL)
|
||||||
$(CC) -L../vchan -L../u2mfn -g -o qrexec_agent qrexec_agent.o exec.o txrx-vchan.o write_stdin.o buffer.o $(COMMONIOALL) $(XENLIBS)
|
$(CC) -pie -L../vchan -L../u2mfn -g -o qrexec_agent qrexec_agent.o exec.o txrx-vchan.o write_stdin.o buffer.o $(COMMONIOALL) $(XENLIBS)
|
||||||
qrexec_client: qrexec_client.o $(COMMONIOALL) exec.o
|
qrexec_client: qrexec_client.o $(COMMONIOALL) exec.o
|
||||||
$(CC) -g -o qrexec_client qrexec_client.o $(COMMONIOALL) exec.o
|
$(CC) -pie -g -o qrexec_client qrexec_client.o $(COMMONIOALL) exec.o
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *~ qrexec_daemon qrexec_agent qrexec_client
|
rm -f *.o *~ qrexec_daemon qrexec_agent qrexec_client
|
||||||
|
Loading…
Reference in New Issue
Block a user