From 66bd02d33d0451bc127a1166f09f03ea66f273d5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 21 Sep 2005 00:12:19 +0000 Subject: [PATCH] * read.c (pseudo_set): Don't set undefined symbols to expr_section. --- gas/ChangeLog | 4 ++++ gas/read.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 2506e6870c1..fac836a2b59 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2005-09-21 Alan Modra + + * read.c (pseudo_set): Don't set undefined symbols to expr_section. + 2005-09-20 Richard Henderson * dwarf2dbg.c (process_entries): Fix uninitialized variable warning. diff --git a/gas/read.c b/gas/read.c index 2d0404ffb8e..8e4e1bce60d 100644 --- a/gas/read.c +++ b/gas/read.c @@ -3259,7 +3259,10 @@ pseudo_set (symbolS *symbolP) copy_symbol_attributes (symbolP, s); break; } - /* Fall thru */ + S_SET_SEGMENT (symbolP, undefined_section); + symbol_set_value_expression (symbolP, &exp); + set_zero_frag (symbolP); + break; default: /* The value is some complex expression. */ -- 2.30.2