link.ld
来自「MTK手机平台下载工具FLASHTOOL驱动源码」· LD 代码 · 共 75 行
LD
75 行
;*******************************************************************************
; Copyright Statement:
; --------------------
; This software is protected by Copyright and the information contained
; herein is confidential. The software may not be copied and the information
; contained herein may not be used or disclosed except with the written
; permission of MediaTek Inc. (C) 2003
;
;*******************************************************************************
;*******************************************************************************
;
; Filename:
; ---------
; LINK.LD
;
; Project:
; --------
; DOWNLOAD AGENT
;
; Description:
; ------------
; Scatter file for building Download Agent
;
; Author:
; -------
; Amos Hsu
;
;*******************************************************************************
; This scatterloading descriptor file defines:
; one load region (FLASH) and 3 execution regions
; (FLASH, 32bitRAM & 16bitRAM)
;
; The FLASH resides at 0x04000000.
; On reset, an aliased copy of FLASH is re-mapped (by hardware)
; to address zero. Following reset, 32bitRAM is mapped to
; address zero, by the first few instructions in boot.s.
;
; 32bitRAM might be fast on-chip (internal) RAM, and is typically
; used for the stack and code that must be executed quickly.
; Here, the exception vectors of vectors.s get relocated (copied)
; from FLASH to 32bitRAM.
;
; 16bitRAM might be slower off-chip (external) DRAM, and is
; typically used for less frequently accessed RW variables and
; ZI data. Here, the RW & ZI areas of C_main & C_func get
; relocated/initialised to 16bitRAM
;
; All other read-only code '* (+RO)' i.e. regioninit & library
; code is executed from FLASH
ROM 0x40000800
{
; Internal SRAM size:
MAIN_PROG 0x40000800 0x7800
{
BOOTARM.o (Init,+First)
* (+RO, +RW, +ZI)
}
NAND_MODULE +0
{
main_nand.o (+RO, +RW, +ZI)
nand_dev_tbl.o (+RO, +RW, +ZI)
nand_drv_COMMON.o (+RO, +RW, +ZI)
nand_drv_HYNIX.o (+RO, +RW, +ZI)
nand_drv_SAMSUNG.o (+RO, +RW, +ZI)
nand_drv_ST.o (+RO, +RW, +ZI)
nand_drv_TOSHIBA.o (+RO, +RW, +ZI)
nand_util_func.o (+RO, +RW, +ZI)
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?