diff options
author | dfr <dfr@FreeBSD.org> | 2004-08-15 16:18:52 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2004-08-15 16:18:52 +0000 |
commit | 2f90ca8b3cce7d9b8e36a7641f90e8d59ebde4a5 (patch) | |
tree | e8c5fbe955b31ea20466f96e5959370ad849667b /lib/csu/amd64 | |
parent | ce4e47fed011aaea8720c16b940600231fdab789 (diff) | |
download | FreeBSD-src-2f90ca8b3cce7d9b8e36a7641f90e8d59ebde4a5.zip FreeBSD-src-2f90ca8b3cce7d9b8e36a7641f90e8d59ebde4a5.tar.gz |
Add support for TLS in statically linked programs.
Diffstat (limited to 'lib/csu/amd64')
-rw-r--r-- | lib/csu/amd64/crt1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/csu/amd64/crt1.c b/lib/csu/amd64/crt1.c index 15aec44..f1f0f7b 100644 --- a/lib/csu/amd64/crt1.c +++ b/lib/csu/amd64/crt1.c @@ -77,6 +77,8 @@ _start(char **ap, void (*cleanup)(void)) if (&_DYNAMIC != NULL) atexit(cleanup); + else + _init_tls(); #ifdef GCRT atexit(_mcleanup); |