From dfe9600c0822ebd2b933d095eacc600e95d24758 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 3 Nov 1999 22:14:47 +0000 Subject: [PATCH] * read.c (pseudo_set): Reject attempts to set the value of a section symbol. --- gas/ChangeLog | 3 +++ gas/read.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 3c16db74e..cc1993f6f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 1999-11-03 Ian Lance Taylor + * 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. diff --git a/gas/read.c b/gas/read.c index 886c028fd..b64203b59 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; -- 2.11.4.GIT