From 945fc83903c731211d376337e7e41d020ccf52c3 Mon Sep 17 00:00:00 2001 From: Sukhikh Alexander Date: Tue, 13 Dec 2022 13:44:22 +0300 Subject: [PATCH] Fix __lldb_mmap name. Export __lldb_mmap symbol in libc.map.txt Issue I661Z1 Test: Build and boot devices. Signed-off-by: Sukhikh Alexander --- libc.map.txt | 1 + src/mman/mmap.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libc.map.txt b/libc.map.txt index 630c36b0..ddbe5ddd 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 842bbb0b..8a38fa8e 100644 --- a/src/mman/mmap.c +++ b/src/mman/mmap.c @@ -51,6 +51,6 @@ weak_alias(mmap, mmap64); #endif // HOOK_ENABLE /* Adapter function for lldb to not deal with 64-bit arguments on 32-bit systems */ -void *__lldb__mmap(void *start, size_t len, int prot, int flags, int fd, intptr_t off) { +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); } -- GitLab