check-static-inits: check for static finalizers
diff --git a/src/check-static-inits.sh b/src/check-static-inits.sh
index 83d02c8..6b03dd2 100755
--- a/src/check-static-inits.sh
+++ b/src/check-static-inits.sh
@@ -22,8 +22,8 @@
echo "Checking that no object file has static initializers"
for obj in $OBJS; do
- if objdump -t "$obj" | grep '[.]ctors'; then
- echo "Ouch, $obj has static initializers"
+ if objdump -t "$obj" | grep '[.][cd]tors'; then
+ echo "Ouch, $obj has static initializers/finalizers"
stat=1
fi
done