]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ia64: don't use get_symbol_name() for section parsing. With cross_section() later...
authorJan Beulich <jbeulich@suse.com>
Mon, 13 Sep 2021 10:00:25 +0000 (11:00 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 13 Sep 2021 10:00:25 +0000 (11:00 +0100)
gas * config/tc-ia64.c (cross_section): Use obj_elf_section_name to
parse the section name.

gas/ChangeLog
gas/config/tc-ia64.c

index 0eb90ac4aa480980f5460aa0431d71713a26148e..9d6ecf3ce4d1e748d946afb08acb450702cf4c04 100644 (file)
@@ -1,3 +1,8 @@
+2021-09-13  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-ia64.c (cross_section): Use obj_elf_section_name to
+       parse the section name.
+
 2021-09-02  Nick Clifton  <nickc@redhat.com>
 
        PR 28292
index dd2147b5176a8ba269ea1a21389c1490bf3dcd78..4fc0c5610dc610219439a26a5fe606ee10344451 100644 (file)
@@ -4773,20 +4773,12 @@ cross_section (int ref, void (*builder) (int), int ua)
   char *start, *end;
   int saved_auto_align;
   unsigned int section_count;
-  char *name;
-  char c;
+  const char *name;
 
-  SKIP_WHITESPACE ();
   start = input_line_pointer;
-  c = get_symbol_name (&name);
-  if (input_line_pointer == start)
-    {
-      as_bad (_("Missing section name"));
-      ignore_rest_of_line ();
-      return;
-    }
-  * input_line_pointer = c;
-  SKIP_WHITESPACE_AFTER_NAME ();
+  name = obj_elf_section_name ();
+  if (name == NULL)
+    return;
   end = input_line_pointer;
   if (*input_line_pointer != ',')
     {