From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23957 invoked by alias); 13 Jun 2003 15:38:43 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 23834 invoked from network); 13 Jun 2003 15:38:41 -0000 Received: from unknown (HELO hotmail.com) (65.54.245.131) by sources.redhat.com with SMTP; 13 Jun 2003 15:38:41 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 13 Jun 2003 08:38:41 -0700 Received: from 129.2.98.180 by by1fd.bay1.hotmail.msn.com with HTTP; Fri, 13 Jun 2003 15:38:40 GMT X-Originating-IP: [129.2.98.180] X-Originating-Email: [sumesh_uk@hotmail.com] From: "Sumesh UdayaKumaran" To: binutils@sources.redhat.com Bcc: Subject: Linker question Date: Fri, 13 Jun 2003 15:38:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 13 Jun 2003 15:38:41.0118 (UTC) FILETIME=[DD8117E0:01C331C1] X-SW-Source: 2003-06/txt/msg00495.txt.bz2 Hi As part of a project Iam involved in, I need to maintain copies of the same variable in different memory banks (kind of like cache). I then want to based on criteria I have address the different copies at different program points. Eg ldw r3,A ....................Address the copy of global variable A in bank1. .................. ................ ldw r4, A Address the copy of global variable A in bank2 Iam implementing this on a gcc cross compiler for mcore-elf. >From what I have figured so far (Iam really new to this whole world of linking and assembling ), I can handle this at the stage when the exact addresses are being generated. The questions I had were: 1. Where is the exact address being generated. 2. As an alternative , can I handle such a scheme through a script, in other words can the script be used to guide such an addressing. Any pointers, suggestions will be great thanks sumesh _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail