mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* read.c (s_set): Check for missing symbol name.
This commit is contained in:
parent
411e0b6d6c
commit
409d19c41a
@ -1,3 +1,7 @@
|
||||
2001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
|
||||
|
||||
* read.c (s_set): Check for missing symbol name.
|
||||
|
||||
2001-07-26 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* write.c (relax_segment <rs_space>): Account for fr_fix.
|
||||
|
@ -2737,6 +2737,15 @@ s_set (equiv)
|
||||
name = input_line_pointer;
|
||||
delim = get_symbol_end ();
|
||||
end_name = input_line_pointer;
|
||||
|
||||
if (name[0] == '\0')
|
||||
{
|
||||
as_bad (_("expected symbol name"));
|
||||
*end_name = delim;
|
||||
discard_rest_of_line ();
|
||||
return;
|
||||
}
|
||||
|
||||
*end_name = delim;
|
||||
SKIP_WHITESPACE ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user