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]
Other format: [Raw text]

Problem with Linker Script: specifying discontinuous memory



I am having a problem with Linker Script on how to specify discontinuous memory for the .bss and .data regions.

Our board uses a Philips 2292 which on-chip ram and
external ram.

My goal: have the linker populate the .bss and .data
regions beginning with on-chip ram then continuing
to external ram.

Can anyone help me with this issue?

Thanks
Dave


MEMORY { ram : ORIGIN = 0x40000000, LENGTH = 0x4000 sram : ORIGIN = 0x81000000, LENGTH = 0x40000 rom : ORIGIN = 0x0, LENGTH = 0x40000 }

SECTIONS
{
    SECTIONS_BEGIN
    [..snip..]

    SECTION_fixed_vectors (ram, 0x40000040, LMA_EQ_VMA)
    SECTION_data (ram, ALIGN (0x4), FOLLOWING (.gcc_except_table))
    SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)

    [..snip..]
    SECTIONS_END
}




-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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