* read.c (pseudo_set): Reject attempts to set the value of a
section symbol.
This commit is contained in:
parent
5f91fe03ba
commit
53b0d3971a
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
1999-11-03 Ian Lance Taylor <ian@zembu.com>
|
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
|
* config/obj-elf.c (obj_elf_ident): Call md_flush_pending_output
|
||||||
if it is defined.
|
if it is defined.
|
||||||
|
|
||||||
|
|
|
@ -3163,6 +3163,8 @@ pseudo_set (symbolP)
|
||||||
if (S_GET_SEGMENT (exp.X_add_symbol) == undefined_section
|
if (S_GET_SEGMENT (exp.X_add_symbol) == undefined_section
|
||||||
|| exp.X_add_number != 0)
|
|| exp.X_add_number != 0)
|
||||||
symbol_set_value_expression (symbolP, &exp);
|
symbol_set_value_expression (symbolP, &exp);
|
||||||
|
else if (symbol_section_p (symbolP))
|
||||||
|
as_bad ("invalid attempt to set value of section symbol");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
symbolS *s = exp.X_add_symbol;
|
symbolS *s = exp.X_add_symbol;
|
||||||
|
|
Loading…
Reference in a new issue