From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4477 invoked by alias); 20 Sep 2005 03:06:24 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 4304 invoked by uid 22791); 20 Sep 2005 03:06:13 -0000 Received: from omta02ps.mx.bigpond.com (HELO omta02ps.mx.bigpond.com) (144.140.83.154) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 20 Sep 2005 03:06:13 +0000 Received: from grove.modra.org ([144.136.167.90]) by omta02ps.mx.bigpond.com with ESMTP id <20050920030609.GMBG19806.omta02ps.mx.bigpond.com@grove.modra.org> for ; Tue, 20 Sep 2005 03:06:09 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id 38B551CA275; Tue, 20 Sep 2005 12:36:09 +0930 (CST) Date: Tue, 20 Sep 2005 06:22:00 -0000 From: Alan Modra To: binutils@sources.redhat.com Subject: Give expression syms the right seg Message-ID: <20050920030609.GC18783@bubble.grove.modra.org> Mail-Followup-To: binutils@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2005-09/txt/msg00220.txt.bz2 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