summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/unregister-atfork.c
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@st.com>2018-07-04 17:55:31 +0200
committerWaldemar Brodkorb <wbrodkorb@conet.de>2018-08-10 16:02:45 +0200
commit5b9a9801a4867af70c9ed55379b3eaa3dba59ef3 (patch)
treed408f2e9f64dc5ab9e973232fb8353b29e547119 /libpthread/nptl/sysdeps/unix/sysv/linux/unregister-atfork.c
parentfcecd012a6944eab8912787ca668b280e7233a8d (diff)
nptl: disable mprotect usage in stack protection
Since mprotect does not work on MMU-less systems, disable it if __ARCH_USE_MMU__ is not defined. * libpthread/nptl/allocatestack.c (change_stack_perm): Call mprotect only if __ARCH_USE_MMU__ is defined. (allocate_stack): Likewise. Signed-off-by: Mickaël Guêné <mickael.guene@st.com> Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/unregister-atfork.c')
0 files changed, 0 insertions, 0 deletions