* scripts/extract_symvers: Escape [ and ] brackets.

From-SVN: r143333
This commit is contained in:
Uros Bizjak 2009-01-13 09:30:12 +01:00
parent 26d5bf5baa
commit 616ea7ac83

View File

@ -53,7 +53,7 @@ export LANG
tmp=extract.$$
${readelf} ${lib} |\
sed -e 's/ [<other>: [A-Fa-f0-9]*] //' -e '/\.dynsym/,/^$/p;d' |\
sed -e 's/ \[<other>: [A-Fa-f0-9]*\] //' -e '/\.dynsym/,/^$/p;d' |\
egrep -v ' (LOCAL|UND) ' |\
awk '{ if ($4 == "FUNC" || $4 == "NOTYPE")
printf "%s:%s\n", $4, $8;