kfreebsd-mremap-stub
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Thu, 9 May 2024 18:14:23 +0000 (18:14 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 9 May 2024 18:14:23 +0000 (18:14 +0000)
===================================================================

Gbp-Pq: Name kfreebsd-mremap-stub

libelf/elf_update.c

index 56af3a1cc204067e04e7466fa356387d85fae942..8882d796493e95efe2c33ec8087fbb0e738823a9 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)