Remove alloca(0) calls
[deliverable/binutils-gdb.git] / gold / testsuite / ver_test_8.sh
index 27177ab3b7171709fdf522acff3ba0c7173152ff..665bd27a74fd11408b520dbf2a66b7bb54f9a9cc 100755 (executable)
@@ -2,7 +2,7 @@
 
 # ver_test_8.sh -- check that __GLOBAL_OFFSET_TABLE__ is defined only once.
 
-# Copyright (C) 2016-2017 Free Software Foundation, Inc.
+# Copyright (C) 2016-2019 Free Software Foundation, Inc.
 # Written by Cary Coutant <ccoutant@gmail.com>.
 
 # This file is part of gold.
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-count=`grep -c '_GLOBAL_OFFSET_TABLE_' ver_test_8_2.so.syms`
+count=`grep -c -E '(_GLOBAL_OFFSET_TABLE_|\.TOC\.)' ver_test_8_2.so.syms`
 
-if test "$count" -ne 1; then
-  echo "Found $count copies of '_GLOBAL_OFFSET_TABLE_' (should be only 1)"
+if test "$count" -gt 1; then
+  echo "Found $count copies of '_GLOBAL_OFFSET_TABLE_|.TOC.' (should be only 1)"
   exit 1
 fi
 
This page took 0.023642 seconds and 4 git commands to generate.