<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>22314</bug_id>
          
          <creation_ts>2008-11-17 09:13:35 -0800</creation_ts>
          <short_desc>Adopt check-for-global-initializers on Windows</short_desc>
          <delta_ts>2016-07-28 12:58:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=22315</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=160302</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>darin</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>pvollan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99050</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-11-17 09:13:35 -0800</bug_when>
    <thetext>It would be good to adopt the check-for-global-initializers script on Windows. I&apos;ve done a little investigation into what would have to change in the script to make it work on Windows. Here&apos;s what I&apos;ve come up with (based on &lt;http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/check-for-global-initializers?rev=38440&gt;):

1. Use of Xcode-specific environment variables

We can either set similar variables on Windows or pass the relevant values as parameters.

2. Use of a &quot;link file list&quot;

We can get the list of object files linked into the executable by using &quot;dumpbin.exe /archivemembers&quot;.

3. Searching for &quot;__GLOBAL__I&quot; to indicate a global initializer

On Windows, global initializers are indicated by &quot;symbol$initializer$&quot;, where &quot;symbol&quot; is the symbol being initialized.

4. List of files to skip uses .o extension

On Windows, these files have a .obj extension. We could just use the part of the filename before the extension instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99055</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-11-17 09:17:04 -0800</bug_when>
    <thetext>See bug 22315 about adopting check-for-exit-time-destructors as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1215344</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2016-07-28 12:58:32 -0700</bug_when>
    <thetext>NOTE: Bug 160302 is going to remove these scripts.

However, I think the scripts would have had to use different tools to make them work on Windows.  (Maybe MSVC++ has a switch similar to -Wglobal-constructors instead?)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>