diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-13 07:42:26 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-13 07:42:26 +0000 |
commit | b287f1ff905eae06bb9b7bb8f9398742a1171943 (patch) | |
tree | 3beb7fdb9f98e59c248fa9a85bc6e8664798d6c7 /libstdc++-v3/scripts | |
parent | 91e64380f9e6064f8535b55313f92b64e64551db (diff) | |
download | gcc-b287f1ff905eae06bb9b7bb8f9398742a1171943.tar.gz |
* scripts/extract_symvers: Add sed script to remove ' [<other>: xx] '
field from readelf output.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143331 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/scripts')
-rwxr-xr-x | libstdc++-v3/scripts/extract_symvers | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libstdc++-v3/scripts/extract_symvers b/libstdc++-v3/scripts/extract_symvers index 8a74db9f337..d26dfdf0181 100755 --- a/libstdc++-v3/scripts/extract_symvers +++ b/libstdc++-v3/scripts/extract_symvers @@ -1,6 +1,6 @@ #!/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 # software; you can redistribute it and/or modify it under the @@ -52,7 +52,9 @@ export LANG 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") printf "%s:%s\n", $4, $8; else if ($4 == "OBJECT") |