From 14a8d512e52abd0b71280fa5e351fa5f06edbb4c Mon Sep 17 00:00:00 2001 From: "Peter H. Jin" Date: Thu, 17 Jun 2021 11:55:09 -0500 Subject: [PATCH] Enable relro/now --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7198ff0..030e557 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,8 @@ +all: socket-enhancer + socket-enhancer: socket-enhancer.c - gcc -shared -fstack-protector-strong -o socket-enhancer socket-enhancer.c -fPIC -ldl -Wall -Wextra + gcc -shared -fstack-protector-strong -o socket-enhancer socket-enhancer.c -fPIC -ldl -Wall -Wextra -Wl,-z,relro,-z,now +clean: + rm -f socket-enhancer + +.PHONY: all clean