projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7fda45
)
Catch attempts to create strings in the abs section.
author
Nick Clifton
<nickc@redhat.com>
Wed, 14 Aug 2002 16:38:14 +0000
(16:38 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Wed, 14 Aug 2002 16:38:14 +0000
(16:38 +0000)
gas/ChangeLog
patch
|
blob
|
history
gas/read.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index d08f757209194fa8f1bf8339676c6bea1432e544..60ace3a417126c79061b8b351b1e232609c1349c 100644
(file)
--- a/
gas/ChangeLog
+++ b/
gas/ChangeLog
@@
-1,5
+1,8
@@
2002-08-14 Nick Clifton <nickc@redhat.com>
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.
* config/tc-alpha.c: Fix compiling for COFF targets.
Some minor formatting tidyups.
diff --git
a/gas/read.c
b/gas/read.c
index 23fb900ebcaf151f773f1d7cea748fc525d9bfe1..934d27043ef1b8b388c284a923846ad1a55456ea 100644
(file)
--- a/
gas/read.c
+++ b/
gas/read.c
@@
-4564,6
+4564,15
@@
stringer (append_zero) /* Worker to do .ascii etc statements. */
{
c = ','; /* Do loop. */
}
{
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 ();
while (c == ',' || c == '<' || c == '"')
{
SKIP_WHITESPACE ();