binutils/
[deliverable/binutils-gdb.git] / gas / config / obj-elf.c
index ab1550df1f442cc1ee17c2f9864aaea7fdc6a9df..ccae61671cb70f8cd939b95a9a0c5a6e9e59d521 100644 (file)
@@ -922,11 +922,23 @@ obj_elf_section (int push)
       ++input_line_pointer;
       SKIP_WHITESPACE ();
 
-      if (push)
+      if (push && ISDIGIT (*input_line_pointer))
        {
+         /* .pushsection has an optional subsection.  */
          new_subsection = (subsegT) get_absolute_expression ();
+
+         SKIP_WHITESPACE ();
+
+         /* Stop if we don't see a comma.  */
+         if (*input_line_pointer != ',')
+           goto done;
+
+         /* Skip the comma.  */
+         ++input_line_pointer;
+         SKIP_WHITESPACE ();
        }
-      else if (*input_line_pointer == '"')
+
+      if (*input_line_pointer == '"')
        {
          beg = demand_copy_C_string (&dummy);
          if (beg == NULL)
@@ -1032,6 +1044,7 @@ obj_elf_section (int push)
        }
     }
 
+done:
   demand_empty_rest_of_line ();
 
   obj_elf_change_section (name, type, attr, entsize, group_name, linkonce, push);
This page took 0.023114 seconds and 4 git commands to generate.