From 864948a9a90ec8adb1cb9c0b0fe270687d484504 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 6 Oct 2004 17:27:08 +0200
Subject: [PATCH] Ignore __i686.get_pc_thunk.bx and similar symbols.

Rev: src/nettle/testsuite/symbols-test:1.6
---
 testsuite/symbols-test | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/testsuite/symbols-test b/testsuite/symbols-test
index 71056438..b992f153 100755
--- a/testsuite/symbols-test
+++ b/testsuite/symbols-test
@@ -6,9 +6,14 @@ if [ -z "$srcdir" ] ; then
   srcdir=`pwd`
 fi
 
-# nm on aix seems to generate bogus outbut including random binary data.
-# Using -g is a workaround to get rid of that. Hope nm -g is portable enough.
-nm -g ../libnettle.a | grep ' [DRT] ' | egrep -v '( |^)\.?_?(_?nettle_|memxor)' \
+# * nm on aix seems to generate bogus outbut including random binary
+#   data. Using -g is a workaround to get rid of that. Hope nm -g is
+#   portable enough.
+
+# * gcc on x86 generates functions like __i686.get_pc_thunk.bx in pic
+#   code.
+
+nm -g ../libnettle.a | grep ' [DRT] ' | egrep -v '( |^)\.?_?(_?nettle_|memxor)|get_pc_thunk' \
     | sort -k3 > test1.out
 
 if [ -s test1.out ] ; then
-- 
GitLab