You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling a 32-bit target with -D_FILE_OFFSET_BITS=64 this
results in the NDK's mmap() prototype not matching Bionic's, which
means the caller pushes a 64-bit value on the stack, whilst the callee
expects a 32-bit value there. This in turn means mmap() likely sees
a bogus offset argument and returns MAP_FAILED.
Environment Details
NDK Version: 15.1.4119039
Build system: Meson
Host OS: Mac
Compiler: Clang
ABI: armeabi-v7a
NDK API level: 14
Device API level: 24
The text was updated successfully, but these errors were encountered:
Description
When compiling a 32-bit target with
-D_FILE_OFFSET_BITS=64
thisresults in the NDK's
mmap()
prototype not matching Bionic's, whichmeans the caller pushes a 64-bit value on the stack, whilst the callee
expects a 32-bit value there. This in turn means
mmap()
likely seesa bogus
offset
argument and returnsMAP_FAILED
.Environment Details
The text was updated successfully, but these errors were encountered: