diff -up ./mozilla/security/coreconf/Linux.mk.relro ./mozilla/security/coreconf/Linux.mk --- ./mozilla/security/coreconf/Linux.mk.relro 2013-04-09 11:38:44.623149995 -0700 +++ ./mozilla/security/coreconf/Linux.mk 2013-04-09 11:40:00.414376841 -0700 @@ -174,6 +174,12 @@ endif endif endif +# harden DSOs/executables a bit against exploits +ifeq (2.6,$(firstword $(sort 2.6 $(OS_RELEASE)))) +DSO_LDOPTS+=-Wl,-z,relro +LDFLAGS += -Wl,-z,relro +endif + USE_SYSTEM_ZLIB = 1 ZLIB_LIBS = -lz