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

[check-static-inits.sh] Allow some if ubsan is in effect

上级 e45ba31d
...@@ -7,7 +7,6 @@ test -z "$srcdir" && srcdir=. ...@@ -7,7 +7,6 @@ test -z "$srcdir" && srcdir=.
test -z "$libs" && libs=.libs test -z "$libs" && libs=.libs
stat=0 stat=0
if which objdump 2>/dev/null >/dev/null; then if which objdump 2>/dev/null >/dev/null; then
: :
else else
...@@ -31,7 +30,8 @@ done ...@@ -31,7 +30,8 @@ done
echo "Checking that no object file has lazy static C++ constructors/destructors or other such stuff" echo "Checking that no object file has lazy static C++ constructors/destructors or other such stuff"
for obj in $OBJS; do for obj in $OBJS; do
if objdump -t "$obj" | grep '__cxa_'; then if objdump -t "$obj" | grep -q '__cxa_' && ! objdump -t "$obj" | grep -q __ubsan_handle; then
objdump -t "$obj" | grep '__cxa_'
echo "Ouch, $obj has lazy static C++ constructors/destructors or other such stuff" echo "Ouch, $obj has lazy static C++ constructors/destructors or other such stuff"
stat=1 stat=1
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册