Skip to content

Commit c4cb841

Browse files
stephanosioioannisg
authored andcommitted
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 <[email protected]>
1 parent e619e36 commit c4cb841

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/arch/arm/aarch64/scripts/linker.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ SECTIONS
114114

115115
_image_rom_start = ROM_ADDR;
116116

117-
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
117+
SECTION_PROLOGUE(rom_start,,)
118118
{
119119

120120
#if defined(CONFIG_SW_VECTOR_RELAY)
@@ -144,7 +144,7 @@ SECTIONS
144144

145145
#endif /* CONFIG_CODE_DATA_RELOCATION */
146146

147-
SECTION_PROLOGUE(_TEXT_SECTION_NAME_2,,)
147+
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
148148
{
149149
_image_text_start = .;
150150
*(.text)

0 commit comments

Comments
 (0)