feat(m6): store hardening with r8, release pipeline, symbols and store assets
This commit is contained in:
@@ -9,9 +9,15 @@ cargo ndk --platform 24 \
|
||||
build --release -p ffi
|
||||
for abi in arm64-v8a armeabi-v7a x86_64; do
|
||||
so="app/android/app/src/main/jniLibs/$abi/libffi.so"
|
||||
if readelf -lW "$so" | awk '$1=="LOAD" && $NF!="0x4000" {found=1} END{exit !found}'; then
|
||||
echo "ERROR: $abi not 16 KB aligned" >&2
|
||||
# 16 KB pages are mandatory for 64-bit ABIs; 32-bit ARM still uses 4 KB.
|
||||
case "$abi" in
|
||||
arm64-v8a|x86_64) expect=0x4000 ;;
|
||||
*) expect=0x1000 ;;
|
||||
esac
|
||||
if readelf -lW "$so" | awk -v e="$expect" '$1=="LOAD" && $NF!=e {found=1} END{exit !found}'; then
|
||||
echo "ERROR: $abi is not aligned to $expect" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "OK: $abi aligned to $expect ($(stat -c%s "$so") bytes)"
|
||||
done
|
||||
echo 'OK: all ABIs 16 KB aligned'
|
||||
|
||||
Reference in New Issue
Block a user