From 9f269a7285fd80b4c191305994b0af006c3fa1f5 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 20 Sep 2002 06:57:41 +0000 Subject: Do not allow symbols to be created in the absolute section. --- gas/symbols.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gas/symbols.c') diff --git a/gas/symbols.c b/gas/symbols.c index 6d8147c..c84b5b3 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -287,7 +287,13 @@ colon (sym_name) /* Just seen "x:" - rattle symbols & frags. */ { register symbolS *symbolP; /* Symbol we are working with. */ - /* Sun local labels go out of scope whenever a non-local symbol is + if (now_seg == absolute_section) + { + as_bad (_("cannot define symbol `%s' in absolute section"), sym_name); + return NULL; + } + + /* Sun local labels go out of scope whenever a non-local symbol is defined. */ if (LOCAL_LABELS_DOLLAR) { -- cgit v1.1