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:
parent
46ab4fcf2a
commit
d55d0331c7
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ col = Colorize.new
|
||||||
config_code = File.read(config)
|
config_code = File.read(config)
|
||||||
REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/)
|
REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/)
|
||||||
REPLACE << 'memcmp' if /\bAC_FUNC_MEMCMP\b/ =~ config_code
|
REPLACE << 'memcmp' if /\bAC_FUNC_MEMCMP\b/ =~ config_code
|
||||||
|
REPLACE.push('main', 'DllMain')
|
||||||
print "Checking leaked global symbols..."
|
print "Checking leaked global symbols..."
|
||||||
STDOUT.flush
|
STDOUT.flush
|
||||||
IO.foreach("|#{NM} -Pgp #{ARGV.join(' ')}") do |line|
|
IO.foreach("|#{NM} -Pgp #{ARGV.join(' ')}") do |line|
|
||||||
|
|
Loading…
Reference in a new issue