This may not be ARM specific and I want to calculate my arm code's checksum from C. I am think of using label _etext defined in the linker script as end address. Can I use this label _etext in C? I've tried this and compiler warns that it is undeclared. I am using ARM-GNU.
"I am think of using label _etext defined in the linker script" You need to have a suitable 'extern' declaration in you 'C' code that will match the Linker's public definition of this symbol.
Thank you. The checksum calculation is alright now.