aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-09-02 14:07:06 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-11-22 14:31:25 +0000
commit681ddc91e1f9cb33cf3b1370bd36ab9296f9be38 (patch)
tree35d503f4a16ad48c0b9cf0c5e1628605dcf40f33 /malloc/alloc_buffer_alloc_array.c
parent647e35b6ab9dc6a76c5bcb3aead5a4caaf1708cf (diff)
downloadglibc-681ddc91e1f9cb33cf3b1370bd36ab9296f9be38.tar.xz
glibc-681ddc91e1f9cb33cf3b1370bd36ab9296f9be38.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 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions