Add support for .text.startup sections to the Linker
authorIan Lynagh <igloo@earth.li>
Mon, 7 May 2012 21:45:04 +0000 (22:45 +0100)
committerIan Lynagh <igloo@earth.li>
Mon, 7 May 2012 21:45:04 +0000 (22:45 +0100)
We get these in a full build on Win64

rts/Linker.c

index 6486d4d..df5ab5c 100644 (file)
@@ -3607,6 +3607,7 @@ ocGetNames_PEi386 ( ObjectCode* oc )
 #     endif
 
       if (0==strcmp(".text",(char*)secname) ||
+          0==strcmp(".text.startup",(char*)secname) ||
           0==strcmp(".rdata",(char*)secname)||
           0==strcmp(".rodata",(char*)secname))
          kind = SECTIONKIND_CODE_OR_RODATA;