Windows (PowerShell)
In plain words
On Windows, run llvm-readelf from the NDK in PowerShell on a shared object (.so) file to inspect its ELF segments; a GNU_RELRO line appears if a RELRO segment exists.
- Command: SDK_ROOT_LOCATION\Android\sdk\ndk\NDK_VERSION\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readelf.exe -Wl SHARED_OBJECT_FILE.so, piped to Select-String.
- Select-String filters the output with the pattern 'LOAD|RELRO|Type'.
- The GNU_RELRO string is printed if there's a RELRO segment.
From the official text
SDKROOTLOCATION\Android\sdk\ndk\NDKVERSION\toolchains\llvm\prebuilt\windows-x8664\bin\llvm-readelf.exe -Wl SHAREDOBJECTFILE.so | Select-String -Pattern 'LOAD|RELRO|Type' The GNURELRO string is printed if there's a RELRO segment.
Read the full official text ↗ Open in the StoreRules library Ask whether your app complies
Change history
- · added
Developers' cases about this clause
No cases yet.