mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
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:

committed by
Nick Clifton

parent
7486cb6843
commit
5a2947cf17
@ -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>
|
2021-09-02 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR 28292
|
PR 28292
|
||||||
|
@ -4773,20 +4773,12 @@ cross_section (int ref, void (*builder) (int), int ua)
|
|||||||
char *start, *end;
|
char *start, *end;
|
||||||
int saved_auto_align;
|
int saved_auto_align;
|
||||||
unsigned int section_count;
|
unsigned int section_count;
|
||||||
char *name;
|
const char *name;
|
||||||
char c;
|
|
||||||
|
|
||||||
SKIP_WHITESPACE ();
|
|
||||||
start = input_line_pointer;
|
start = input_line_pointer;
|
||||||
c = get_symbol_name (&name);
|
name = obj_elf_section_name ();
|
||||||
if (input_line_pointer == start)
|
if (name == NULL)
|
||||||
{
|
|
||||||
as_bad (_("Missing section name"));
|
|
||||||
ignore_rest_of_line ();
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
* input_line_pointer = c;
|
|
||||||
SKIP_WHITESPACE_AFTER_NAME ();
|
|
||||||
end = input_line_pointer;
|
end = input_line_pointer;
|
||||||
if (*input_line_pointer != ',')
|
if (*input_line_pointer != ',')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user