summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-05 05:24:53 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-05 05:24:53 +0000
commita49c023410104aecbd8e138e9cc7826f8f19bf24 (patch)
tree761d95515333a6bb64c9e7a2088857a5636df23e
parenta0d57da81c5cd22c6f3d871df1d4d0a9f200d1e3 (diff)
downloadportage-a49c023410104aecbd8e138e9cc7826f8f19bf24.tar.gz
portage-a49c023410104aecbd8e138e9cc7826f8f19bf24.tar.bz2
portage-a49c023410104aecbd8e138e9cc7826f8f19bf24.zip
only complain about executable stacks on architectures that actually support them
svn path=/main/trunk/; revision=2527
-rwxr-xr-xbin/ebuild.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index fd118081c..141c5712f 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1073,8 +1073,15 @@ dyn_install() {
sleep 1
fi
- # Check for files with executable stacks
- f=$(scanelf -qyRF '%e %p' "${D}")
+ # Check for files with executable stacks, but only on arches which
+ # are supported at the moment. Keep this list in sync with
+ # http://hardened.gentoo.org/gnu-stack.xml (Arch Status)
+ case ${CHOST} in
+ i?86*|ia64*|s390*|x86_64*)
+ f=$(scanelf -qyRF '%e %p' "${D}") ;;
+ *)
+ f="" ;;
+ esac
if [[ -n ${f} ]] ; then
echo -ne '\a\n'
echo "QA Notice: the following files contain executable stacks"