aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-09-13 11:00:25 +0100
committerNick Clifton <nickc@redhat.com>2021-09-13 11:00:25 +0100
commit5a2947cf171a3e5fbadfe6f9ea94c26fb44d39e2 (patch)
tree6d7654d9f13cf00f516be03c333120351ce4882b /gas
parent7486cb6843e2146c38dfd4daae3e65d97fd44fc1 (diff)
downloadfsf-binutils-gdb-5a2947cf171a3e5fbadfe6f9ea94c26fb44d39e2.zip
fsf-binutils-gdb-5a2947cf171a3e5fbadfe6f9ea94c26fb44d39e2.tar.gz
fsf-binutils-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')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ia64.c16
2 files changed, 9 insertions, 12 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0eb90ac..9d6ecf3 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
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 != ',')
{