[RSYM]
authorDmitry Gorbachev <gorbachev@reactos.org>
Mon, 5 Sep 2011 15:37:35 +0000 (15:37 +0000)
committerDmitry Gorbachev <gorbachev@reactos.org>
Mon, 5 Sep 2011 15:37:35 +0000 (15:37 +0000)
.stab/.stabstr sections have no IMAGE_SCN_LNK_REMOVE flag now.

svn path=/trunk/; revision=53603

reactos/tools/rsym/rsym.c

index 50aa2e3..2c55fa7 100644 (file)
@@ -557,7 +557,7 @@ CreateOutputFile(FILE *OutFile, void *InData,
       if ((0 == StartOfRawData
            || InSectionHeaders[Section].PointerToRawData < StartOfRawData)
           && 0 != InSectionHeaders[Section].PointerToRawData
-          && 0 == (InSectionHeaders[Section].Characteristics & IMAGE_SCN_LNK_REMOVE))
+          && 0 != (strncmp(InSectionHeaders[Section].Name, ".stab", 5)))
         {
           StartOfRawData = InSectionHeaders[Section].PointerToRawData;
         }
@@ -609,7 +609,7 @@ CreateOutputFile(FILE *OutFile, void *InData,
   OutRelocSection = NULL;
   for (Section = 0; Section < InFileHeader->NumberOfSections; Section++)
     {
-      if (0 == (InSectionHeaders[Section].Characteristics & IMAGE_SCN_LNK_REMOVE))
+      if (0 != (strncmp(InSectionHeaders[Section].Name, ".stab", 5)))
         {
           *CurrentSectionHeader = InSectionHeaders[Section];
           CurrentSectionHeader->PointerToLinenumbers = 0;