From c42c9d564632fc4cc1e6ec9746c2cba2e0a61d34 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 14 Jan 2011 11:23:39 +0000 Subject: [PATCH] Mark libcompiler_rt as not needed executable stack on powerpc. Reviewed and tested by: nwhitehorn --- lib/libcompiler_rt/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libcompiler_rt/Makefile b/lib/libcompiler_rt/Makefile index a43672adbe2..dcfcf740f16 100644 --- a/lib/libcompiler_rt/Makefile +++ b/lib/libcompiler_rt/Makefile @@ -156,7 +156,8 @@ SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a . endif .endif -.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || \ + ${MACHINE_CPUARCH} == "powerpc" AFLAGS+=--noexecstack ACFLAGS+=-Wa,--noexecstack .endif