This is the mail archive of the binutils@sources.redhat.com 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: Reloc BUG in as


> From: Ian Lance Taylor <ian@zembu.com>
> Cc: binutils@sources.redhat.com
> Date: 05 Mar 2001 16:32:13 -0800

> > --a.s-
> > call a-b
> > a:
> > b:
> > ------
> > 
> > a and b are unknown at the end. My question is if a and b have to
> > be defined locally for experessions like a - b. If not, I am kind of
> > curious how they can be used.
> 
> Yes, if you are using ELF, they have to be defined locally.

To be precise, 'b' must be defined in the same section as the call and
must be defined in this file.  'a' can be anywhere.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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