|
@@ -1665,7 +1665,7 @@ implementation
|
|
|
cg.g_maybe_got_init(templist);
|
|
|
aktproccode.insertlistafter(headertai,templist);
|
|
|
|
|
|
- if pi_uses_threadvar in flags then
|
|
|
+ if (pi_uses_threadvar in flags) and (tf_section_threadvars in target_info.flags) then
|
|
|
cg.g_maybe_tls_init(templist);
|
|
|
aktproccode.insertlistafter(stackcheck_asmnode.currenttai,templist);
|
|
|
|