Skip to content

Commit

Permalink
merge revision(s) 36544: [Backport #7017]
Browse files Browse the repository at this point in the history
	* win32/mkexports.rb: should not export DllMain().
	  reported by luis at [ruby-core:46743] [Bug #6790], solved by
	  Heesob Park, and confirmed by nobu.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Sep 25, 2012
1 parent 0414c9b commit 6249dac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
Tue Sep 25 09:30:36 2012 NAKAMURA Usaku <usa@ruby-lang.org>

* win32/mkexports.rb: should not export DllMain().
reported by luis at [ruby-core:46743] [Bug #6790], solved by
Heesob Park, and confirmed by nobu.

Mon Sep 24 16:34:07 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>

* include/ruby/win32.h (rb_w32_pow): add new function.
Expand Down
6 changes: 3 additions & 3 deletions version.h
@@ -1,10 +1,10 @@
#define RUBY_VERSION "1.9.3"
#define RUBY_PATCHLEVEL 276
#define RUBY_PATCHLEVEL 277

#define RUBY_RELEASE_DATE "2012-09-24"
#define RUBY_RELEASE_DATE "2012-09-25"
#define RUBY_RELEASE_YEAR 2012
#define RUBY_RELEASE_MONTH 9
#define RUBY_RELEASE_DAY 24
#define RUBY_RELEASE_DAY 25

#include "ruby/version.h"

Expand Down
4 changes: 2 additions & 2 deletions win32/mkexports.rb
Expand Up @@ -112,7 +112,7 @@ def each_export(objs)
is_data = !$1
if noprefix or /^[@_]/ =~ l
next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{8,16}$/ =~ l ||
/^_(?:Init_|.*_threadptr_|DllMain@)/ =~ l
/^_?(?:Init_|.*_threadptr_|DllMain\b)/ =~ l
l.sub!(/^[@_]/, '') if /@\d+$/ !~ l
elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1')
next
Expand Down Expand Up @@ -146,7 +146,7 @@ def each_line(objs, &block)
def each_export(objs)
symprefix = RbConfig::CONFIG["SYMBOL_PREFIX"]
symprefix.strip! if symprefix
re = /\s(?:(T)|[[:upper:]])\s#{symprefix}((?!Init_|.*_threadptr_|DllMain@).*)$/
re = /\s(?:(T)|[[:upper:]])\s#{symprefix}((?!Init_|.*_threadptr_|DllMain\b).*)$/
objdump(objs) do |l|
next if /@.*@/ =~ l
yield $2, !$1 if re =~ l
Expand Down

0 comments on commit 6249dac

Please sign in to comment.