From: Alan Modra Date: Wed, 22 May 2019 08:30:16 +0000 (+0930) Subject: vms-alpha gas segfault X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ec2f606ce9ebfe9b7d1c6d3db0614d19bd03a6b;p=binutils-gdb.git vms-alpha gas segfault * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further processing on "size error in section". --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index af7ae755ea1..4f523fa3ae1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2019-05-22 Alan Modra + + * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further + processing on "size error in section". + 2019-05-22 Alan Modra * som.c (som_bfd_free_cached_info): Call diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index d8b30823a2b..4e6f9c1c429 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -4094,7 +4094,10 @@ _bfd_vms_write_etir (bfd * abfd, int objtype ATTRIBUTE_UNUSED) { /* Output rest of section. */ 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; sto_imm (abfd, section, size, curr_data, curr_addr); curr_data += size;