From: Michael Brown Date: Tue, 3 May 2005 12:34:52 +0000 (+0000) Subject: Allow read-only symbols to be large X-Git-Tag: Eb.5.4.import~46 X-Git-Url: http://git.etherboot.org/people/xl0/gpxe.git/commitdiff_plain/cc73bba7ba30b10e8a9c3cdefd6ee3a0a7b23ac2 Allow read-only symbols to be large --- diff --git a/src/util/symcheck.pl b/src/util/symcheck.pl index df37a253..63736589 100755 --- a/src/util/symcheck.pl +++ b/src/util/symcheck.pl @@ -104,12 +104,13 @@ while ( ( my $symbol, my $info ) = each %$globals ) { } } -# Check for excessively large local symbols +# Check for excessively large local symbols. Text and rodata symbols +# are exempt from this check # while ( ( my $object, my $symbols ) = each %$symtab ) { while ( ( my $symbol, my $info ) = each %$symbols ) { if ( ( ! $info->{global} ) && - ( $info->{type} ne 't' ) && + ( ! ( $info->{type} =~ /^(t|r)$/ ) ) && ( $info->{size} >= WARNING_SIZE ) ) { $problems->{$object}->{large}->{$symbol} = 1; }