mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
vms-alpha gas segfault
* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further processing on "size error in section".
This commit is contained in:
parent
4decd602d8
commit
9ec2f606ce
@ -1,3 +1,8 @@
|
|||||||
|
2019-05-22 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
|
||||||
|
processing on "size error in section".
|
||||||
|
|
||||||
2019-05-22 Alan Modra <amodra@gmail.com>
|
2019-05-22 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* som.c (som_bfd_free_cached_info): Call
|
* som.c (som_bfd_free_cached_info): Call
|
||||||
|
@ -4094,7 +4094,10 @@ _bfd_vms_write_etir (bfd * abfd, int objtype ATTRIBUTE_UNUSED)
|
|||||||
{
|
{
|
||||||
/* Output rest of section. */
|
/* Output rest of section. */
|
||||||
if (curr_addr > section->size)
|
if (curr_addr > section->size)
|
||||||
_bfd_error_handler (_("size error in section %pA"), section);
|
{
|
||||||
|
_bfd_error_handler (_("size error in section %pA"), section);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
size = section->size - curr_addr;
|
size = section->size - curr_addr;
|
||||||
sto_imm (abfd, section, size, curr_data, curr_addr);
|
sto_imm (abfd, section, size, curr_data, curr_addr);
|
||||||
curr_data += size;
|
curr_data += size;
|
||||||
|
Loading…
Reference in New Issue
Block a user