ndk
ndk copied to clipboard
The Android Native Development Kit
### Description I have a rooted Android phone. When I run `./app_profiler.py --system_wide`, I get the following output: ``` simpleperf E cmd_record.cpp:1256] System wide profiling needs root privilege. Failed to...
### Description LTO seems to mess up stack unwinding when exception handlers are nested across function calls. This causes a segfault while unwinding the stack. Without LTO, the stack is...
### URL new page ### Problem https://android-developers.googleblog.com/2017/04/fortify-in-android.html discusses this in detail and https://android.googlesource.com/platform/ndk/+/master/docs/BuildSystemMaintainers.md#fortify does briefly, but we ought to put this on DAC where it's more discoverable.
### Description Follow up to https://groups.google.com/g/android-ndk/c/eTlw-eA3AvA/m/P6cmSA3nAwAJ. The NDK's toolchain file (and ndk-build) enable these features by default, but the toolchain build doesn't use that file when building the runtimes.
### Description See https://github.com/llvm/llvm-project/issues/67979 about a clang crash when building https://github.com/OSGeo/gdal - reproducible crash in NDK r27 (and r27b), works in NDK r26. ### Upstream bug https://github.com/llvm/llvm-project/issues/67979 ### Commit to...
### Description ### **Env Info:** > 【Compile Sdk Version】33 > 【NDK Version】R21e > 【JDK】Java 8 ### **Error Info:** ``` 2024-08-29 09:55:10.324 18568-18568 app_process64 com.cwx.inanna_android I /Users/cwx/work/codes/gitCodes/inanna/inanna-framework/demos/android/inanna-android/app/src/main/cpp/native-lib.cpp:42:22: runtime error: member call...
Using a version script that restricts your library to exposing only your JNI interface is always a good idea and helps avoid the annoying unwinder issues. We should probably recommend...
#### Expected scenario: Compile a *.so with ndk and integrate it into the apk. Expect to generate a .gcda file when running the app on Android, and then analyze the...
### Description Given this program ``` float frexpf(float, int*); int main() { int e; float m = frexpf(1, &e); __asm volatile("": :"w"(m)); return 0; } ``` Built like this ```...
### Description See #2059 for background. Having the clang pdbs would help us understand what the issue is and possibly suggest fixes/work around issues.