when linking, ignore unknown .reloc section that appeared in gcc 3.4.5(?)
authordias@eecs.harvard.edu <unknown>
Wed, 28 May 2008 12:14:50 +0000 (12:14 +0000)
committerdias@eecs.harvard.edu <unknown>
Wed, 28 May 2008 12:14:50 +0000 (12:14 +0000)
rts/Linker.c

index 04f272c..bca6026 100644 (file)
@@ -2306,6 +2306,8 @@ ocGetNames_PEi386 ( ObjectCode* oc )
           && 0 != strcmp(".ctors", sectab_i->Name)
           /* ignore section generated from .ident */
           && 0!= strcmp("/4", sectab_i->Name)
           && 0 != strcmp(".ctors", sectab_i->Name)
           /* ignore section generated from .ident */
           && 0!= strcmp("/4", sectab_i->Name)
+         /* ignore unknown section that appeared in gcc 3.4.5(?) */
+          && 0!= strcmp(".reloc", sectab_i->Name)
          ) {
          errorBelch("Unknown PEi386 section name `%s' (while processing: %s)", sectab_i->Name, oc->fileName);
          return 0;
          ) {
          errorBelch("Unknown PEi386 section name `%s' (while processing: %s)", sectab_i->Name, oc->fileName);
          return 0;