diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-09-13 11:00:25 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-09-13 11:00:25 +0100 |
commit | 5a2947cf171a3e5fbadfe6f9ea94c26fb44d39e2 (patch) | |
tree | 6d7654d9f13cf00f516be03c333120351ce4882b /gas/config/tc-ia64.c | |
parent | 7486cb6843e2146c38dfd4daae3e65d97fd44fc1 (diff) | |
download | gdb-5a2947cf171a3e5fbadfe6f9ea94c26fb44d39e2.zip gdb-5a2947cf171a3e5fbadfe6f9ea94c26fb44d39e2.tar.gz gdb-5a2947cf171a3e5fbadfe6f9ea94c26fb44d39e2.tar.bz2 |
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.
Diffstat (limited to 'gas/config/tc-ia64.c')
-rw-r--r-- | gas/config/tc-ia64.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index dd2147b..4fc0c56 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 != ',') { |