diff --git a/libc.map.txt b/libc.map.txt index 630c36b0b5de2b2b4937a71b95264fcc8cee7d60..ddbe5ddd7eb33aff211fa72030398bb0440fe676 100644 --- a/libc.map.txt +++ b/libc.map.txt @@ -133,6 +133,7 @@ __libc_mmap; __libc_munmap; __libc_start_main; + __lldb_mmap; __localtime64; __localtime64_r; __lstat_time64; diff --git a/src/mman/mmap.c b/src/mman/mmap.c index c1d00d04e20a67f9e10d904fb4e3147595b5f051..e8d67d970f36f0c236e27ea51bab0f7ea2115c7c 100644 --- a/src/mman/mmap.c +++ b/src/mman/mmap.c @@ -50,3 +50,11 @@ weak_alias(__mmap, mmap); weak_alias(mmap, mmap64); #endif // HOOK_ENABLE +/* +Adapter function for lldb to not deal with 64-bit arguments on 32-bit systems +Issue I661Z1 +Test: Build and boot devices. +*/ +void *__lldb_mmap(void *start, size_t len, int prot, int flags, int fd, intptr_t off) { + return mmap(start, len, prot, flags, fd, off); +}