Check for staticclosures section in Windows linker.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 3 Oct 2014 21:12:51 +0000 (14:12 -0700)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 3 Oct 2014 21:12:51 +0000 (14:12 -0700)
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
rts/Linker.c

index 9897557..97b64ea 100644 (file)
@@ -4163,6 +4163,7 @@ ocGetNames_PEi386 ( ObjectCode* oc )
           0==strcmp(".rodata",(char*)secname))
          kind = SECTIONKIND_CODE_OR_RODATA;
       if (0==strcmp(".data",(char*)secname) ||
+          0==strcmp(".staticclosures",(char*)secname) ||
           0==strcmp(".bss",(char*)secname))
          kind = SECTIONKIND_RWDATA;
       if (0==strcmp(".ctors", (char*)secname))