diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-09-02 14:07:06 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-27 14:46:54 +0100 |
commit | c3e46aa5d253c23ca3828538127aee15efbabfc0 (patch) | |
tree | 6bf940b8fbc62cb0a6c572d4a80132ca89d74b02 /sysdeps/unix/sysv/linux/sigstack.c | |
parent | ddd4011014924bd46d9fce4cc5333bea9d792d41 (diff) | |
download | glibc-c3e46aa5d253c23ca3828538127aee15efbabfc0.tar glibc-c3e46aa5d253c23ca3828538127aee15efbabfc0.tar.gz glibc-c3e46aa5d253c23ca3828538127aee15efbabfc0.tar.bz2 glibc-c3e46aa5d253c23ca3828538127aee15efbabfc0.zip |
cheri: elf: Use RW permissions for l_ld when needed
The dynamic section of an executable needs to be written to set the
DT_DEBUG entry for debuggers (unless the target has some other place
to store r_debug). For this reason we make l_ld writable whenever
the dynamic section is writable.
The ld.so l_ld is kept RX, since it does not have DT_DEBUG.
(Note: relocating the dynamic section is not allowed on cheri and
that's the only other reason glibc would write to it.)
Diffstat (limited to 'sysdeps/unix/sysv/linux/sigstack.c')
0 files changed, 0 insertions, 0 deletions