projects
/
elfutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12e6ea7
)
kfreebsd-mremap-stub
author
Debian Elfutils Maintainers
<debian-gcc@lists.debian.org>
Sat, 14 Jan 2023 13:54:50 +0000
(13:54 +0000)
committer
Helge Kreutzmann
<debian@helgefjell.de>
Sat, 14 Jan 2023 13:54:50 +0000
(13:54 +0000)
===================================================================
Gbp-Pq: Name kfreebsd-mremap-stub
libelf/elf_update.c
patch
|
blob
|
history
diff --git
a/libelf/elf_update.c
b/libelf/elf_update.c
index 56af3a1cc204067e04e7466fa356387d85fae942..8882d796493e95efe2c33ec8087fbb0e738823a9 100644
(file)
--- a/
libelf/elf_update.c
+++ b/
libelf/elf_update.c
@@
-37,6
+37,14
@@
#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)