This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
RE: Help: 'unresolved expression that must be resolved'
- From: "Michael Chapman" <Michael dot Chapman at synopsys dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: <cgen at sources dot redhat dot com>
- Date: Mon, 30 Sep 2002 16:54:03 +0200
- Subject: RE: Help: 'unresolved expression that must be resolved'
Hi again,
So how do I get a relocation type in their?
Mike
-----Original Message-----
From: Frank Ch. Eigler [mailto:fche@redhat.com]
Sent: Monday, 30 September, 2002 16:27
To: Michael Chapman
Cc: cgen@sources.redhat.com
Subject: Re: Help: 'unresolved expression that must be resolved'
Hi -
On Mon, Sep 30, 2002 at 04:21:59PM +0200, Michael Chapman wrote:
> [...]
> The one line test program
>
> subroutine: call subroutine
>
> gives me
>
> $ gas test1.asm
> test1.asm: Assembler messages:
> test1.asm:1: Error: unresolved expression that must be resolved
> $
> What does it mean that an expression is unresolved?
It means that the assembler can neither emit a literal value for
the expression (the address of the "subroutine" symbol), nor does
it have an available relocation type so that the linker can fill
in a value. If the operand was declared as PC-relative (see
PCREL-ADDR), the assembler would be able to resolve the value at
assembly time (probably -2 or something like that).
- FChE