From 0e2bc8a1cfff8c9dedef823f59316be2ecd86c2c Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 28 Aug 2018 11:44:23 -0400 Subject: [PATCH] make sure RELRO is enabled on every toolchain --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c2bf73f..54c1eb1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CPPFLAGS := -D_GNU_SOURCE CFLAGS := -std=c11 -Wall -Wextra -O2 -flto -fPIC -fvisibility=hidden -pedantic -LDFLAGS := -Wl,--as-needed,-z,defs +LDFLAGS := -Wl,--as-needed,-z,defs,-z,relro,-z,now LDLIBS := -lpthread OBJECTS := chacha.o malloc.o random.o util.o