diff options
author | Nick Clifton <nickc@redhat.com> | 2002-05-11 19:40:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-05-11 19:40:29 +0000 |
commit | 8a7a79efec1f5843af1648c841f52eb175e26d41 (patch) | |
tree | 061db1f3d4b3ea4c0bf68b81fdd20fd18a44a04d /gas/stabs.c | |
parent | 3cccd481ae99ba1ad1829d5d99842511b1014774 (diff) | |
download | binutils-redhat-8a7a79efec1f5843af1648c841f52eb175e26d41.tar.gz |
Warn about a description field that is too big.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r-- | gas/stabs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/stabs.c b/gas/stabs.c index bdeae10d10..949cca0b95 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -240,6 +240,14 @@ s_stab_generic (what, stab_secname, stabstr_secname) other = longint; desc = get_absolute_expression (); + + if ((desc > 0xffff) || (desc < -0x8000)) + /* This could happen for example with a source file with a huge + number of lines. The only cure is to use a different debug + format, probably DWARF. */ + as_warn (_(".stab%c: description field '%x' too big, maybe you could a different debug format"), + what, desc); + if (what == 's' || what == 'n') { if (*input_line_pointer != ',') |