nptl: Replace sbrk with mmap
commit0f4ddec32ebf5796c5ea485f8fdae2f1ad429e1d
authorChristophe Lyon <christophe.lyon@st.com>
Wed, 4 Jul 2018 15:55:39 +0000 (4 17:55 +0200)
committerWaldemar Brodkorb <wbrodkorb@conet.de>
Fri, 10 Aug 2018 14:02:45 +0000 (10 16:02 +0200)
tree17f1489acd1a8005bd752ccc22f635864069426c
parent13fcd46ea7d2d93858061748d6428b900150f6ad
nptl: Replace sbrk with mmap

Replace sbrk with mmap since this commit disables sbrk area
for FDPIC MMU-less platform:
fs/binfmt_elf_fdpic.c: fix brk area overlap with stack on NOMMU
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/fs/binfmt_elf_fdpic.c?id=4ac313111018cb44ecc250445de5ccb93026a980

* libpthread/nptl/sysdeps/generic/libc-tls.c (__libc_setup_tls):
Handle __FDPIC__.

Signed-off-by: Mickaël Guêné <mickael.guene@st.com>
Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
libpthread/nptl/sysdeps/generic/libc-tls.c