xtensa: Implement CONFIG_TEXT_SECTION_OFFSET

CONFIG_TEXT_SECTION_OFFSET allows the entire image to be moved
in memory to allow space for some type of header. The mcubootloader
can boot only such images which reserve some space for the header.

Signed-off-by: Rajavardhan Gundi <rajavardhan.gundi@intel.com>
This commit is contained in:
Rajavardhan Gundi 2018-11-29 12:00:36 +05:30 committed by Carles Cufí
commit 022990f73d
2 changed files with 6 additions and 0 deletions

View file

@ -172,6 +172,7 @@ SECTIONS
.ResetVector.text : ALIGN(4)
{
. = CONFIG_TEXT_SECTION_OFFSET;
_ResetVector_text_start = ABSOLUTE(.);
KEEP (*(.ResetVector.text))
_ResetVector_text_end = ABSOLUTE(.);