mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
boards/xtensa/esp32: remove alignments for simpleboot
The simpleboot format does not require alignment sections to be inserted as they are added by esptool.py Signed-off-by: Laczen JMS <laczenjms@gmail.com>
This commit is contained in:
committed by
Alan C. Assis
parent
71b7493a86
commit
27542b3b09
@@ -533,16 +533,14 @@ SECTIONS
|
|||||||
* i.e. the lower 16 bits of both the virtual address (address seen by the
|
* i.e. the lower 16 bits of both the virtual address (address seen by the
|
||||||
* CPU) and the load address (physical address of the external flash) must
|
* CPU) and the load address (physical address of the external flash) must
|
||||||
* be equal.
|
* be equal.
|
||||||
|
* For the simpleboot format this is done by esptool.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_ESP32_APP_FORMAT_MCUBOOT
|
#ifdef CONFIG_ESP32_APP_FORMAT_MCUBOOT
|
||||||
.flash.rodata_dummy (NOLOAD) :
|
|
||||||
{
|
|
||||||
. = ALIGN(0x10000);
|
|
||||||
} > ROM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.flash.rodata : ALIGN(0x10000)
|
.flash.rodata : ALIGN(0x10000)
|
||||||
|
#else
|
||||||
|
.flash.rodata :
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
_rodata_reserved_start = ABSOLUTE(.);
|
_rodata_reserved_start = ABSOLUTE(.);
|
||||||
|
|
||||||
@@ -666,17 +664,14 @@ SECTIONS
|
|||||||
* i.e. the lower 16 bits of both the virtual address (address seen by the
|
* i.e. the lower 16 bits of both the virtual address (address seen by the
|
||||||
* CPU) and the load address (physical address of the external flash) must
|
* CPU) and the load address (physical address of the external flash) must
|
||||||
* be equal.
|
* be equal.
|
||||||
|
* For the simpleboot format this is done by esptool.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_ESP32_APP_FORMAT_MCUBOOT
|
#ifdef CONFIG_ESP32_APP_FORMAT_MCUBOOT
|
||||||
.flash.text_dummy (NOLOAD) :
|
|
||||||
{
|
|
||||||
. += SIZEOF(.flash.rodata);
|
|
||||||
. = ALIGN(0x10000);
|
|
||||||
} >default_code_seg AT> ROM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.flash.text : ALIGN(0x00010000)
|
.flash.text : ALIGN(0x00010000)
|
||||||
|
#else
|
||||||
|
.flash.text :
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
_stext = .;
|
_stext = .;
|
||||||
_text_start = ABSOLUTE(.);
|
_text_start = ABSOLUTE(.);
|
||||||
|
|||||||
Reference in New Issue
Block a user