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.
(backport of commit
6c63b7e861819db439551b52ea5594faec04b65c)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22929)
# Return the result
$_
}
- grep(m|.* [BCDST] .*|, @nm_lines);
+ # 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] .*|,
+ @nm_lines;
# Massage the mkdef.pl output to only contain global symbols
# The output we got is in Unix .map format, which has a global