diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2022-09-15 12:30:52 -0700 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-09-21 10:35:40 +0200 |
commit | e260620eb4c28d4243f62c1d5f7e66cc6e773b8c (patch) | |
tree | ba4097a5e9976e74e5a708e79004eba2ff9877e2 /libc/sysdeps/linux/alpha/sigprocmask.c | |
parent | fc4d8e59e9d5595047b9bc89147ac4ff12a8b802 (diff) |
xtensa: ldso: make GOT protection adjustment conditional
Xtensa PERFORM_BOOTSTRAP_GOT macro uses mprotect to make bits of GOT
writable, but noMMU linux kernel returns ENOSYS to mprotect syscalls,
and syscall wrapper tries to update errno with the error code. This
happens well before the relocations are done and results in writes to
unrelated locations, memory corruption or protection violations.
Only define PERFORM_BOOTSTRAP_GOT when building xtensa configuration
with MMU support.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/alpha/sigprocmask.c')
0 files changed, 0 insertions, 0 deletions