scan archives of objects for exec stacks
authorMike Frysinger <vapier@gentoo.org>
Thu, 25 Dec 2008 11:10:19 +0000 (11:10 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 25 Dec 2008 11:10:19 +0000 (11:10 -0000)
svn path=/main/trunk/; revision=12345

bin/misc-functions.sh

index 8ce82a2a825ddb706ac20f005973fc1647efa9e0..e20626522a8c6860d5567716e916ab14a3669844 100755 (executable)
@@ -98,7 +98,7 @@ install_qa_check() {
                export QA_TEXTRELS="${QA_TEXTRELS} lib*/modules/*.ko"
                f=$(scanelf -qyRF '%t %p' "${D}" | grep -v 'usr/lib/debug/')
                if [[ -n ${f} ]] ; then
-                       scanelf -qyRF '%T %p' "${PORTAGE_BUILDDIR}"/ &> "${T}"/scanelf-textrel.log
+                       scanelf -qyRAF '%T %p' "${PORTAGE_BUILDDIR}"/ &> "${T}"/scanelf-textrel.log
                        vecho -ne '\a\n'
                        eqawarn "QA Notice: The following files contain runtime text relocations"
                        eqawarn " Text relocations force the dynamic linker to perform extra"
@@ -136,14 +136,14 @@ install_qa_check() {
                                        [[ -n ${QA_STRICT_WX_LOAD} ]] && QA_WX_LOAD=""
                                        export QA_EXECSTACK="${QA_EXECSTACK} lib*/modules/*.ko"
                                        export QA_WX_LOAD="${QA_WX_LOAD} lib*/modules/*.ko"
-                                       f=$(scanelf -qyRF '%e %p' "${D}" | grep -v 'usr/lib/debug/')
+                                       f=$(scanelf -qyRAF '%e %p' "${D}" | grep -v 'usr/lib/debug/')
                                        ;;
                        esac
                        ;;
                esac
                if [[ -n ${f} ]] ; then
                        # One more pass to help devs track down the source
-                       scanelf -qyRF '%e %p' "${PORTAGE_BUILDDIR}"/ &> "${T}"/scanelf-execstack.log
+                       scanelf -qyRAF '%e %p' "${PORTAGE_BUILDDIR}"/ &> "${T}"/scanelf-execstack.log
                        vecho -ne '\a\n'
                        eqawarn "QA Notice: The following files contain executable stacks"
                        eqawarn " Files with executable stacks will not work properly (or at all!)"