[project @ 2005-05-18 03:54:47 by wolfgang]
authorwolfgang <unknown>
Wed, 18 May 2005 03:54:47 +0000 (03:54 +0000)
committerwolfgang <unknown>
Wed, 18 May 2005 03:54:47 +0000 (03:54 +0000)
Make the Windows version of the Linker ignore constructors rather than abort
(just as it does on other platforms)

ghc/rts/Linker.c

index f7821fd..1d3a602 100644 (file)
@@ -1982,6 +1982,8 @@ ocGetNames_PEi386 ( ObjectCode* oc )
              information. */
           && 0 != strcmp(".stab", sectab_i->Name)
           && 0 != strcmp(".stabstr", sectab_i->Name)
+          /* ignore constructor section for now */
+          && 0 != strcmp(".ctors", sectab_i->Name)
          ) {
          errorBelch("Unknown PEi386 section name `%s' (while processing: %s)", sectab_i->Name, oc->fileName);
          return 0;