Reloc BUG in as

Geoff Keating geoffk@geoffk.org
Mon Mar 5 17:13:00 GMT 2001


> 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>



More information about the Binutils mailing list