This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Link problem with i386-pc platform


Jonathan Larmour wrote:
> 
> Fabrice Gautier wrote:
> > Before enabling tracing the downloaded size was about 350-400k, is it
> > possible that just enabling tracing  and asserts make the size more than the
> > maximum allowed size (which should be 640ko minus 64 or 128k I think) ?
> 
> Yes.

Jonathan,

I've made changes to load above 1MB and have room upto 16MB.  I've
tested the change with the hello world example.  I still need to test
with larger programs.  I've made the below change to the memory layout. 
Is there any reason why I cannot make the below change to extend the
length and begin above the 1M boundary for the i386 PC port?

packages/hal/i386/pc/v1_3_1/include/pkgconf/mlt_i386_pc_ram.ldi

MEMORY
{
    ram : ORIGIN = 0x0, LENGTH = 0x1000000		/* 16M length */
}

SECTIONS
{
    SECTIONS_BEGIN
    SECTION_vectors (ram, 0x108000, LMA_EQ_VMA)		/* load above 1M */
    SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA)
    SECTION_rel__got (ram, ALIGN (0x1), LMA_EQ_VMA)
    SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA)
    SECTIONS_END
}

Thanks,
Alex

-- 
Alex Mathews
CrosStor Software, Inc.
908-226-0100 ext 148
alexma@crosstor.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]