|
6#

楼主 |
发表于 2017-1-18 14:20:38
|
只看该作者
5 R9 ~6 {/ T0 q, @你好,具体怎么写这段代码?之前的cmd文件,将所有段都放在DDR2中,其中哪一句对应的功能是预留给RBL引导程序的空间?请指导一下,谢谢。
5 h" e# i9 g/ P1 t" ?SECTIONS; u, E: g; N Q p) l8 [
{
6 h+ K: `5 M% m" a" I GROUP (NEAR_DP_RELATIVE)# V# ~! \5 P# H4 _% [
{
4 q, \. q6 h' X, ` .neardata& o) Z5 D9 j9 k A& Z/ M+ a
.rodata
0 K$ A }% E" K: _: ^/ h* { .bss
# g( e( E, B8 q* @" C- Z2 H! N } > DDR2
' Q. M L, `' j2 j i9 x( O/ S& Z6 J. S! l- i2 ]) H' P1 A. A
.cinit > DDR2 // Initialization Tables9 t9 z5 B; ?* I$ y! O w! E
.pinit > DDR2 // Constructor Tables3 \& G j2 W. A* x
.init_array > DDR23 C( d- A4 Y Q6 g6 o/ `
.const > DDR2 // Constant Data
! ]3 W7 }% K; p4 p( q; ~ .switch > DDR2 // Jump Tables: M0 e1 Z. z* g7 z* G
.text > DDR2 // Executable Code7 B( W4 T* P. X! n7 d4 }. F
.text:_c_int00: > 0xC3000000 // Entrypoint3 A! V# a' k3 N6 a i( d# P5 v
2 @9 g9 G: S' Y9 T0 ^ .far > DDR2 // Far Global & Static Variables
! u8 c8 W/ q, ?/ r .fardata > DDR2' b6 {3 r/ S6 x l# J. t
.stack > DDR2 // Software System Stack4 I% s: i. b. v3 b# H
.sysmem > DDR2 // Dynamic Memory Allocation Area0 S3 V. Q4 r' S9 c, k
7 U) Z/ Q& J; @. B% s .cio > DDR2 // C I/O Buffer$ G" p s! i' N% H& Z
.vecs > DDR2 // Interrupt Vectors k S" W) l) V# r# b) l
} |
|