Skip to content

Commit 8e67c39

Browse files
committed
Ignore un-aligned armeabi-v7a & x86 libs
1 parent 5656572 commit 8e67c39

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/check_elf_alignment.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,13 @@ for match in $matches; do
100100
if [[ $res =~ 2\*\*(1[4-9]|[2-9][0-9]|[1-9][0-9]{2,}) ]]; then
101101
echo -e "${match}: ${GREEN}ALIGNED${ENDCOLOR} ($res)"
102102
else
103-
echo -e "${match}: ${RED}UNALIGNED${ENDCOLOR} ($res)"
104-
unaligned_libs+=("${match}")
103+
# Record failure ONLY for 64-bit ABIs (arm64-v8a / x86_64)
104+
if [[ "$match" == *arm64-v8a* || "$match" == *x86_64* ]]; then
105+
echo -e "${match}: ${RED}UNALIGNED${ENDCOLOR} ($res)"
106+
unaligned_libs+=("${match}")
107+
else
108+
echo -e "${match}: ${RED}UNALIGNED (ignored 32-bit)${ENDCOLOR}"
109+
fi
105110
fi
106111
done
107112

0 commit comments

Comments
 (0)