implements proper linker script to support TLS

This change updates the linker script and dependend wile so that thread local
storage sections are properly supported and initailaized
This commit is contained in:
2026-02-01 06:43:47 +01:00
parent 6d5871687c
commit 1c9c00235d
7 changed files with 121 additions and 175 deletions

12
src/ram_dram.lds Normal file
View File

@@ -0,0 +1,12 @@
OUTPUT_ARCH( "riscv" )
ENTRY( _start )
INCLUDE memory_map.ld
REGION_ALIAS("LOCATION_TEXT", ram);
REGION_ALIAS("LOCATION_RODATA", ram);
REGION_ALIAS("LOCATION_DATA", dram);
REGION_ALIAS("LOCATION_STACK", dram);
INCLUDE sections.ld