Catch attempts to create strings in the abs section.
This commit is contained in:
parent
a7fda4576d
commit
8ac9ba6cf2
2 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2002-08-14 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* read.c (stringer): Catch attempts to create strings in the abs
|
||||
section.
|
||||
|
||||
* config/tc-alpha.c: Fix compiling for COFF targets.
|
||||
Some minor formatting tidyups.
|
||||
|
||||
|
|
|
@ -4564,6 +4564,15 @@ stringer (append_zero) /* Worker to do .ascii etc statements. */
|
|||
{
|
||||
c = ','; /* Do loop. */
|
||||
}
|
||||
/* If we have been switched into the abs_section then we
|
||||
will not have an obstack onto which we can hang strings. */
|
||||
if (now_seg == absolute_section)
|
||||
{
|
||||
as_bad (_("strings must be placed into a section"));
|
||||
c = 0;
|
||||
ignore_rest_of_line ();
|
||||
}
|
||||
|
||||
while (c == ',' || c == '<' || c == '"')
|
||||
{
|
||||
SKIP_WHITESPACE ();
|
||||
|
|
Loading…
Reference in a new issue