From ac95e0c65cf102927cd3235f9c9e697050caec7b Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 25 May 2005 20:28:26 +0000 Subject: [PATCH] [project @ 2005-05-25 20:28:26 by simonmar] Fix Linker on Windows: there was one more place where we had to check for ".ctors" sections. --- ghc/rts/Linker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc/rts/Linker.c b/ghc/rts/Linker.c index 1d3a602..cd6e03d 100644 --- a/ghc/rts/Linker.c +++ b/ghc/rts/Linker.c @@ -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 ) { -- 1.7.10.4