This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Attachment: msg00084/pgp00000.pgp
Description: PGP signature


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