From c4cb84140f619d16073ef24031c8534c7a491611 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Mon, 10 Feb 2020 15:11:51 +0900 Subject: [PATCH] arch: arm: aarch64: 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/aarch64/scripts/linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arch/arm/aarch64/scripts/linker.ld b/include/arch/arm/aarch64/scripts/linker.ld index 4299821fd51..a1718cdcdd3 100644 --- a/include/arch/arm/aarch64/scripts/linker.ld +++ b/include/arch/arm/aarch64/scripts/linker.ld @@ -114,7 +114,7 @@ SECTIONS _image_rom_start = ROM_ADDR; - SECTION_PROLOGUE(_TEXT_SECTION_NAME,,) + SECTION_PROLOGUE(rom_start,,) { #if defined(CONFIG_SW_VECTOR_RELAY) @@ -144,7 +144,7 @@ SECTIONS #endif /* CONFIG_CODE_DATA_RELOCATION */ - SECTION_PROLOGUE(_TEXT_SECTION_NAME_2,,) + SECTION_PROLOGUE(_TEXT_SECTION_NAME,,) { _image_text_start = .; *(.text)