http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24c0498
)
Allow read-only symbols to be large
author
Michael Brown
<mcb30@etherboot.org>
Tue, 3 May 2005 12:34:52 +0000
(12:34 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Tue, 3 May 2005 12:34:52 +0000
(12:34 +0000)
src/util/symcheck.pl
patch
|
blob
|
history
diff --git
a/src/util/symcheck.pl
b/src/util/symcheck.pl
index
df37a25
..
6373658
100755
(executable)
--- 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} ) &&
#
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;
}
( $info->{size} >= WARNING_SIZE ) ) {
$problems->{$object}->{large}->{$symbol} = 1;
}