mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-25 02:43:21 +08:00
2011-06-24 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_slurp_relocs): Add a guard for relocs in the absolute section.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-06-24 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* vms-alpha.c (alpha_vms_slurp_relocs): Add a guard for relocs in the
|
||||||
|
absolute section.
|
||||||
|
|
||||||
2011-06-24 Alan Modra <amodra@gmail.com>
|
2011-06-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR ld/12921
|
PR ld/12921
|
||||||
|
@ -5106,7 +5106,14 @@ alpha_vms_slurp_relocs (bfd *abfd)
|
|||||||
(*_bfd_error_handler) (_("Invalid section index in ETIR"));
|
(*_bfd_error_handler) (_("Invalid section index in ETIR"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
sec = PRIV (sections)[cur_psect];
|
sec = PRIV (sections)[cur_psect];
|
||||||
|
if (sec == bfd_abs_section_ptr)
|
||||||
|
{
|
||||||
|
(*_bfd_error_handler) (_("Relocation for non-REL psect"));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
vms_sec = vms_section_data (sec);
|
vms_sec = vms_section_data (sec);
|
||||||
|
|
||||||
/* Allocate a reloc entry. */
|
/* Allocate a reloc entry. */
|
||||||
@ -5117,7 +5124,7 @@ alpha_vms_slurp_relocs (bfd *abfd)
|
|||||||
vms_sec->reloc_max = 64;
|
vms_sec->reloc_max = 64;
|
||||||
sec->relocation = bfd_zmalloc
|
sec->relocation = bfd_zmalloc
|
||||||
(vms_sec->reloc_max * sizeof (arelent));
|
(vms_sec->reloc_max * sizeof (arelent));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vms_sec->reloc_max *= 2;
|
vms_sec->reloc_max *= 2;
|
||||||
|
Reference in New Issue
Block a user