Skip to content

Commit d4a6516

Browse files
committed
Fix tlsX_not_needed_marker into RAM
Without this, tlsX_not_needed_marker gets placed in PSRAM for some reason, which then doesn't fit if PSRAM_SIZE_BYTES is 0
1 parent 7651af3 commit d4a6516

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/rp2_common/pico_standard_link/script_include/section_tls.incl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ SECTIONS
1818
PROVIDE( __tbss_size = SIZEOF(.tbss) );
1919
PROVIDE( __tbss_offset = ADDR(.tbss) - __tls_start );
2020

21-
/* this marker is present if the code knows we don't need __tls0 and __tls1... we decide
21+
/* this marker is present if the code knows we don't need __tls0 and __tls1... we decide
2222
* to waste 4 bytes in that case rather than possibly large amounts for __tls0 and __tls1
2323
* which will never be used */
2424
.tlsX_not_needed_marker (NOLOAD) : {
2525
KEEP(*(.tlsX_not_needed_marker))
26-
}
26+
} > RAM
2727
PROVIDE( __tlsX_align = SIZEOF(.tlsX_not_needed_marker) > 0 ? 4 : __tls_align);
2828
PROVIDE( __tlsX_size_align = SIZEOF(.tlsX_not_needed_marker) > 0 ? 0 : __tls_size_align);
2929

0 commit comments

Comments
 (0)