arch: arm: cortex_r: linker.ld: Fix ROM section names

This commit fixes the improper naming of the ROM sections.

1. Rename the first ROM section, which was previously named using the
  `_TEXT_SECTION_NAME` definition, to `rom_start`, as this section does
  not actually represent the text section.

2. Rename the second ROM section, which was previously named
  `_TEXT_SECTION_NAME_2` which supposedly refers to the definition of
  the same name that does not exist, to `_TEXT_SECTION_NAME`. Note that
  this is indeed the section that contains the text section from the
  source image.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2020-02-10 14:22:50 +09:00 committed by Ioannis Glaropoulos
commit 0e3bc28633

View file

@ -113,7 +113,7 @@ SECTIONS
_image_rom_start = ROM_ADDR;
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
SECTION_PROLOGUE(rom_start,,)
{
/* Located in generated directory. This file is populated by calling
@ -130,7 +130,7 @@ SECTIONS
#endif /* CONFIG_CODE_DATA_RELOCATION */
SECTION_PROLOGUE(_TEXT_SECTION_NAME_2,,)
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
{
_image_text_start = .;
*(.text)