public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@bigpond.net.au>
To: binutils@sources.redhat.com
Subject: Give expression syms the right seg
Date: Tue, 20 Sep 2005 06:22:00 -0000	[thread overview]
Message-ID: <20050920030609.GC18783@bubble.grove.modra.org> (raw)

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

                 reply	other threads:[~2005-09-20  3:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050920030609.GC18783@bubble.grove.modra.org \
    --to=amodra@bigpond.net.au \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).