about summary refs log tree commit diff
path: root/sunrpc/get_myaddr.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-26 15:58:23 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-26 16:53:38 +0100
commit758599bc9dcc5764e862bd9e1613c5d1e6efc5d3 (patch)
treec8767228310408cb5111e89f741a56ae93f7bcc0 /sunrpc/get_myaddr.c
parentf1a0840c15d039631c13258544cdc04e4cbb9c69 (diff)
downloadglibc-758599bc9dcc5764e862bd9e1613c5d1e6efc5d3.tar.gz
glibc-758599bc9dcc5764e862bd9e1613c5d1e6efc5d3.tar.xz
glibc-758599bc9dcc5764e862bd9e1613c5d1e6efc5d3.zip
elf: Apply attribute_relro to pointers in elf/dl-minimal.c
The present code leaves the function pointers unprotected, but moves
some of the static functions into .data.rel.ro instead.  This causes
the linker to produce an allocatable, executable, writable section
and eventually an RWX load segment.  Not only do we really do not
want that, it also breaks valgrind because valgrind does not load
debuginfo from the mmap interceptor if all it sees are RX and RWX
mappings.

Fixes commit 3a0ecccb599a6b1ad4b149dc569c0080e92d057b ("ld.so: Do not
export free/calloc/malloc/realloc functions [BZ #25486]").
Diffstat (limited to 'sunrpc/get_myaddr.c')
0 files changed, 0 insertions, 0 deletions