From 1c7e20c4a7f7c9b97745f118256d1a5fa2b2cb7f Mon Sep 17 00:00:00 2001 From: rsundahl Date: Mon, 19 Feb 2018 10:33:33 -0800 Subject: [PATCH] Added additional parameters to gcc for complete coverage. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58c1738..46a9f04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,8 @@ RUN mkdir ./lib RUN ar -cvq lib/utilhook.a obj/*.o RUN mkdir ./dll -RUN gcc -fPIC -shared -o dll/basehook.so src/basehook.c lib/utilhook.a -ldl -RUN gcc -fPIC -shared -o dll/fullhook.so src/fullhook.c lib/utilhook.a -ldl +RUN gcc -fstack-protector-all -fPIC -Fpie -pie -Wl,-z,relro,-z,now -shared -o dll/basehook.so src/basehook.c lib/utilhook.a -ldl +RUN gcc -fstack-protector-all -fPIC -Fpie -pie -Wl,-z,relro,-z,now -shared -o dll/fullhook.so src/fullhook.c lib/utilhook.a -ldl RUN mkdir ./app RUN gcc -DFULLHOOK_MAIN=1 -fPIC -o app/fullhook src/fullhook.c lib/utilhook.a