kfreebsd-mremap-stub
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Fri, 9 Sep 2022 17:53:50 +0000 (18:53 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Fri, 9 Sep 2022 17:53:50 +0000 (18:53 +0100)
Gbp-Pq: Name kfreebsd-mremap-stub

libelf/elf_update.c

index 97ca9ca943e2dcc70ca985cec2eaf97d8333d78c..d33b0742c69da55231cab35611cbc5a0aa9491f0 100644 (file)
 
 #include "libelfP.h"
 
+#if defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
+void *mremap(void *old_address, size_t old_size,
+             size_t new_size, int flags, ... /* void *new_address */)
+{
+  errno = ENOMEM;
+  return MAP_FAILED;
+}
+#endif
 
 static int64_t
 write_file (Elf *elf, int64_t size, int change_bo, size_t shnum)