diff options
author | Richard Levitte <levitte@openssl.org> | 2023-11-30 08:48:33 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2023-12-04 09:55:15 +0100 |
commit | 6c63b7e861819db439551b52ea5594faec04b65c (patch) | |
tree | 72589d60785c1eb551c9c15c8423c34ed874f93a /test | |
parent | d6961af1acbdf29b684f3307578bd03890a26a9c (diff) | |
download | openssl-6c63b7e861819db439551b52ea5594faec04b65c.tar.gz |
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)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/01-test_symbol_presence.t | 8 |
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 |