Browse Source

Merge branch 'master' of git+ssh://openadk.org/git/openadk

Waldemar Brodkorb 10 years ago
parent
commit
0c0e05a071
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mk/vars.mk

+ 2 - 0
mk/vars.mk

@@ -85,6 +85,8 @@ TARGET_LDFLAGS:=	-L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \
 			-Wl,-O2 -Wl,-rpath -Wl,/usr/lib \
 			-Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib \
 			$(ADK_TARGET_ABI_LDFLAGS) $(TARGET_CFLAGS_ARCH)
+# security optimization, see http://www.akkadia.org/drepper/dsohowto.pdf
+TARGET_LDFLAGS+=	-Wl,-z,relro,-z,now
 
 ifneq ($(ADK_NATIVE),)
 TARGET_CPPFLAGS:=