summaryrefslogtreecommitdiffstats
path: root/lib/libz
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-02-15 22:03:09 +0000
committerdim <dim@FreeBSD.org>2011-02-15 22:03:09 +0000
commitf58eeaae2ea634ac387432d4df3035bc953d63c8 (patch)
treeed19a330dc5f9d0725baedab2bf3317a6ec2fae8 /lib/libz
parentbe13e396c9ec1ab7dc7f7c4cd04e66bcb6530c43 (diff)
downloadFreeBSD-src-f58eeaae2ea634ac387432d4df3035bc953d63c8.zip
FreeBSD-src-f58eeaae2ea634ac387432d4df3035bc953d63c8.tar.gz
Fix some leftover binaries and shared libraries in the system that still
have an executable stack, due to linking in hand-assembled .S or .s files, that have no .GNU-stack sections: RWX --- --- /lib/libcrypto.so.6 RWX --- --- /lib/libmd.so.5 RWX --- --- /lib/libz.so.6 RWX --- --- /lib/libzpool.so.2 RWX --- --- /usr/lib/liblzma.so.5 These were found using scanelf, from the sysutils/pax-utils port. Reviewed by: kib
Diffstat (limited to 'lib/libz')
-rw-r--r--lib/libz/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libz/Makefile b/lib/libz/Makefile
index 8835e0d..1343c6f 100644
--- a/lib/libz/Makefile
+++ b/lib/libz/Makefile
@@ -39,12 +39,14 @@ SRCS+= zutil.c
.PATH: ${.CURDIR}/contrib/asm686
SRCS+= match.S
CFLAGS+= -DASMV -DNO_UNDERLINE
+ACFLAGS+= -Wa,--noexecstack
.endif
.if ${MACHINE_ARCH} == "amd64"
.PATH: ${.CURDIR}/contrib/gcc_gvmat64
SRCS+= gvmat64.S
CFLAGS+= -DASMV -DNO_UNDERLINE
+ACFLAGS+= -Wa,--noexecstack
.endif
VERSION_DEF= ${.CURDIR}/Versions.def
OpenPOWER on IntegriCloud