From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Modra To: Harshad R Joglekar Cc: binutils@sources.redhat.com Subject: Re: [asm] Difference of symbols in another section Date: Sat, 08 Sep 2001 06:30:00 -0000 Message-id: <20010908230027.Z24712@bubble.sa.bigpond.net.au> References: <3B99F88A.BCF5D689@wipro.com> X-SW-Source: 2001-09/msg00121.html On Sat, Sep 08, 2001 at 04:22:59PM +0530, Harshad R Joglekar wrote: > Hi Alan, > > You had submitted the below patch for assembler (expr.c), > http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/expr.c.diff?r1=1.33&r2=1.34&cvsroot=src&f=h > > and then you reverted it in the next revision !! I couldn't find any > message descrbing either of the changes. See http://sources.redhat.com/ml/binutils/2001-05/msg00435.html and the followup. revision 1.35 date: 2001/05/25 01:59:43; author: amodra; state: Exp; lines: +0 -13 Revert last patch. ---------------------------- revision 1.34 date: 2001/05/25 00:01:30; author: amodra; state: Exp; lines: +13 -0 * expr.c (expr): Set return value to absolute_section for subtractive operations on symbols within a segment. * read.c (pseudo_set): Set segment for complex expressions. Looks like I reverted the ChangeLog too. That was a bit naughty. > The patch was useful in the following case: > ----------------------------------------------- > .data > foo: > .word 0x00 > bar: > .text > start: > jmp start + (bar - foo) With the current assembler, you get a branch to start+2. Seems OK to me. Alan