[project @ 2005-05-25 20:28:26 by simonmar]
authorsimonmar <unknown>
Wed, 25 May 2005 20:28:26 +0000 (20:28 +0000)
committersimonmar <unknown>
Wed, 25 May 2005 20:28:26 +0000 (20:28 +0000)
Fix Linker on Windows: there was one more place where we had to check
for ".ctors" sections.

ghc/rts/Linker.c

index 1d3a602..cd6e03d 100644 (file)
@@ -2127,7 +2127,8 @@ ocResolve_PEi386 ( ObjectCode* oc )
       /* Ignore sections called which contain stabs debugging
          information. */
       if (0 == strcmp(".stab", sectab_i->Name)
-          || 0 == strcmp(".stabstr", sectab_i->Name))
+          || 0 == strcmp(".stabstr", sectab_i->Name)
+          || 0 == strcmp(".ctors", sectab_i->Name))
          continue;
 
       if ( sectab_i->Characteristics & MYIMAGE_SCN_LNK_NRELOC_OVFL ) {