这是我的链接文件里的内容
#
# linker.lcf - linker command file for CCore 3202
#
MEMORY
{
VECTORS (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000200
OS (RX) : ORIGIN = 0x00000200, LENGTH = 0x00000E00
TEXT (RX) : ORIGIN = 0x00001000, LENGTH = 0x00010E00
GLOBAL_BSS (RW) : ORIGIN = 0x00800000, LENGTH = 0x00001000 // 4K
DATA (RW) : ORIGIN = 0x0080C000, LENGTH = 0x00000000 // 0K
BSS (RW) : ORIGIN = AFTER(DATA), LENGTH = 0x00000000
//SRAM
//VECTORS (RX) : ORIGIN = 0x00800000, LENGTH = 0x00000200
// OS (RX) : ORIGIN = 0x00800200, LENGTH = 0x00000E00
//TEXT (RX) : ORIGIN = 0x00801000, LENGTH = 0x00002000
//GLOBAL_BSS (RW) : ORIGIN = 0x00803000, LENGTH = 0x00001000 // 4K
//DATA (RW) : ORIGIN = 0x00804000, LENGTH = 0x00004400 // 0K
//BSS (RW) : ORIGIN = AFTER(DATA), LENGTH = 0x00000000
}
SECTIONS {
.vectormap :
{
. = ALIGN(0x400); // Align table on 1024-byte boundary per, by VBR required
__exception_table_begin = .;
drv_vtable.c (.rodata)
__exception_table_end = .;
} > VECTORS
.operating_system:
{
Startup.c (.text)
Core_Entry.c (.text)
* (.rodata)
} > OS
.main_application :
{
Global_Var.c (.text)
Core_Entry.c (.text)
interrupt.c (.text)
sci1.c (.text)
sci1_judge.c (.text)
sci1_dispatch.c (.text)
spi1.c (.text)
spi1_judge.c (.text)
spi1_dispatch.c (.text)
drv_psr.s (.text)
eflash.c (.text)
* (.rodata)
} > TEXT
.global_bss:
{
. = ALIGN(0x4);
Global_Var.c (.bss)
} > GLOBAL_BSS
.data:
{
. = ALIGN(0x4);
__data_begin = .;
* (.data)
__data_end = .;
} > DATA
__stack_begin = 0x00805ff8;
}
|