start but not working

This commit is contained in:
Scott Mabin 2023-06-21 13:44:45 +02:00
parent 310809a5bf
commit 978ae3c451
4 changed files with 11 additions and 5 deletions

View File

@ -14,7 +14,7 @@ SECTIONS {
/* Create an empty gap as big as .text section */ /* Create an empty gap as big as .text section */
. = SIZEOF(.text); . = . + SIZEOF(.text);
/* Prepare the alignment of the section above. Few bytes (0x20) must be /* Prepare the alignment of the section above. Few bytes (0x20) must be
* added for the mapping header. * added for the mapping header.

View File

@ -7,7 +7,7 @@ SECTIONS {
.rtc_fast.dummy (NOLOAD) : .rtc_fast.dummy (NOLOAD) :
{ {
_rtc_dummy_start = ABSOLUTE(.); /* needed to make section proper size */ _rtc_dummy_start = ABSOLUTE(.); /* needed to make section proper size */
. = SIZEOF(.rtc_fast.text); . = . + SIZEOF(.rtc_fast.text);
_rtc_dummy_end = ABSOLUTE(.); /* needed to make section proper size */ _rtc_dummy_end = ABSOLUTE(.); /* needed to make section proper size */
} > RTC_FAST_RWDATA } > RTC_FAST_RWDATA
} }

View File

@ -3,8 +3,14 @@ runner = "espflash flash --monitor"
[build] [build]
rustflags = [ rustflags = [
"-C", "link-arg=-nostartfiles", # GNU LD
"-C", "link-arg=-Wl,-Tlinkall.x", # "-C", "link-arg=-nostartfiles",
# "-C", "link-arg=-Wl,-Tlinkall.x",
# /Users/mabez/Downloads/esp-clang/bin
# LLD
"-C", "linker=/Users/mabez/Downloads/esp-clang/bin/lld",
"-C", "link-arg=-Tlinkall.x",
] ]
target = "xtensa-esp32s3-none-elf" target = "xtensa-esp32s3-none-elf"

View File

@ -28,7 +28,7 @@ SECTIONS {
/* Create an empty gap as big as .rwtext section - 32k (SRAM0) /* Create an empty gap as big as .rwtext section - 32k (SRAM0)
* because SRAM1 is available on the data bus and instruction bus * because SRAM1 is available on the data bus and instruction bus
*/ */
. = MAX(SIZEOF(.rwtext) + SIZEOF(.rwtext.wifi) + RESERVE_ICACHE + VECTORS_SIZE, 32k) - 32k; . = . + MAX(SIZEOF(.rwtext) + SIZEOF(.rwtext.wifi) + RESERVE_ICACHE + VECTORS_SIZE, 32k) - 32k;
/* Prepare the alignment of the section above. */ /* Prepare the alignment of the section above. */
. = ALIGN(4); . = ALIGN(4);