提交 22723186 编写于 作者: B Behdad Esfahbod

check-static-inits: Filter out zero-length sections

When compiling with -O0, zero-sized constructors were showing up
and confusing the test.
上级 b695a3dc
...@@ -22,7 +22,7 @@ fi ...@@ -22,7 +22,7 @@ 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 '[.][cd]tors'; then if objdump -t "$obj" | grep '[.][cd]tors' | grep -v '\<00*\>'; then
echo "Ouch, $obj has static initializers/finalizers" echo "Ouch, $obj has static initializers/finalizers"
stat=1 stat=1
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册