www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/17/09:03:56

Message-ID: <38D21C71.4665E3B4@accord-soft.com>
Date: Fri, 17 Mar 2000 17:22:17 +0530
From: Ghins Mathai <ghins AT accord-soft DOT com>
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Problem with linker scripts
Reply-To: djgpp AT delorie DOT com

I have a linker script ( xyz.ld ) that begins as follows:

/* **************************************** */
MEMORY
{

 rom :  org=0x0, len=0x5f000
 data: org=0x80000000, len=0x03000
 bss:  org=0x80003000, len=0x016000
}

/* **************************************** */

I try linking this to my code with

> gcc xyz.c -Xlinker -T -Xlinker xyz.ld

However, I get a "parse error on line 5 " message(This line corresponds
to the "rom: ..."  line) . As far as I see, there is nothing wrong with
the format of the linker script. Can anyone please help me troubleshoot.

Regards

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019