summaryrefslogtreecommitdiff
path: root/gcc/tree-emutls.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-emutls.c')
-rw-r--r--gcc/tree-emutls.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree-emutls.c b/gcc/tree-emutls.c
index 899888dfb..7bade9f49 100644
--- a/gcc/tree-emutls.c
+++ b/gcc/tree-emutls.c
@@ -257,6 +257,10 @@ get_emutls_init_templ_addr (tree decl)
targetm.emutls.tmpl_section);
}
+ #ifdef TARGET_EMUTLS_VAR_SECTION_EMUTLS
+ DECL_SECTION_NAME (to) = build_string(strlen(".emutlst"),".emutlst");
+ #endif
+
/* Create varpool node for the new variable and finalize it if it is
not external one. */
if (DECL_EXTERNAL (to))
@@ -316,6 +320,10 @@ new_emutls_decl (tree decl)
targetm.emutls.tmpl_section);
}
+ #ifdef TARGET_EMUTLS_VAR_SECTION_EMUTLS
+ DECL_SECTION_NAME (to) = build_string(strlen(".emutlsv"),".emutlsv");
+ #endif
+
/* If this variable is defined locally, then we need to initialize the
control structure with size and alignment information. Initialization
of COMMON block variables happens elsewhere via a constructor. */