mirror of
https://frontier.innolan.net/github/amigaos-binutils.git
synced 2025-11-22 08:38:03 +00:00
support older compilers
This commit is contained in:
@ -664,7 +664,7 @@ parse_archive_units (
|
|||||||
if (bfd_bread (stabdata, stab_size, abfd) != stab_size)
|
if (bfd_bread (stabdata, stab_size, abfd) != stab_size)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
for (unsigned i = 0; i < stab_size; i += 12)
|
{unsigned i; for (i = 0; i < stab_size; i += 12)
|
||||||
{
|
{
|
||||||
unsigned str_offset = bfd_getb32 (stabdata + i);
|
unsigned str_offset = bfd_getb32 (stabdata + i);
|
||||||
char type = stabdata[i + 4];
|
char type = stabdata[i + 4];
|
||||||
@ -698,7 +698,7 @@ parse_archive_units (
|
|||||||
nsyms->name = (char *) stabstrdata + str_offset;
|
nsyms->name = (char *) stabstrdata + str_offset;
|
||||||
DPRINT(20,("sym: %s\n", nsyms->name));
|
DPRINT(20,("sym: %s\n", nsyms->name));
|
||||||
++defsymcount;
|
++defsymcount;
|
||||||
}
|
}}
|
||||||
bfd_seek (abfd, last_pos, SEEK_SET);
|
bfd_seek (abfd, last_pos, SEEK_SET);
|
||||||
stab_pos = stabstr_pos = 0;
|
stab_pos = stabstr_pos = 0;
|
||||||
}
|
}
|
||||||
@ -2853,7 +2853,7 @@ amiga_slurp_symbol_table (
|
|||||||
if (bfd_bread (stabdata, astab->disk_size, abfd) != astab->disk_size)
|
if (bfd_bread (stabdata, astab->disk_size, abfd) != astab->disk_size)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
for (unsigned i = 0; i < astab->disk_size; i += 12)
|
{unsigned i; for (i = 0; i < astab->disk_size; i += 12)
|
||||||
{
|
{
|
||||||
unsigned str_offset = bfd_getb32 (stabdata + i);
|
unsigned str_offset = bfd_getb32 (stabdata + i);
|
||||||
char type = stabdata[i + 4];
|
char type = stabdata[i + 4];
|
||||||
@ -2953,7 +2953,7 @@ amiga_slurp_symbol_table (
|
|||||||
asp->symbol.value = value;
|
asp->symbol.value = value;
|
||||||
|
|
||||||
++asp;
|
++asp;
|
||||||
}
|
}}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user