arm: Force non-executable stack (part 2)
authorErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 4 May 2015 23:39:31 +0000 (23:39 +0000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 5 May 2015 02:50:00 +0000 (12:50 +1000)
This was supposed to be part of commit 63a10bbc42 but I pushed
from the wrong machine. This fixes cross compiling to arm.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
aclocal.m4

index bb46fda..590edb0 100644 (file)
@@ -571,7 +571,7 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
         # gcc to link using the gold linker.
         # Forcing LD to be ld.gold is done in FIND_LD m4 macro.
         $3="$$3 -fuse-ld=gold -Wl,-z,noexecstack"
-        $4="$$4 -z,noexecstack"
+        $4="$$4 -z noexecstack"
         ;;
     esac