diff --git a/src/check-static-inits.sh b/src/check-static-inits.sh index 83d02c8a9..6b03dd21d 100755 --- a/src/check-static-inits.sh +++ b/src/check-static-inits.sh @@ -22,8 +22,8 @@ fi 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