summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2023-11-30 08:48:33 +0100
committerRichard Levitte <levitte@openssl.org>2023-12-04 09:59:16 +0100
commit44288415caad757cd27ed32acfa57014e305defa (patch)
tree9f7f216560a872a9538fda3919a589f0511777b5 /test
parentfd105ab862d99dcae2a1bbe52407f183873a0710 (diff)
test/recipes/01-test_symbol_presence.t: Ignore symbols starting with '__'
On some platforms, the compiler may add symbols that aren't ours and that we should ignore. They are generally expected to start with a double underscore, and thereby easy to detect. Fixes #22869 (partially) Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22880) (cherry picked from commit 6c63b7e861819db439551b52ea5594faec04b65c)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/01-test_symbol_presence.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/recipes/01-test_symbol_presence.t b/test/recipes/01-test_symbol_presence.t
index 9efa9f8d2d..66e5669e19 100644
--- a/test/recipes/01-test_symbol_presence.t
+++ b/test/recipes/01-test_symbol_presence.t
@@ -124,7 +124,13 @@ foreach (sort keys %stlibname) {
# Return the result
$_
}
- grep(m|.* [BCDST] .*|, @$_);
+ # Drop any symbol starting with a double underscore, they
+ # are reserved for the compiler / system ABI and are none
+ # of our business
+ grep !m|^__|,
+ # Only look at external definitions
+ grep m|.* [BCDST] .*|,
+ @$_ ),
}
# Massage the mkdef.pl output to only contain global symbols