On 17 Jan, To: [EMAIL PROTECTED] wrote:
>>From ldscript.ld:
> 
> _PDATABASE      = 0x4000;
> _RAMBASE        = 0x5000;
> _KERNSTK        = 0x90000;
> _ROMBASE        = 0xf0000;
> /*
>  * Bootstrap code for the STPC Consumer
>  * Copyright (c) 1999 by Net Insight AB. All Rights Reserved.
>  *
>  * $Id: ldscript.base,v 1.1 2000/12/15 04:31:24 rminnich Exp $
>  *
>  */
> 
> /*
>  *      Written by Johan Rydberg, based on work by Daniel Kahlin.
>  */
> /*
>  *      We use ELF as output format. So that we can
>  *      debug the code in some form.
>  */
> OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
> OUTPUT_ARCH(i386)
> /* oh, barf. This wont work if all you use is .o's.  -- RGM */
> 
> /*
>  *      Memory map:
>  *
>  *      0x00000 (4*4096 bytes)  : stack
>  *      0x04000 (4096 bytes)    : private data
>  *      0x05000                 : data space
>  *      0x90000                 : kernel stack
>  *      0xf0000 (64 Kbyte)      : EPROM
>  */
> MEMORY
> {
>         ram (rwx) : ORIGIN = 0x00000000, LENGTH = 128M  /* 128 MB memory is max
> for STPC */
>         rom (rx)  : ORIGIN = 0x000f0000, LENGTH = 128K  /* 128 K EPROM */
> }
> 
> _PDATABASE      = 0x04000;
> _RAMBASE        = 0x05000;
> _KERNSTK        = 0x90000;
> 
> /* should be parameterized but is not, yuck! */
> _ROMBASE        = 0x80000;
> 
> 
> What does the first definition of _PDATABASE-_ROMBASE have to do with
> the 2nd?  It lookslike _ROMBASE is the only one that isn't the same for
> both definitions.
> 
> I know nothing of Python but will try to track down the ldscript.ld
> generation error.

I just looked at the config tools.  It looks like the 2nd set of
definitions is hard coded into ldscript.base and perhaps should just be
removed so that the values at the top of ldconfig.ld generated by
NLBConfig.py can take effect.

Is this correct?

Ty

-- 
Tyson D Sawyer                             iRobot Corporation
Senior Systems Engineer                    Real World Interface Div.
[EMAIL PROTECTED]                         Robots for the Real World
603-532-6900 ext 206                       http://www.irobot.com



Reply via email to