diff options
author | marius <marius@FreeBSD.org> | 2011-06-21 19:15:23 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2011-06-21 19:15:23 +0000 |
commit | 1614d1809fabb1b79cc0ff5b9430b42b451aaa47 (patch) | |
tree | b75baf1e4f589e404daffbb6b5bd8a42b7e62f52 /lib | |
parent | f12aed9bf619f5f301b38d5dc262b5c7a1cee743 (diff) | |
download | FreeBSD-src-1614d1809fabb1b79cc0ff5b9430b42b451aaa47.zip FreeBSD-src-1614d1809fabb1b79cc0ff5b9430b42b451aaa47.tar.gz |
Change sparc64 to use the initial exec TLS model, too. This avoids random
assertion failures in _malloc_thread_cleanup().
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 48d9c14..5290512 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -234,7 +234,7 @@ __FBSDID("$FreeBSD$"); #ifdef __sparc64__ # define LG_QUANTUM 4 # define LG_SIZEOF_PTR 3 -# define TLS_MODEL /* default */ +# define TLS_MODEL __attribute__((tls_model("initial-exec"))) #endif #ifdef __amd64__ # define LG_QUANTUM 4 |