summaryrefslogtreecommitdiffstats
path: root/lib/csu/alpha
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2004-08-15 16:18:52 +0000
committerdfr <dfr@FreeBSD.org>2004-08-15 16:18:52 +0000
commit2f90ca8b3cce7d9b8e36a7641f90e8d59ebde4a5 (patch)
treee8c5fbe955b31ea20466f96e5959370ad849667b /lib/csu/alpha
parentce4e47fed011aaea8720c16b940600231fdab789 (diff)
downloadFreeBSD-src-2f90ca8b3cce7d9b8e36a7641f90e8d59ebde4a5.zip
FreeBSD-src-2f90ca8b3cce7d9b8e36a7641f90e8d59ebde4a5.tar.gz
Add support for TLS in statically linked programs.
Diffstat (limited to 'lib/csu/alpha')
-rw-r--r--lib/csu/alpha/crt1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/csu/alpha/crt1.c b/lib/csu/alpha/crt1.c
index b8ad3ea..7a936e9 100644
--- a/lib/csu/alpha/crt1.c
+++ b/lib/csu/alpha/crt1.c
@@ -93,6 +93,8 @@ _start(char **ap, void (*cleanup)(void), struct Struct_Obj_Entry *obj __unused,
if (&_DYNAMIC != NULL)
atexit(cleanup);
+ else
+ _init_tls();
#ifdef GCRT
atexit(_mcleanup);
OpenPOWER on IntegriCloud