check-static-inits: check for static finalizers
This commit is contained in:
parent
250398b1e4
commit
b695a3dc23
|
@ -22,8 +22,8 @@ fi
|
||||||
|
|
||||||
echo "Checking that no object file has static initializers"
|
echo "Checking that no object file has static initializers"
|
||||||
for obj in $OBJS; do
|
for obj in $OBJS; do
|
||||||
if objdump -t "$obj" | grep '[.]ctors'; then
|
if objdump -t "$obj" | grep '[.][cd]tors'; then
|
||||||
echo "Ouch, $obj has static initializers"
|
echo "Ouch, $obj has static initializers/finalizers"
|
||||||
stat=1
|
stat=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue