mirror of git://gcc.gnu.org/git/gcc.git
* scripts/extract_symvers.pl: Handle NOTY.
From-SVN: r172506
This commit is contained in:
parent
b8388bb062
commit
64574d417a
|
@ -1,3 +1,7 @@
|
||||||
|
2011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* scripts/extract_symvers.pl: Handle NOTY.
|
||||||
|
|
||||||
2011-04-15 Paolo Carlini <paolo.carlini@oracle.com>
|
2011-04-15 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
* include/std/istream: Fix comments in the light of DR60 + N3168.
|
* include/std/istream: Fix comments in the light of DR60 + N3168.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/perl -w
|
#!/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
|
# 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
|
||||||
|
@ -108,6 +108,7 @@ while (<ELFDUMP>) {
|
||||||
die "unhandled symbol:\n$_" if ($bind !~ /^(GLOB|WEAK)/ or $oth !~ /[DP]/);
|
die "unhandled symbol:\n$_" if ($bind !~ /^(GLOB|WEAK)/ or $oth !~ /[DP]/);
|
||||||
|
|
||||||
# Adapt to readelf type naming convention.
|
# Adapt to readelf type naming convention.
|
||||||
|
$type = "NOTYPE" if ($type eq "NOTY");
|
||||||
$type = "OBJECT" if ($type eq "OBJT");
|
$type = "OBJECT" if ($type eq "OBJT");
|
||||||
|
|
||||||
# Use correct symbol type.
|
# Use correct symbol type.
|
||||||
|
@ -116,7 +117,7 @@ while (<ELFDUMP>) {
|
||||||
close ELFDUMP or die "elfdump error";
|
close ELFDUMP or die "elfdump error";
|
||||||
|
|
||||||
foreach $symbol (keys %type) {
|
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";
|
push @lines, "$type{$symbol}:$symbol\@\@$version{$symbol}\n";
|
||||||
} elsif ($type{$symbol} eq "OBJECT" and $size{$symbol} == 0) {
|
} elsif ($type{$symbol} eq "OBJECT" and $size{$symbol} == 0) {
|
||||||
push @lines, "$type{$symbol}:$size{$symbol}:$version{$symbol}\n";
|
push @lines, "$type{$symbol}:$size{$symbol}:$version{$symbol}\n";
|
||||||
|
|
Loading…
Reference in New Issue