diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-26 21:46:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-27 15:50:02 +0900 |
commit | d55d0331c703f883c4b6fd76b5a14508cc398338 (patch) | |
tree | f236c1c223b5780d22a6a0ad046d2491d7a2ed3b | |
parent | 46ab4fcf2a71cf68565dc587db6fb1497e75e854 (diff) |
Exclude entry points
-rwxr-xr-x | tool/leaked-globals | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/leaked-globals b/tool/leaked-globals index 3f4621a35f..ab9fc99823 100755 --- a/tool/leaked-globals +++ b/tool/leaked-globals @@ -19,6 +19,7 @@ col = Colorize.new config_code = File.read(config) REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/) REPLACE << 'memcmp' if /\bAC_FUNC_MEMCMP\b/ =~ config_code +REPLACE.push('main', 'DllMain') print "Checking leaked global symbols..." STDOUT.flush IO.foreach("|#{NM} -Pgp #{ARGV.join(' ')}") do |line| |