Enable relro/now

This commit is contained in:
Peter H. Jin 2021-06-17 11:55:09 -05:00
parent fc16a9f4cc
commit 14a8d512e5
1 changed files with 7 additions and 1 deletions

View File

@ -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