tools/mksymtab.sh: Fix issue to generate symtab_apps.c for MSYS

The file permission is used to get the execlist, but the file permission
cannot be changed for MSYS environment. As a result, symtab_apps.c cannot
be generated correctly. This commit removes the permission match.
This commit is contained in:
baggio63446333 2021-09-29 12:17:47 +09:00 committed by Xiang Xiao
parent 8d3a536650
commit 562239ecb2

View File

@ -42,9 +42,9 @@ prefix=$2
varlist=`find $dir -name *-thunk.S 2>/dev/null | xargs grep -h asciz | cut -f3 | sort | uniq`
if [ -z "$varlist" ]; then
execlist=`find $dir -type f -perm -a=x 2>/dev/null`
execlist=`find $dir -type f 2>/dev/null`
if [ ! -z "$execlist" ]; then
varlist=`nm $execlist | fgrep ' U ' | sed -e "s/^[ ]*//g" | cut -d' ' -f2 | sort | uniq`
varlist=`nm $execlist 2>/dev/null | fgrep ' U ' | sed -e "s/^[ ]*//g" | cut -d' ' -f2 | sort | uniq`
fi
fi