This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [asm] Difference of symbols in another section

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),
> and then you reverted it in the next revision !! I couldn't find any
> message descrbing either of the changes.

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]