* read.c (s_set): Check for missing symbol name.
authorAlan Modra <amodra@gmail.com>
Fri, 27 Jul 2001 08:35:56 +0000 (08:35 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 27 Jul 2001 08:35:56 +0000 (08:35 +0000)
gas/ChangeLog
gas/read.c

index dc13dc10027446ab3636a25a743f7c07dc2a840e..f2f84817997cd73455cb47da22f2a2c54063c91f 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-27  Tracy Kuhrt  <Tracy.Kuhrt@microchip.com>
+
+       * read.c (s_set): Check for missing symbol name.
+
 2001-07-26  Alan Modra  <amodra@bigpond.net.au>
 
        * write.c (relax_segment <rs_space>): Account for fr_fix.
index de3d9fdde517e7c49a1fce525c834d14ee67792b..c6ee4abc6030d5e139f7f75b9459b9c6c3a64e41 100644 (file)
@@ -2737,6 +2737,15 @@ s_set (equiv)
   name = input_line_pointer;
   delim = get_symbol_end ();
   end_name = input_line_pointer;
+
+  if (name[0] == '\0')
+    {
+      as_bad (_("expected symbol name"));
+      *end_name = delim;
+      discard_rest_of_line ();
+      return;
+    }
+
   *end_name = delim;
   SKIP_WHITESPACE ();