Skip to content
Commit b38d4300 authored by Sylvio Alves's avatar Sylvio Alves Committed by Anas Nashif
Browse files

soc: esp32c3: fix TLS flash addressing



When TLS is used, `__tdata_start` is PROVIDED by
"thread-local-storage.ld" using absolute address, which
makes it land in wrong flash address. This causes risc-v startup
code to fail during memcpy/memset.

This PR overrides `__tdata_start` to use ADDR, which will
make sure it is placed in DROM region due to AT keyword.

Signed-off-by: default avatarSylvio Alves <sylvio.alves@espressif.com>
parent 704421cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment