File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ echo "Extracting new and modified ELF sections"
508508FILES=" $( cat " $TEMPDIR /changed_objs" ) "
509509cd " $TEMPDIR "
510510mkdir output
511- declare -A objnames
511+ declare -a objnames
512512CHANGED=0
513513ERROR=0
514514for i in $FILES ; do
@@ -539,11 +539,11 @@ for i in $FILES; do
539539 if [[ $rc -eq 0 ]]; then
540540 [[ -n $ERROR_IF_DIFF ]] && die $ERROR_IF_DIFF
541541 CHANGED=1
542- objnames[$KOBJFILE ]=1
542+ objnames[${ # objnames[@]} ]= $KOBJFILE
543543 fi
544544 else
545545 cp -f " patched/$i " " output/$i "
546- objnames[$KOBJFILE ]=1
546+ objnames[${ # objnames[@]} ]= $KOBJFILE
547547 fi
548548done
549549
@@ -556,7 +556,10 @@ if [[ $CHANGED -eq 0 ]]; then
556556fi
557557
558558echo -n " Patched objects:"
559- for i in " ${! objnames[@]} " ; do echo -n " $( basename $i ) " ; done
559+ for i in $( echo " ${objnames[@]} " | tr ' ' ' \n' | sort -u | tr ' \n' ' ' )
560+ do
561+ echo -n " $( basename $i ) "
562+ done
560563echo
561564
562565export KCFLAGS=" -I$DATADIR /patch"
You can’t perform that action at this time.
0 commit comments