From: Jan Beulich Date: Mon, 13 Sep 2021 10:00:25 +0000 (+0100) Subject: ia64: don't use get_symbol_name() for section parsing. With cross_section() later... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a2947cf171a3e5fbadfe6f9ea94c26fb44d39e2;p=binutils-gdb.git ia64: don't use get_symbol_name() for section parsing. With cross_section() later calling obj_elf_section(), it seems better to pre-parse the section name by the same function that will be used there. This way no differences in what is accepted will result. gas * config/tc-ia64.c (cross_section): Use obj_elf_section_name to parse the section name. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 0eb90ac4aa4..9d6ecf3ce4d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2021-09-13 Jan Beulich + + * config/tc-ia64.c (cross_section): Use obj_elf_section_name to + parse the section name. + 2021-09-02 Nick Clifton PR 28292 diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index dd2147b5176..4fc0c5610dc 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -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 != ',') {