public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* vms-alpha gas segfault
@ 2019-05-22  9:03 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2019-05-22  9:03 UTC (permalink / raw)
  To: binutils

	* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
	processing on "size error in section".

diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index d8b30823a2..4e6f9c1c42 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;

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-22  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22  9:03 vms-alpha gas segfault Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).