1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Fix the last binary in the base system that still has an executable

stack, /usr/sbin/uathload.

Since this program links in a .o file containing a firmware blob, and
there is no clean way to add a .note.GNU-stack section to this .o file,
we simply use the -z noexecstack option to ld here.
This commit is contained in:
Dimitry Andric 2011-02-16 20:46:57 +00:00
parent 917721a495
commit 19e3d7d70b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218748

View File

@ -7,6 +7,10 @@ SRCS= uathload.c ar5523.bin
CLEANFILES= ar5523.bin
.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "sparc64"
LDFLAGS+= -Wl,-z,noexecstack
.endif
ar5523.bin: ${.CURDIR}/../../sys/contrib/dev/uath/ar5523.bin.uu
uudecode -p ${.CURDIR}/../../sys/contrib/dev/uath/ar5523.bin.uu > ${.TARGET}