aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-alpha.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-22 18:00:16 +0930
committerAlan Modra <amodra@gmail.com>2019-05-22 18:33:39 +0930
commit9ec2f606ce9ebfe9b7d1c6d3db0614d19bd03a6b (patch)
tree45ca1c65fcf79d80246bd818a089873cd4c26b22 /bfd/vms-alpha.c
parent4decd602d8570eda5d36fd6cca2e50091000fa7a (diff)
downloadbinutils-9ec2f606ce9ebfe9b7d1c6d3db0614d19bd03a6b.zip
binutils-9ec2f606ce9ebfe9b7d1c6d3db0614d19bd03a6b.tar.gz
binutils-9ec2f606ce9ebfe9b7d1c6d3db0614d19bd03a6b.tar.bz2
vms-alpha gas segfault
* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further processing on "size error in section".
Diffstat (limited to 'bfd/vms-alpha.c')
-rw-r--r--bfd/vms-alpha.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index d8b3082..4e6f9c1 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;