Commit 6ce45dc0 by Uros Bizjak

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
parent 5d14e3d5
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
......
#!/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 ...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment