From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9839 invoked by alias); 24 Jan 2003 12:17:23 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 9828 invoked from network); 24 Jan 2003 12:17:23 -0000 Received: from unknown (HELO mailhub3.liv.ac.uk) (138.253.100.83) by 172.16.49.205 with SMTP; 24 Jan 2003 12:17:23 -0000 Received: from pc114014.robots.eeng.liv.ac.uk ([138.253.114.14] helo=huangqiang) by mailhub3.liv.ac.uk with smtp (Exim 3.36 #1) id 18c2lu-0000kP-00 for ecos-discuss@sources.redhat.com; Fri, 24 Jan 2003 12:17:22 +0000 From: "Qiang Huang" To: "Ecos-Discuss" Date: Fri, 24 Jan 2003 12:46:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Subject: [ECOS] Does LMA affect the S-Record file addressing? X-SW-Source: 2003-01/txt/msg00335.txt.bz2 Hi all: I have tried to set the LMA in the linker script to be different as the VMA of the .text section and build the program as: MEMORY { ram : ORIGIN = 0x40000, LENGTH = 0x2000000 } SECTIONS { SECTIONS_BEGIN SECTION_rom_vectors (ram, 0x40000, LMA_EQ_VMA) SECTION_text (ram, ALIGN (0x1), AT(0x1000000)) ........ } but when I use the command xxx-elf-objcopy -O srec a.out a.srec, to generate the S-record file the address appeared in the *.srec file is still the same as the VMA start from 0x4000 not the one I specified 0x100000. Am I wrong somewhere? thanks a lot. -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss