Help: 'unresolved expression that must be resolved'
Michael Chapman
Michael.Chapman@synopsys.com
Mon Sep 30 07:54:00 GMT 2002
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
More information about the Cgen
mailing list