Hi,
I was trying to migrate my project from GNU GCC to TI CCS. My original project has some special code in the link script file to insert some customized information to the linked image so that the image can be processed by our own software utility to get encrypted.
The special code in the link script file looks like
. = 0x120;
__image_header = .;
*(imagehead) /*Image head */
ASSERT (. != __image_header, "No image header defined");
LONG (__image_total_size) /*Followed by image length*/
LONG (0x204E4942) /*Signature for plaintext*/
LONG (__image_header_end - __image_header) /*Image header length*/
LONG (0) /*plaintext Checksum*/
LONG (0) /*ciphertext checksum*/
__image_header_end = .;
The above code is not accepted by the CCS compiler if I insert them to the link command file. For lack of information about the link command file of CCS, my question is: is there a equivalent method in CCS to insert a 4-byte value to the image as
LONG(0)
or as
LONG (__image_header_end - __image_header)
that can even take some link stage variables rather than constant value.
Thanks
Tianlei