From 562239ecb2d84dd9de2dd206da41df19602e20cb Mon Sep 17 00:00:00 2001 From: baggio63446333 Date: Wed, 29 Sep 2021 12:17:47 +0900 Subject: [PATCH] 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. --- tools/mksymtab.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh index e7649bd47..9275945eb 100755 --- a/tools/mksymtab.sh +++ b/tools/mksymtab.sh @@ -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