arc: Update elfarcv2 script template
authorClaudiu Zissulescu <claziss@gmail.com>
Tue, 29 Aug 2023 08:52:06 +0000 (11:52 +0300)
committerClaudiu Zissulescu <claziss@gmail.com>
Thu, 31 Aug 2023 05:13:53 +0000 (08:13 +0300)
commitcd60a3956da29350d2e79bd6458d5cd77a4a18d0
treec89bedd3c352273cefd8210862ad41ffc25b8e75
parent68a2d9bf874643da970fe945a9c60c397f6882ad
arc: Update elfarcv2 script template

Update ARC's elfarcv2 script template with:

- The .ivt section (Interrupt Vector Table) is mapped at the begining
  of STARTUP_MEMORY when ivtbase_addr is not defined. Previously, it
  was pointing to 0x00.

- MEMORY_FILE is a new emulation paramter and sets the name for the
  linker script file which holds the MEMORY commands required by
  arcv2elfx emulation.

- Four new linker variables are introduced available when arcv2elf emulation is used:
  * __TEXT_REGION_ORIGIN__ Once defined it is setting the text region origin. By default it points to zero.
  * __TEXT_REGION_LENGTH__ Once defined it is setting the text region length. By default it is set to 2M.
  * __DATA_REGION_ORIGIN__ Once defined it is setting the data region origin. By default it is set to 0x80000000.
  * __DATA_REGION_LENGTH__ Once defined it is setting the data region length. By default it is set to 2M.

ld/ChangeLog:

* scripttempl/elfarcv2.sc: Update script template.

Signed-off-by: Claudiu Zissulescu <claziss@gmail.com>
ld/scripttempl/elfarcv2.sc