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 */
|
||||
|
||||
. = SIZEOF(.text);
|
||||
. = . + SIZEOF(.text);
|
||||
|
||||
/* Prepare the alignment of the section above. Few bytes (0x20) must be
|
||||
* added for the mapping header.
|
||||
|
||||
@ -7,7 +7,7 @@ SECTIONS {
|
||||
.rtc_fast.dummy (NOLOAD) :
|
||||
{
|
||||
_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_FAST_RWDATA
|
||||
}
|
||||
|
||||
@ -3,8 +3,14 @@ runner = "espflash flash --monitor"
|
||||
|
||||
[build]
|
||||
rustflags = [
|
||||
"-C", "link-arg=-nostartfiles",
|
||||
"-C", "link-arg=-Wl,-Tlinkall.x",
|
||||
# GNU LD
|
||||
# "-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"
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ SECTIONS {
|
||||
/* Create an empty gap as big as .rwtext section - 32k (SRAM0)
|
||||
* 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. */
|
||||
. = ALIGN(4);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user