From d92f640829f378b90e35dd3458f2a994f3db285c Mon Sep 17 00:00:00 2001 From: wenshelx Date: Sun, 11 Feb 2018 16:35:15 +0800 Subject: [PATCH] security: data relocation and protection(RELRO) RELRO rearranges the data sections inside an ELF executable. It also marks certain areas as 'read-only' so that these data structures cannot be overwritten while the process is running. Tracked-On: 224003 Signed-off-by: wenshelx --- devicemodel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/devicemodel/Makefile b/devicemodel/Makefile index bb7cf31a7..cb0617e09 100644 --- a/devicemodel/Makefile +++ b/devicemodel/Makefile @@ -40,6 +40,7 @@ endif endif LDFLAGS += -Wl,-z,noexecstack +LDFLAGS += -Wl,-z,relro,-z,now LIBS = -lrt LIBS += -lpthread