libelf: Check for mremap, elf_update needs it for ELF_C_RDWR_MMAP
authorMark Wielaard <mark@klomp.org>
Sun, 24 Apr 2022 17:42:29 +0000 (19:42 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 24 Apr 2022 17:42:29 +0000 (19:42 +0200)
commit3cf386984c1870c2b39ec3fb47b0deb7b30535c3
treed30cf878192f3a4a08fcbe9fd559a1d7e84e5268
parent6398e94e9ac9a170da088768198d4a2b6e989e19
libelf: Check for mremap, elf_update needs it for ELF_C_RDWR_MMAP

Add a AC_CHECK_FUNCS configure check for mremap. Some systems like
KFreeBSD and the Hurd don't have it. Also add a configure warning
because without mremap elf_update will often fail when ELF_C_RDWR_MMAP
is used. ELF_C_RDWR_MMAP is an elfutils extension to libelf.

https://sourceware.org/bugzilla/show_bug.cgi?id=27337

Signed-off-by: Mark Wielaard <mark@klomp.org>
ChangeLog
configure.ac
libelf/ChangeLog
libelf/elf_update.c