diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-15 17:03:49 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-15 17:03:49 +0000 |
commit | cc18145781d1c1e0ad215b0e6148c3df6d9eb151 (patch) | |
tree | f09b7b768b2b65c0b028db59753d3a9a5bda97e3 /libstdc++-v3/scripts | |
parent | d99997bc5af7645b0627236a57e83cd921bd31c2 (diff) | |
download | gcc-cc18145781d1c1e0ad215b0e6148c3df6d9eb151.tar.gz |
* scripts/extract_symvers.pl: Handle NOTY.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172506 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/scripts')
-rw-r--r-- | libstdc++-v3/scripts/extract_symvers.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/scripts/extract_symvers.pl b/libstdc++-v3/scripts/extract_symvers.pl index 2bac1cd5648..5585abffb23 100644 --- a/libstdc++-v3/scripts/extract_symvers.pl +++ b/libstdc++-v3/scripts/extract_symvers.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# Copyright (C) 2010 Free Software Foundation, Inc. +# Copyright (C) 2010, 2011 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 @@ -108,6 +108,7 @@ while (<ELFDUMP>) { die "unhandled symbol:\n$_" if ($bind !~ /^(GLOB|WEAK)/ or $oth !~ /[DP]/); # Adapt to readelf type naming convention. + $type = "NOTYPE" if ($type eq "NOTY"); $type = "OBJECT" if ($type eq "OBJT"); # Use correct symbol type. @@ -116,7 +117,7 @@ while (<ELFDUMP>) { close ELFDUMP or die "elfdump error"; foreach $symbol (keys %type) { - if ($type{$symbol} eq "FUNC") { + if ($type{$symbol} eq "FUNC" || $type{$symbol} eq "NOTYPE") { push @lines, "$type{$symbol}:$symbol\@\@$version{$symbol}\n"; } elsif ($type{$symbol} eq "OBJECT" and $size{$symbol} == 0) { push @lines, "$type{$symbol}:$size{$symbol}:$version{$symbol}\n"; |