[asm] Difference of symbols in another section
Alan Modra
amodra@bigpond.net.au
Sat Sep 8 06:30:00 GMT 2001
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
More information about the Binutils
mailing list