AAganichev's parse_stab_type size fix.

This commit is contained in:
Alan Modra 2000-07-01 10:00:05 +00:00
parent 41f5a528d2
commit 944e5c61c8
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-07-01 Alexander Aganichev <AAganichev@hypercom.com>
* stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
struct debug_type stores size in bytes.
2000-07-01 Alan Modra <alan@linuxcare.com.au>
* Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed

View File

@ -1261,6 +1261,7 @@ parse_stab_type (dhandle, info, typename, pp, slotp)
{
case 's':
size = atoi (attr + 1);
size /= 8; /* Size is in bits. We store it in bytes. */
if (size <= 0)
size = -1;
break;