aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-11-03 18:55:54 +0800
committerThomas Preud'homme <robotux@celest.fr>2013-11-03 18:55:54 +0800
commitcf02f920c148a77794b05ba09d73586e5f0b3601 (patch)
treed35e02afb9539566893e4e09cee83c9a4886ac2b /libtcc.c
parent1c4afd13501f07a673aed5f130166f2ee0f30927 (diff)
downloadtinycc-cf02f920c148a77794b05ba09d73586e5f0b3601.tar.gz
tinycc-cf02f920c148a77794b05ba09d73586e5f0b3601.tar.bz2
Revert "Add support for thread-local storage variables"
TLS support in tinyCC is absolutely not ready: - segment register not select in load and store - no relocation added for computing offset of per-thread symbol - no support for TLS-specific relocations - no program header added as per Drepper document about TLS This reverts commit 1c4afd13501f07a673aed5f130166f2ee0f30927.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libtcc.c b/libtcc.c
index fbea50b..f841eb0 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -444,10 +444,7 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section,
} else if ((sym->type.t & VT_BTYPE) == VT_VOID) {
sym_type = STT_NOTYPE;
} else {
- if (section && section->sh_flags & SHF_TLS)
- sym_type = STT_TLS;
- else
- sym_type = STT_OBJECT;
+ sym_type = STT_OBJECT;
}
if (sym->type.t & VT_STATIC)