standalone_ram.ld

来自「ARM入门的好帮手.包含了从简单到相对较复杂的程序.」· LD 代码 · 共 63 行

LD
63
字号
//*----------------------------------------------------------------------------
//*         ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : standalone_ram.ld
//* Object              : Section definition for Green Hills linker RAM execution
//*	Program layout for running out of RAM.
//* Creation            : GHS
//* Modification 11/Nov/02 JPP add .iram definition, .reset section 
//*----------------------------------------------------------------------------

SECTIONS
{
//
// The text segment
//
    .picbase                                            : > dram_memory
    .reset : {
	  // All .reset which is in first
	  Cstartup.o(.reset)
	  Cstartup_eb40A.o(.text)
     }                                                    > .
    .text                                               : > .
    .syscall                                            : > .
    .intercall                                          : > .
    .interfunc                                          : > .
    .fixaddr                                            : > .
    .fixtype                                            : > .
    .rodata                                             : > .
    .secinfo                                            : > .
//
// The data segment
//
    .pidbase                                  ALIGN(16) : > .
    .sdabase                                            : > .
    .sbss                                               : > .
    .sdata                                              : > .
    .data                                               : > .
    .bss                                                : > .
    .heap                  ALIGN(16) PAD(heap_reserve)  : > .
    .stack                 ALIGN(16) PAD(stack_reserve) : > .

//
// AT91 internal RAM
//
    __iramstart  = MEMADDR(iram_remap);
    __iramend    = MEMENDADDR(iram_remap);

//
// These special symbols mark the bounds of RAM and ROM memory.
// They are used by the MULTI debugger.
//
    __ghs_romstart  = MEMADDR(flash_rsvd1);
    __ghs_romend    = MEMENDADDR(flash_rsvd2);
    __ghs_ramstart  = MEMADDR(dram_rsvd1);
    __ghs_ramend    = MEMENDADDR(dram_rsvd2);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?