add-relro-linker-option.patch 433 B

1234567891011121314151617
  1. diff -up nss/coreconf/Linux.mk.relro nss/coreconf/Linux.mk
  2. --- nss/coreconf/Linux.mk.relro 2013-04-09 14:29:45.943228682 -0700
  3. +++ nss/coreconf/Linux.mk 2013-04-09 14:31:26.194953927 -0700
  4. @@ -174,6 +174,12 @@ endif
  5. endif
  6. endif
  7. +# harden DSOs/executables a bit against exploits
  8. +ifeq (2.6,$(firstword $(sort 2.6 $(OS_RELEASE))))
  9. +DSO_LDOPTS+=-Wl,-z,relro
  10. +LDFLAGS += -Wl,-z,relro
  11. +endif
  12. +
  13. USE_SYSTEM_ZLIB = 1
  14. ZLIB_LIBS = -lz