This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [asm] Difference of symbols in another section
- To: Harshad R Joglekar <harshad dot joglekar at wipro dot com>
- Subject: Re: [asm] Difference of symbols in another section
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Sat, 8 Sep 2001 23:00:27 +0930
- Cc: binutils at sources dot redhat dot com
- References: <3B99F88A.BCF5D689@wipro.com>
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