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.

ARM-CGT: Placing a const section always at the end of binary image in flash

Expert 1965 points
Part Number: ARM-CGT

I want to insert some const version nfo into my flash image, and I want linker to place it always at the end of whatever it linked , to be in flash.

So assume I only have one flash in my MEMORY,  FLASH0.


Then I created :

GROUP(XXXXX_BLABLABLA)
{
.const : {}
.text : {}
 /*other stuff here .. */

.fwversion_nfo : {}  /* <-- this is what i use for attribute*/
} > FLASH0

I did a hexdump, and I see that is currently right at the end , as I want it

Does this then guarantee that it will always be at the end of my  build?   (after to bin conversion).