* sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
table index against the number of symbols for a base relative reloc.
This commit is contained in:
parent
ef51e36abc
commit
baabeb74a7
|
@ -1,5 +1,9 @@
|
||||||
Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
|
Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
|
||||||
|
table index against the number of symbols for a base relative
|
||||||
|
reloc.
|
||||||
|
|
||||||
* coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
|
* coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
|
||||||
static function.
|
static function.
|
||||||
* xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
|
* xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
|
||||||
|
|
16
bfd/sunos.c
16
bfd/sunos.c
|
@ -1710,15 +1710,6 @@ sunos_scan_ext_relocs (info, abfd, sec, relocs, rel_size)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (r_index >= bfd_get_symcount (abfd))
|
|
||||||
{
|
|
||||||
/* This is abnormal, but should be caught in the
|
|
||||||
relocation phase. */
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If this is a base relative reloc, we need to make an entry in
|
/* If this is a base relative reloc, we need to make an entry in
|
||||||
the .got section. */
|
the .got section. */
|
||||||
|
@ -1746,6 +1737,13 @@ sunos_scan_ext_relocs (info, abfd, sec, relocs, rel_size)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (r_index >= bfd_get_symcount (abfd))
|
||||||
|
{
|
||||||
|
/* This is abnormal, but should be caught in the
|
||||||
|
relocation phase. */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (adata (abfd).local_got_offsets == NULL)
|
if (adata (abfd).local_got_offsets == NULL)
|
||||||
{
|
{
|
||||||
adata (abfd).local_got_offsets =
|
adata (abfd).local_got_offsets =
|
||||||
|
|
Loading…
Reference in New Issue