From a7ef2bb996d3c3c9350548123f61c6f95f30fba7 Mon Sep 17 00:00:00 2001 From: Hyotaek Shim Date: Tue, 3 Apr 2018 19:17:30 +0900 Subject: [PATCH] Apply Full RELRO linker options ("-Wl,-z,relro,-z,now") to tlm-sessiond In addition to Partial RELRO, Full RELRO makes GOT Table read-only. Change-Id: I5a9abd9ca22295cc5c2874c91f4114cb78c7218f Signed-off-by: Hyotaek Shim --- src/sessiond/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sessiond/Makefile.am b/src/sessiond/Makefile.am index ab887f4..8a12e2a 100644 --- a/src/sessiond/Makefile.am +++ b/src/sessiond/Makefile.am @@ -41,6 +41,11 @@ tlm_sessiond_CFLAGS = \ -DG_LOG_DOMAIN=\"TLM_SESSIOND\" \ $(NULL) +# To apply Armoring(Full RELRO), where GOT Table becomes read-only. +tlm_sessiond_LDFLAGS = \ + -Wl,-z,relro,-z,now \ + $(NULL) + tlm_sessiond_LDADD = \ libtlm-session-daemon.la \ $(TLM_LIBS) \ -- 2.7.4