From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8116 invoked by alias); 26 Feb 2004 04:46:28 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 8109 invoked from network); 26 Feb 2004 04:46:27 -0000 Received: from unknown (HELO alice.acmet.com) (61.11.104.16) by sources.redhat.com with SMTP; 26 Feb 2004 04:46:27 -0000 Received: from GAGNEET (localhost [127.0.0.1]) by alice.acmet.com (8.11.6/8.11.6) with ESMTP id i1Q4l3p07534 for ; Thu, 26 Feb 2004 10:17:03 +0530 Reply-To: From: "Gagneet Singh" To: Subject: Relocatable Symbols in Expression Date: Thu, 26 Feb 2004 12:40:00 -0000 Organization: Acme Technologies Pvt. Ltd. Message-ID: <007a01c3fc23$0a1e2af0$9900a8c0@GAGNEET> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <1077731724.12352.ezmlm@gcc.gnu.org> X-SW-Source: 2004-02/txt/msg01376.txt.bz2 Hi! We are developing a port of the GNU Compiler + Assembler for a client architecture. Now the problem being faced is that: If an immediate operand to an instruction of the assembly language, is an expression involving more than one relocatable symbols, how is it handled in output file in elf format. What will be the relocation information produced in such a case? Taking the simple example of a Jump instruction, referenced as 'j': j label1 + label2 where label1 and label2 are defined in relocatable sections, they might be the same sections or different relocatable sections. Gagneet