This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Description Resource Path Location Type
#10247-D creating output section "vectors" without a SECTIONS ledd C/C++ Problem
cmd文件是这样的
MEMORY
{
PAGE 0:
PROG0(RWX) : origin = 04000h length = 08000h
P_VECT(RIX) : origin = 0FF80h length = 00080h
PAGE 1:
DATA0(RW) : origin = 0C000h length = 04000h
}
SECTIONS
{
.vectors : { } > P_VECT PAGE 0
.text : { } > PROG0 PAGE 0
.cinit : { } > PROG0 PAGE 0
.csldata : { } > DATA0 PAGE 1
.stack : { } > DATA0 PAGE 1
.sysstack : { } > DATA0 PAGE 1
.bss : { } > DATA0 PAGE 1
.cio : { } > DATA0 PAGE 1
.const : { } > DATA0 PAGE 1
.sysmem : { } > DATA0 PAGE 1
}
xingang wang1 说:.vectors : { } > P_VECT PAGE 0
多了个. 改成vectors : { } > P_VECT PAGE 0就好了。