diff --git a/src/stub/l_lx_elf.c b/src/stub/l_lx_elf.c index ec126cd7..faab6fc5 100644 --- a/src/stub/l_lx_elf.c +++ b/src/stub/l_lx_elf.c @@ -94,6 +94,7 @@ do_brk(void *addr) } static char * +__attribute__((cdecl)) do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { (void)len; (void)prot; (void)flags; (void)fd; (void)offset; diff --git a/src/stub/l_lx_exec.c b/src/stub/l_lx_exec.c index 513a7dff..a4a999e4 100644 --- a/src/stub/l_lx_exec.c +++ b/src/stub/l_lx_exec.c @@ -128,6 +128,7 @@ static uint32_t ascii5(char *p, uint32_t v, unsigned n) static char * +__attribute__((cdecl)) do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { (void)len; (void)prot; (void)flags; (void)fd; (void)offset; diff --git a/src/stub/l_lx_sep.c b/src/stub/l_lx_sep.c index a438e77c..f38f82d8 100644 --- a/src/stub/l_lx_sep.c +++ b/src/stub/l_lx_sep.c @@ -112,6 +112,7 @@ do_brk(void *addr) } static char * +__attribute__((cdecl)) do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { (void)len; (void)prot; (void)flags; (void)fd; (void)offset; diff --git a/src/stub/l_lx_sh.c b/src/stub/l_lx_sh.c index c3391632..8a294d97 100644 --- a/src/stub/l_lx_sh.c +++ b/src/stub/l_lx_sh.c @@ -94,6 +94,7 @@ do_brk(void *addr) } static char * +__attribute__((cdecl)) do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { (void)len; (void)prot; (void)flags; (void)fd; (void)offset;