mirror of git://gcc.gnu.org/git/gcc.git
extract_symvers: Add sed script to remove ' [<other>: xx] ' field from readelf output.
* scripts/extract_symvers: Add sed script to remove ' [<other>: xx] ' field from readelf output. From-SVN: r143331
This commit is contained in:
parent
5d14e3d50a
commit
6ce45dc046
|
@ -1,3 +1,8 @@
|
||||||
|
2009-01-13 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
* scripts/extract_symvers: Add sed script to remove ' [<other>: xx] '
|
||||||
|
field from readelf output.
|
||||||
|
|
||||||
2009-01-12 Benjamin Kosnik <bkoz@redhat.com>
|
2009-01-12 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
PR libstdc++/38384
|
PR libstdc++/38384
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
# Copyright (C) 2002, 2003, 2009 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is part of the GNU ISO C++ Library. This library is free
|
# This file is part of the GNU ISO C++ Library. This library is free
|
||||||
# software; you can redistribute it and/or modify it under the
|
# software; you can redistribute it and/or modify it under the
|
||||||
|
@ -52,7 +52,9 @@ export LANG
|
||||||
|
|
||||||
tmp=extract.$$
|
tmp=extract.$$
|
||||||
|
|
||||||
${readelf} ${lib} | sed '/\.dynsym/,/^$/p;d' | egrep -v ' (LOCAL|UND) ' |\
|
${readelf} ${lib} |\
|
||||||
|
sed -e 's/ [<other>: [A-Fa-f0-9]*] //' -e '/\.dynsym/,/^$/p;d' |\
|
||||||
|
egrep -v ' (LOCAL|UND) ' |\
|
||||||
awk '{ if ($4 == "FUNC" || $4 == "NOTYPE")
|
awk '{ if ($4 == "FUNC" || $4 == "NOTYPE")
|
||||||
printf "%s:%s\n", $4, $8;
|
printf "%s:%s\n", $4, $8;
|
||||||
else if ($4 == "OBJECT")
|
else if ($4 == "OBJECT")
|
||||||
|
|
Loading…
Reference in New Issue