diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-11-03 22:14:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-11-03 22:14:47 +0000 |
commit | 53b0d3971a015b795bd0230e9a6632f9d52a120b (patch) | |
tree | 4f44cd390bf238cf29edb312c5ab6b664eb3ab1c | |
parent | 5f91fe03babe1c1a528655704f534caedbdd975b (diff) | |
download | binutils-53b0d3971a015b795bd0230e9a6632f9d52a120b.zip binutils-53b0d3971a015b795bd0230e9a6632f9d52a120b.tar.gz binutils-53b0d3971a015b795bd0230e9a6632f9d52a120b.tar.bz2 |
* read.c (pseudo_set): Reject attempts to set the value of a
section symbol.
-rw-r--r-- | gas/ChangeLog | 3 | ||||
-rw-r--r-- | gas/read.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 3c16db7..cc1993f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 1999-11-03 Ian Lance Taylor <ian@zembu.com> + * read.c (pseudo_set): Reject attempts to set the value of a + section symbol. + * config/obj-elf.c (obj_elf_ident): Call md_flush_pending_output if it is defined. @@ -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; |