only complain about executable stacks on architectures that actually support them
authorMike Frysinger <vapier@gentoo.org>
Thu, 5 Jan 2006 05:24:53 +0000 (05:24 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 5 Jan 2006 05:24:53 +0000 (05:24 -0000)
svn path=/main/trunk/; revision=2527

bin/ebuild.sh

index fd118081c547d8dba129ad708fbae1eb4319b2f0..141c5712fbbe45a4895ce60111f204e2589e4014 100755 (executable)
@@ -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"