* Give expression syms the right seg
@ 2005-09-20 6:22 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2005-09-20 6:22 UTC (permalink / raw)
To: binutils
Fixes the bug Jan noted in
http://sources.redhat.com/ml/binutils/2005-09/msg00192.html.
* read.c (pseudo_set): Set segment of expression syms to expr_section.
Index: gas/read.c
===================================================================
RCS file: /cvs/src/src/gas/read.c,v
retrieving revision 1.106
diff -u -p -r1.106 read.c
--- gas/read.c 11 Aug 2005 01:25:20 -0000 1.106
+++ gas/read.c 19 Sep 2005 23:33:38 -0000
@@ -3262,9 +3262,8 @@ pseudo_set (symbolS *symbolP)
/* Fall thru */
default:
- /* The value is some complex expression.
- Set segment and frag back to that of a newly created symbol. */
- S_SET_SEGMENT (symbolP, undefined_section);
+ /* The value is some complex expression. */
+ S_SET_SEGMENT (symbolP, expr_section);
symbol_set_value_expression (symbolP, &exp);
set_zero_frag (symbolP);
break;
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-20 3:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-20 6:22 Give expression syms the right seg Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).