From 634471f412b6e4daa215010f1a9348ff0fd6d629 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 3 May 2015 11:29:54 -0400 Subject: [PATCH] Explicitely add hardening to the LDFLAGS Signed-off-by: Michael Tremer --- macros/cflags.macro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/cflags.macro b/macros/cflags.macro index c52ef19f..46dea107 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -2,7 +2,7 @@ # Export CFLAGS + CXXFLAGS GLOBAL_CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror=format-security GLOBAL_CFLAGS += -fexceptions -fPIC -fstack-protector-strong --param=ssp-buffer-size=4 -GLOBAL_CFLAGS += -grecord-gcc-switches -Wl,-z,relro -Wl,-z,now +GLOBAL_CFLAGS += -grecord-gcc-switches CFLAGS_i686 = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables CFLAGS_x86_64 = -m64 -mtune=generic @@ -12,4 +12,4 @@ CFLAGS_armv7hl = -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb export CFLAGS = %{GLOBAL_CFLAGS} %{CFLAGS_%{DISTRO_ARCH}} export CXXFLAGS = %{CFLAGS} -export LDFLAGS = +export LDFLAGS = -Wl,-z,relro -Wl,-z,now -- 2.39.2