From 64574d417a8af9e6f65b3cb268ba55fe923bef56 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Fri, 15 Apr 2011 17:03:49 +0000 Subject: [PATCH] * scripts/extract_symvers.pl: Handle NOTY. From-SVN: r172506 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/scripts/extract_symvers.pl | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0732a9ea97d..4a581115f0b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2011-04-15 Rainer Orth + + * scripts/extract_symvers.pl: Handle NOTY. + 2011-04-15 Paolo Carlini * include/std/istream: Fix comments in the light of DR60 + N3168. 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 () { 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 () { 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"; -- 2.30.2