From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20589 invoked by alias); 30 Sep 2002 14:27:20 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 20576 invoked from network); 30 Sep 2002 14:27:18 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 30 Sep 2002 14:27:18 -0000 Received: from toenail.toronto.redhat.com (toenail.toronto.redhat.com [172.16.14.211]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 753D380018F; Mon, 30 Sep 2002 10:27:17 -0400 (EDT) Received: (from fche@localhost) by toenail.toronto.redhat.com (8.11.6/8.11.6) id g8UERHU28110; Mon, 30 Sep 2002 10:27:17 -0400 Date: Mon, 30 Sep 2002 07:27:00 -0000 From: "Frank Ch. Eigler" To: Michael Chapman Cc: cgen@sources.redhat.com Subject: Re: Help: 'unresolved expression that must be resolved' Message-ID: <20020930102717.C28047@redhat.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ghzN8eJ9Qlbqn3iT" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from Michael.Chapman@synopsys.com on Mon, Sep 30, 2002 at 04:21:59PM +0200 X-SW-Source: 2002-q3/txt/msg00084.txt.bz2 --ghzN8eJ9Qlbqn3iT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 726 Hi - On Mon, Sep 30, 2002 at 04:21:59PM +0200, Michael Chapman wrote: > [...] > The one line test program >=20 > subroutine: call subroutine >=20 > gives me >=20 > $ gas test1.asm > test1.asm: Assembler messages: > test1.asm:1: Error: unresolved expression that must be resolved > $=20 > 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 --ghzN8eJ9Qlbqn3iT Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 232 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD4DBQE9mF9FVZbdDOm/ZT0RAs4YAJ0eA+IKcz88ehjFaY0Jf4ejczGfEACVEppw o/J1cq5Ysp7uvRcXBYkKDA== =03VC -----END PGP SIGNATURE----- --ghzN8eJ9Qlbqn3iT--