diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-03-28 06:09:24 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-03-28 06:09:24 +0000 |
commit | f8168da7cf95cc9e1082de2f92593fa9e40bbde5 (patch) | |
tree | ac985a06120dcffc30366f910f16d1483f8eccad /libexec/rtld-elf/sparc64/reloc.c | |
parent | b99f1961b8b3456fa23cc4113117f8f1139d5c60 (diff) | |
download | FreeBSD-src-f8168da7cf95cc9e1082de2f92593fa9e40bbde5.zip FreeBSD-src-f8168da7cf95cc9e1082de2f92593fa9e40bbde5.tar.gz |
Allocate space for thread pointer, this allows thread library to access
its pointer from begin, and simplifies _get_curthread() in libthr.
Diffstat (limited to 'libexec/rtld-elf/sparc64/reloc.c')
-rw-r--r-- | libexec/rtld-elf/sparc64/reloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/sparc64/reloc.c b/libexec/rtld-elf/sparc64/reloc.c index f264860..dc0d830 100644 --- a/libexec/rtld-elf/sparc64/reloc.c +++ b/libexec/rtld-elf/sparc64/reloc.c @@ -731,7 +731,7 @@ allocate_initial_tls(Obj_Entry *objs) * use. */ tls_static_space = tls_last_offset + RTLD_STATIC_TLS_EXTRA; - tp = allocate_tls(objs, NULL, 2*sizeof(Elf_Addr), sizeof(Elf_Addr)); + tp = allocate_tls(objs, NULL, 3*sizeof(Elf_Addr), sizeof(Elf_Addr)); } void *__tls_get_addr(tls_index *ti) |