kernel: tls: align tdata/tbss sections in stack
This lets the linker tell us what kind of alignment is required for both tdata and tbss data when copying them into stack. If they are not aligned as expected by the toolchain, generated code would be accessing incorrect location for thread variables. Fixes #32015 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
e61dbe59b0
commit
371752bce3
3 changed files with 9 additions and 2 deletions
|
@ -309,9 +309,11 @@ extern char z_kobject_data_begin[];
|
|||
extern char __tdata_start[];
|
||||
extern char __tdata_end[];
|
||||
extern char __tdata_size[];
|
||||
extern char __tdata_align[];
|
||||
extern char __tbss_start[];
|
||||
extern char __tbss_end[];
|
||||
extern char __tbss_size[];
|
||||
extern char __tbss_align[];
|
||||
extern char __tls_start[];
|
||||
extern char __tls_end[];
|
||||
extern char __tls_size[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue