On 08/Oct/2021 16:45, Denys Vlasenko wrote: > On Fri, Oct 8, 2021 at 10:16 AM xiechengliang <[email protected]> > wrote: > > > > I have built busybox with CONFIG_LFS=y, this problem still exists. > > > > mmap is defined in glibc as below: > > void *mmap(void *addr, size_t len, int prot , int flags , int fd, off_t > > offset); > > The type of last parameter offset is off_ t, so using mmap will still cause > > truncation problems. > > ???? > With CONFIG_LFS=y, off_t should be (at least) 64-bit. > > Tell me more about the architecture you are building for. > Is it bionic, maybe? They had some weird cases where off_t stays 32-bit.
Looks like it could be bionic. At least none of: - glibc - uclibc - uclibc-ng - musl Targeting anything earlier than Android NDK API 21 probably will not work without workarounds. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
