vms-alpha gas segfault
authorAlan Modra <amodra@gmail.com>
Wed, 22 May 2019 08:30:16 +0000 (18:00 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 22 May 2019 09:03:39 +0000 (18:33 +0930)
* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
processing on "size error in section".

bfd/ChangeLog
bfd/vms-alpha.c

index af7ae755ea11d4b43a0b14aaeb9bf3312f9bd7b9..4f523fa3ae1a9217499a19cbe2b5ea11a33434fa 100644 (file)
@@ -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>
 
        * som.c (som_bfd_free_cached_info): Call
index d8b30823a2b7c247057f0fef6dc130f90067336d..4e6f9c1c429c0dc539843fd4b8466896bbfa5efc 100644 (file)
@@ -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;
This page took 0.027877 seconds and 4 git commands to generate.