With previous versions of the Code Generation Tools on CCS previous to 5, I have been able to include lines such as
_new_symbol = .;
into a link cmd file to make addresses visible to my application source code.
However now when I try it with the 7.2.0B2 version of the tools I get an error message, for instance the following fragment of a link cmd file:
SECTIONS
{
.text > IRAM
_HeapBase = .;
.IRAM$heap > IRAM
_HeapLimit = .;
.stack > IRAM
.args > IRAM
GROUP
{
.neardata /* Move .bss after .neardata and .rodata. ELF allows */
.rodata /* uninitialized data to follow initialized data in a */
.bss /* single segment. This order facilitates a single */
/* segment for the near DP sections. */
}>IRAM
.cinit > IRAM
.cio > IRAM
.const > IRAM
.data > IRAM
.switch > IRAM
.sysmem > IRAM
.far > IRAM
.fardata > IRAM
.ppinfo > IRAM
.ppdata > IRAM, palign(32) /* Work-around kelvin bug */
EMIFA_CE3_SPACE > EMIFA_CE3
EXTERNAL_MEMORY0 > DDR2
PCIConfig > PCI_CONFIG
EMIFAConfig > EMIFA_CONFIG
DDR2Config > DDR2_CONFIG
}
give me
"../lnk.cmd", line 21: error: expecting output section, GROUP, or UNION instead of "="
"../lnk.cmd", line 23: error: expecting output section, GROUP, or UNION instead of "="
line 21 being " _HeapBase = .;"
& line 23 being " _HeapLimit = .;"
Has the syntax of the assignment statement changed?
BR
Paul