Skip to content

Commit da99144

Browse files
jimmyzhecarlescufi
authored andcommitted
soc: andestech: linker.ld: fix incorrect padding of rom_mpu_padding
The rom_mpu_padding section is incorrect NAPOT padding for the address of __rodata_region_end when ROM_BASE is not 0x0, because __rom_region_start is set to the offset of rom_start section. Fixed this by use "__rom_region_start = ABSOLUTE(.);" to keep both __rodata_region_end and __rom_region_start are absolute address. Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
1 parent 9e1b3bb commit da99144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/andestech/ae350/linker.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ SECTIONS
116116
{
117117
. = ALIGN(16);
118118
MPU_ALIGN(__rom_region_size);
119-
__rom_region_start = .;
119+
__rom_region_start = ABSOLUTE(.);
120120
/* Located in generated directory. This file is populated by calling
121121
* zephyr_linker_sources(ROM_START ...).
122122
*/

0 commit comments

Comments
 (0)