Ignore drectve sections, partially fixing #7056
authorEdward Z. Yang <ezyang@mit.edu>
Thu, 5 Sep 2013 00:43:35 +0000 (17:43 -0700)
committerEdward Z. Yang <ezyang@mit.edu>
Thu, 5 Sep 2013 00:43:35 +0000 (17:43 -0700)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
rts/Linker.c

index c8451b0..ab5a557 100644 (file)
@@ -3835,6 +3835,8 @@ ocGetNames_PEi386 ( ObjectCode* oc )
           /* ignore unknown section that appeared in gcc 3.4.5(?) */
           && 0!= strcmp(".reloc", (char*)secname)
           && 0 != strcmp(".rdata$zzz", (char*)secname)
+          /* ignore linker directive sections */
+          && 0 != strcmp(".drectve", (char*)secname)
          ) {
          errorBelch("Unknown PEi386 section name `%s' (while processing: %" PATH_FMT")", secname, oc->fileName);
          stgFree(secname);