1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Exclude entry points

This commit is contained in:
Nobuyoshi Nakada 2020-12-26 21:46:27 +09:00
parent 46ab4fcf2a
commit d55d0331c7
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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|