aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-11-03 22:14:47 +0000
committerIan Lance Taylor <ian@airs.com>1999-11-03 22:14:47 +0000
commit53b0d3971a015b795bd0230e9a6632f9d52a120b (patch)
tree4f44cd390bf238cf29edb312c5ab6b664eb3ab1c /gas/read.c
parent5f91fe03babe1c1a528655704f534caedbdd975b (diff)
downloadgdb-53b0d3971a015b795bd0230e9a6632f9d52a120b.zip
gdb-53b0d3971a015b795bd0230e9a6632f9d52a120b.tar.gz
gdb-53b0d3971a015b795bd0230e9a6632f9d52a120b.tar.bz2
* read.c (pseudo_set): Reject attempts to set the value of a
section symbol.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c
index 886c028..b64203b 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3163,6 +3163,8 @@ pseudo_set (symbolP)
if (S_GET_SEGMENT (exp.X_add_symbol) == undefined_section
|| exp.X_add_number != 0)
symbol_set_value_expression (symbolP, &exp);
+ else if (symbol_section_p (symbolP))
+ as_bad ("invalid attempt to set value of section symbol");
else
{
symbolS *s = exp.X_add_symbol;