From e94551e2b7ab79c2b41d6e30a7489167689d7b9d Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Mon, 13 Jan 2020 23:53:47 +0100 Subject: [PATCH] arch: arm: cortex-m: properly name ROM sections in the linker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit does the following: - renames the 'text' ROM section to 'rom_start', to reflect that this section is the first section of the image. - renames the 'TEXT_SECTION_NAME_2' section to 'text', since that section (whose start is pointed by _image_text_start) holds the entire image text section. The commit removes the confusion by having multiple ROM sections named as 'text' in ARM Cortex-M builds. Signed-off-by: Ioannis Glaropoulos Signed-off-by: Øyvind Rønningstad --- include/arch/arm/aarch32/cortex_m/scripts/linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arch/arm/aarch32/cortex_m/scripts/linker.ld b/include/arch/arm/aarch32/cortex_m/scripts/linker.ld index 9c1f08490b1..62c6709463f 100644 --- a/include/arch/arm/aarch32/cortex_m/scripts/linker.ld +++ b/include/arch/arm/aarch32/cortex_m/scripts/linker.ld @@ -135,7 +135,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 the @@ -151,7 +151,7 @@ SECTIONS #endif /* CONFIG_CODE_DATA_RELOCATION */ - SECTION_PROLOGUE(_TEXT_SECTION_NAME_2,,) + SECTION_PROLOGUE(_TEXT_SECTION_NAME,,) { _image_text_start = .;