Allocate a larger TLS segment, so that initialising libpthread.so works
authorMark Seaborn <mrs@mythic-beasts.com>
Tue, 9 Jun 2009 20:45:53 +0000 (21:45 +0100)
committerMark Seaborn <mrs@mythic-beasts.com>
Tue, 9 Jun 2009 20:45:53 +0000 (21:45 +0100)
commit5e4db8d16837b2532eca14cb66002e4235fcf519
tree948dcdb23ae3019cfc05c372611f08f30b9eb0ee
parentd62c4aaa67ba795f508e1911c2ecc7a03e93c3af
Allocate a larger TLS segment, so that initialising libpthread.so works

Normally on Linux, the TLS segment is unbounded.  Before, under NaCl,
only 100 bytes were allocated.  Increase this to 4k so that
__pthread_initialize_minimal works; it does "mov %eax,%gs:0x16c".

This is not a proper fix: we should really allocate upto the top of
address space.
nptl/sysdeps/i386/tls.h