Browse files

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.
  • Loading branch information...
1 parent 2cc3fa6 commit 3863dfeae16213c624d40ab464e415c7b4ae9a4a @DimitryAndric DimitryAndric committed Feb 16, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 usr.sbin/uathload/Makefile
@@ -7,6 +7,10 @@ SRCS= uathload.c ar5523.bin
CLEANFILES= ar5523.bin
+.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "sparc64"
+LDFLAGS+= -Wl,-z,noexecstack
ar5523.bin: ${.CURDIR}/../../sys/contrib/dev/uath/ar5523.bin.uu
uudecode -p ${.CURDIR}/../../sys/contrib/dev/uath/ar5523.bin.uu > ${.TARGET}

0 comments on commit 3863dfe

Please sign in to comment.