#! /bin/sh
# Embed an SPU ELF executable into a PowerPC object file.
#
-# Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
+# Copyright (C) 2006-2014 Free Software Foundation, Inc.
#
# This file is part of GNU Binutils.
#
# 4. Write a struct spe_program_handle to .data.
# 5. Write a table of _SPUEAR_ symbols.
${CC} ${FLAGS} -x assembler-with-cpp -nostartfiles -nostdlib \
- -Wa,-mbig -Wl,-r -Wl,-x -o ${OUTFILE} - <<EOF
+ -Wa,-mbig -Wa,-noexecstack -Wl,-r -Wl,-x -o ${OUTFILE} - <<EOF
.section .data.spetoe,"aw",@progbits
.p2align 7
__spetoe__: