Help: 'unresolved expression that must be resolved'

Frank Ch. Eigler fche@redhat.com
Mon Sep 30 07:27:00 GMT 2002


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/cgen/attachments/20020930/f1a2e345/attachment.sig>


More information about the Cgen mailing list