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.
This commit is contained in:
Jan Beulich
2021-09-13 11:00:25 +01:00
committed by Nick Clifton
parent 7486cb6843
commit 5a2947cf17
2 changed files with 9 additions and 12 deletions

View 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

View 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 != ',')
{