Skip to content

Commit

Permalink
Fixed defmt on direct-boot mode
Browse files Browse the repository at this point in the history
  • Loading branch information
9names authored and jessebraham committed Sep 7, 2022
1 parent dd1f94f commit c896e6c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions esp32c3-hal/ld/db-riscv-link.x
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ SECTIONS
_ebss = .;
} > REGION_BSS

/* ### .uninit */
.uninit (NOLOAD) : ALIGN(4)
{
. = ALIGN(4);
__suninit = .;
*(.uninit .uninit.*);
. = ALIGN(4);
__euninit = .;
} > REGION_BSS

/* fictitious region that represents the memory available for the heap */
.heap (NOLOAD) :
{
Expand All @@ -135,7 +145,7 @@ SECTIONS
} > REGION_RTC_FAST
_fast_text_size = _ertc_fast_text - _srtc_fast_text + 8;

.rtc_fast.data : AT(_text_size + _rodata_size + _data_size + _rwtext_size + _fast_text_size)
.rtc_fast.data : AT(_text_size + _rodata_size + _data_size + _rwtext_size + _fast_text_size)
{
_rtc_fast_data_start = ABSOLUTE(.);
*(.rtc_fast.data .rtc_fast.data.*)
Expand All @@ -144,15 +154,15 @@ SECTIONS
} > REGION_RTC_FAST
_rtc_fast_data_size = _rtc_fast_data_end - _rtc_fast_data_start + 8;

.rtc_fast.bss (NOLOAD) : ALIGN(4)
.rtc_fast.bss (NOLOAD) : ALIGN(4)
{
_rtc_fast_bss_start = ABSOLUTE(.);
*(.rtc_fast.bss .rtc_fast.bss.*)
. = ALIGN(4);
_rtc_fast_bss_end = ABSOLUTE(.);
} > REGION_RTC_FAST

.rtc_fast.noinit (NOLOAD) : ALIGN(4)
.rtc_fast.noinit (NOLOAD) : ALIGN(4)
{
*(.rtc_fast.noinit .rtc_fast.noinit.*)
} > REGION_RTC_FAST
Expand Down Expand Up @@ -224,4 +234,4 @@ then modify your build script to compile the C code _without_ the
-fPIC flag. See the documentation of the `gcc::Config.fpic` method for
details.");

/* Do not exceed this mark in the error messages above | */
/* Do not exceed this mark in the error messages above | */

0 comments on commit c896e6c

Please sign in to comment.