public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: "Frank Ch. Eigler" <fche@redhat.com>
To: Michael Chapman <Michael.Chapman@synopsys.com>
Cc: cgen@sources.redhat.com
Subject: Re: Help: 'unresolved expression that must be resolved'
Date: Mon, 30 Sep 2002 07:27:00 -0000	[thread overview]
Message-ID: <20020930102717.C28047@redhat.com> (raw)
In-Reply-To: <NEBBIAJILEHBJOLKLAGOIEGCCIAA.michaelc@synopsys.com>; from Michael.Chapman@synopsys.com on Mon, Sep 30, 2002 at 04:21:59PM +0200

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

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 #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-09-30 14:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-30  7:22 Michael Chapman
2002-09-30  7:27 ` Frank Ch. Eigler [this message]
2002-09-30  7:54   ` Michael Chapman
2002-09-30  8:04     ` Frank Ch. Eigler
2002-09-30  8:41       ` Michael Chapman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020930102717.C28047@redhat.com \
    --to=fche@redhat.com \
    --cc=Michael.Chapman@synopsys.com \
    --cc=cgen@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).