From 0e3bc2863346819ebd3ba694d27e90a2e42fd2f4 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Mon, 10 Feb 2020 14:22:50 +0900 Subject: [PATCH] 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 --- include/arch/arm/aarch32/cortex_r/scripts/linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arch/arm/aarch32/cortex_r/scripts/linker.ld b/include/arch/arm/aarch32/cortex_r/scripts/linker.ld index 56551947a2d..b961c9fbdb6 100644 --- a/include/arch/arm/aarch32/cortex_r/scripts/linker.ld +++ b/include/arch/arm/aarch32/cortex_r/scripts/linker.ld @@ -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)