Skip to content
Snippets Groups Projects
Commit ae693fc3 authored by Thibaut Benjamin's avatar Thibaut Benjamin
Browse files

[e-acsl] add comment

parent 2004fbc1
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,9 @@ static void fill_thread_layout_stack(memory_partition *pstack,
static void fill_thread_layout_tls(memory_partition *ptls) {
// Since the TLS is by design specific to each thread, we can reuse the
// method used to identify the TLS segment in the main thread
// We first need to collect the safe locations of the current thread,
// since we need to register them in case the program uses one of them
// inside the thread
collect_safe_locations();
set_application_segment(&ptls->application, get_tls_start(0), get_tls_size(),
"thread_tls", NULL);
......
......@@ -362,6 +362,7 @@ static void init_shadow_layout_global() {
static void init_shadow_layout_tls() {
memory_partition *ptls = &mem_layout.tls;
/* Collect the safe locations of the main thread */
collect_safe_locations();
init_tls_size();
set_application_segment(&ptls->application, get_tls_start(1), get_tls_size(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment