22289575 nxheap and nxstack security extensions should be enabled in OpenSSH
authorHuie-Ying Lee <huieying.lee@oracle.com>
Mon, 07 Dec 2015 11:36:37 -0800
changeset 5163 352d2c5134cf
parent 5162 090ec0da8589
child 5164 0cb4fcf7f320
22289575 nxheap and nxstack security extensions should be enabled in OpenSSH
components/openssh/Makefile
--- a/components/openssh/Makefile	Sun Dec 06 09:46:51 2015 -0800
+++ b/components/openssh/Makefile	Mon Dec 07 11:36:37 2015 -0800
@@ -70,6 +70,9 @@
 # libraries that it needs.
 LDFLAGS += -B direct -z nolazyload
 
+# Enable nxheap and nxstack security extensions
+LDFLAGS += -z nxheap=enable -z nxstack=enable
+
 # Just $(BUILD_64) option was not propogating the 64 bit flags to all the
 # necessary places. Hence the -m64 option is added to LDFLAGS for
 # CONFIGURE_OPTIONS.64.