[project @ 2005-10-27 01:27:37 by sof]
authorsof <unknown>
Thu, 27 Oct 2005 01:27:37 +0000 (01:27 +0000)
committersof <unknown>
Thu, 27 Oct 2005 01:27:37 +0000 (01:27 +0000)
ocGetNames_PEi386(): fix bug in previous commit to this function;
the correct .bss size for object files wasn't being passed to
addProddableBlock().
Not directly harmful, but triggers ASSERT() failure w/ DEBUG.

Merge to STABLE.

ghc/rts/Linker.c

index 7165443..62fc9fa 100644 (file)
@@ -2047,7 +2047,7 @@ ocGetNames_PEi386 ( ObjectCode* oc )
       if ( bss_sz < sectab_i->SizeOfRawData) { bss_sz = sectab_i->SizeOfRawData; }
       zspace = stgCallocBytes(1, bss_sz, "ocGetNames_PEi386(anonymous bss)");
       sectab_i->PointerToRawData = ((UChar*)zspace) - ((UChar*)(oc->image));
-      addProddableBlock(oc, zspace, sectab_i->VirtualSize);
+      addProddableBlock(oc, zspace, bss_sz);
       /* debugBelch("BSS anon section at 0x%x\n", zspace); */
    }