URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 15 |
Rev 148 |
Line 637... |
Line 637... |
|
|
stptr = data->symptr
|
stptr = data->symptr
|
+ data->nsyms * (unsigned)sizeof (struct external_syment);
|
+ data->nsyms * (unsigned)sizeof (struct external_syment);
|
|
|
/* Read string table. */
|
/* Read string table. */
|
if (bfd_seek (abfd, stptr, SEEK_SET) != 0)
|
if (bfd_seek (abfd, stptr, SEEK_SET) != 0
|
|
|| bfd_bread (&stsz_arr, sizeof (stsz_arr), abfd) != sizeof (stsz_arr))
|
{
|
{
|
|
non_fatal (_("cannot read strings table length"));
|
data->strings_size = 0;
|
data->strings_size = 0;
|
}
|
}
|
else
|
else
|
{
|
{
|
if (bfd_bread (&stsz_arr, sizeof (stsz_arr), abfd) != sizeof (stsz_arr))
|
|
{
|
|
non_fatal (_("cannot read strings table len"));
|
|
return;
|
|
}
|
|
data->strings_size = bfd_h_get_32 (abfd, stsz_arr);
|
data->strings_size = bfd_h_get_32 (abfd, stsz_arr);
|
if (data->strings_size > sizeof (stsz_arr))
|
if (data->strings_size > sizeof (stsz_arr))
|
{
|
{
|
unsigned int remsz = data->strings_size - sizeof (stsz_arr);
|
unsigned int remsz = data->strings_size - sizeof (stsz_arr);
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.