From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1511 invoked by alias); 30 Sep 2002 14:54:54 -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 1493 invoked from network); 30 Sep 2002 14:54:52 -0000 Received: from unknown (HELO kiruna.synopsys.com) (204.176.20.18) by sources.redhat.com with SMTP; 30 Sep 2002 14:54:52 -0000 Received: from mother.synopsys.com (mother.synopsys.com [146.225.100.171]) by kiruna.synopsys.com (Postfix) with ESMTP id D6A3A10022; Mon, 30 Sep 2002 07:54:17 -0700 (PDT) Received: from fr02.synopsys.com (localhost [127.0.0.1]) by mother.synopsys.com (8.9.1/8.9.1) with ESMTP id HAA17345; Mon, 30 Sep 2002 07:53:38 -0700 (PDT) Received: from michaelclap (localhost [127.0.0.1]) by fr02.synopsys.com (8.9.1/8.9.1) with SMTP id QAA08827; Mon, 30 Sep 2002 16:54:03 +0200 (MET DST) From: "Michael Chapman" To: "Frank Ch. Eigler" Cc: Subject: RE: Help: 'unresolved expression that must be resolved' Date: Mon, 30 Sep 2002 07:54:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal In-Reply-To: <20020930102717.C28047@redhat.com> X-SW-Source: 2002-q3/txt/msg00085.txt.bz2 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