start but not working
This commit is contained in:
parent
310809a5bf
commit
978ae3c451
@ -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.
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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"
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user