summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2024-05-02 22:00:40 +0000
committerSteven Moreland <smoreland@google.com>2024-05-02 23:42:16 +0000
commit6e1def69e7c79496bd5f9c40078db5b58faeeea4 (patch)
treed3c9df21cec280e1b300f4a9c10549a877f25d3f
parent14be9dd102f0128c2fce8068e8bd350d05e5e26e (diff)
downloadextras-6e1def69e7c79496bd5f9c40078db5b58faeeea4.tar.gz
check_elf: dump all libs
Tripped me up in b/337956762#comment7, where I thought this binary had no native libs, but it was really 32-bit only. Bug: 337956762 Test: manual Change-Id: I225757e2fd5618aa058ef1a528850827feb309f1
-rwxr-xr-xtools/check_elf_alignment.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/check_elf_alignment.sh b/tools/check_elf_alignment.sh
index ba82eb7a..4183c790 100755
--- a/tools/check_elf_alignment.sh
+++ b/tools/check_elf_alignment.sh
@@ -57,7 +57,7 @@ if [[ ${dir} == *.apk ]]; then
dir_filename=$(basename ${dir})
tmp=$(mktemp -d -t ${dir_filename%.apk}_out_XXXXX)
- unzip ${dir} lib/arm64-v8a/* lib/x86_64/* -d ${tmp} >/dev/null 2>&1
+ unzip ${dir} lib/* -d ${tmp} >/dev/null 2>&1
dir=${tmp}
fi
@@ -83,7 +83,7 @@ for match in $matches; do
done
if [ ${#unaligned_libs[@]} -gt 0 ]; then
- echo -e "${RED}Found ${#unaligned_libs[@]} unaligned libs${ENDCOLOR}"
+ echo -e "${RED}Found ${#unaligned_libs[@]} unaligned libs (only arm64-v8a/x86_64 libs need to be aligned).${ENDCOLOR}"
elif [ -n "${dir_filename}" ]; then
echo -e "ELF Verification Successful"
fi