From 056f04d170a9f79f6eceea5bf11ba184ea6afd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Maggioni?= Date: Tue, 12 Aug 2025 20:36:37 +0200 Subject: [PATCH] tools/mksymtab: Replace deprecated fgrep usages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In most modern distros, fgrep is deprecated in favor of "grep -F" Signed-off-by: Niccolò Maggioni --- tools/mksymtab.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh index 9c2a0cf92..1f9d7ed8c 100755 --- a/tools/mksymtab.sh +++ b/tools/mksymtab.sh @@ -72,10 +72,10 @@ if [ -z "$varlist" ]; then if [ ! -z "$execlist" ]; then # Get all undefined symbol names - varlist=`nm $execlist 2>/dev/null | fgrep ' U ' | sed -e "s/^[ ]*//g" | cut -d' ' -f2 | sort | uniq` + varlist=`nm $execlist 2>/dev/null | grep -F ' U ' | sed -e "s/^[ ]*//g" | cut -d' ' -f2 | sort | uniq` # Get all defined symbol names - deflist=`nm $execlist 2>/dev/null | fgrep -v -e ' U ' -e ':' | sed -e "s/^[0-9a-z]* //g" | cut -d' ' -f2 | sort | uniq` + deflist=`nm $execlist 2>/dev/null | grep -F -v -e ' U ' -e ':' | sed -e "s/^[0-9a-z]* //g" | cut -d' ' -f2 | sort | uniq` # Remove the intersection between them, and the remaining symbols are found in the main image common=`echo "$varlist" | tr ' ' '\n' | grep -Fxf <(echo "$deflist" | tr ' ' '\n') | tr '\n' ' '`